1
2
3
4
5
6
7 package org.apache.hadoop.hbase.thrift.generated;
8
9 import org.apache.commons.lang.builder.HashCodeBuilder;
10 import org.apache.thrift.scheme.IScheme;
11 import org.apache.thrift.scheme.SchemeFactory;
12 import org.apache.thrift.scheme.StandardScheme;
13
14 import org.apache.thrift.scheme.TupleScheme;
15 import org.apache.thrift.protocol.TTupleProtocol;
16 import org.apache.thrift.protocol.TProtocolException;
17 import org.apache.thrift.EncodingUtils;
18 import org.apache.thrift.TException;
19 import java.util.List;
20 import java.util.ArrayList;
21 import java.util.Map;
22 import java.util.HashMap;
23 import java.util.EnumMap;
24 import java.util.Set;
25 import java.util.HashSet;
26 import java.util.EnumSet;
27 import java.util.Collections;
28 import java.util.BitSet;
29 import java.nio.ByteBuffer;
30 import java.util.Arrays;
31 import org.slf4j.Logger;
32 import org.slf4j.LoggerFactory;
33
34 public class Hbase {
35
36 public interface Iface {
37
38
39
40
41
42
43 public void enableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
44
45
46
47
48
49
50
51 public void disableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
52
53
54
55
56
57
58 public boolean isTableEnabled(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
59
60 public void compact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException;
61
62 public void majorCompact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException;
63
64
65
66
67
68
69 public List<ByteBuffer> getTableNames() throws IOError, org.apache.thrift.TException;
70
71
72
73
74
75
76
77
78 public Map<ByteBuffer,ColumnDescriptor> getColumnDescriptors(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
79
80
81
82
83
84
85
86
87 public List<TRegionInfo> getTableRegions(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103 public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies) throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException;
104
105
106
107
108
109
110
111
112
113 public void deleteTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException;
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129 public List<TCell> get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147 public List<TCell> getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168 public List<TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
169
170
171
172
173
174
175
176
177
178
179
180
181
182 public List<TRowResult> getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198 public List<TRowResult> getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214 public List<TRowResult> getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231 public List<TRowResult> getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
232
233
234
235
236
237
238
239
240
241
242
243
244
245 public List<TRowResult> getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261 public List<TRowResult> getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277 public List<TRowResult> getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294 public List<TRowResult> getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310 public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException;
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328 public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException;
329
330
331
332
333
334
335
336
337
338
339
340
341
342 public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException;
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358 public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException;
359
360
361
362
363
364
365
366
367
368
369
370
371 public long atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws IOError, IllegalArgument, org.apache.thrift.TException;
372
373
374
375
376
377
378
379
380
381
382
383
384 public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400 public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
401
402
403
404
405
406
407
408
409
410
411 public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
412
413
414
415
416
417
418
419
420
421 public void increment(TIncrement increment) throws IOError, org.apache.thrift.TException;
422
423 public void incrementRows(List<TIncrement> increments) throws IOError, org.apache.thrift.TException;
424
425
426
427
428
429
430
431
432
433
434
435
436
437 public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
438
439
440
441
442
443
444
445
446
447
448
449 public int scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468 public int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491 public int scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507 public int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529 public int scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555 public int scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException;
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571 public List<TRowResult> scannerGet(int id) throws IOError, IllegalArgument, org.apache.thrift.TException;
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589 public List<TRowResult> scannerGetList(int id, int nbRows) throws IOError, IllegalArgument, org.apache.thrift.TException;
590
591
592
593
594
595
596
597
598 public void scannerClose(int id) throws IOError, IllegalArgument, org.apache.thrift.TException;
599
600
601
602
603
604
605
606
607
608
609
610
611 public List<TCell> getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family) throws IOError, org.apache.thrift.TException;
612
613
614
615
616
617
618
619
620
621 public TRegionInfo getRegionInfo(ByteBuffer row) throws IOError, org.apache.thrift.TException;
622
623
624
625
626
627
628
629
630 public List<TCell> append(TAppend append) throws IOError, org.apache.thrift.TException;
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652 public boolean checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException;
653
654 }
655
656 public interface AsyncIface {
657
658 public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enableTable_call> resultHandler) throws org.apache.thrift.TException;
659
660 public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.disableTable_call> resultHandler) throws org.apache.thrift.TException;
661
662 public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isTableEnabled_call> resultHandler) throws org.apache.thrift.TException;
663
664 public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.compact_call> resultHandler) throws org.apache.thrift.TException;
665
666 public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.majorCompact_call> resultHandler) throws org.apache.thrift.TException;
667
668 public void getTableNames(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTableNames_call> resultHandler) throws org.apache.thrift.TException;
669
670 public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getColumnDescriptors_call> resultHandler) throws org.apache.thrift.TException;
671
672 public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTableRegions_call> resultHandler) throws org.apache.thrift.TException;
673
674 public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTable_call> resultHandler) throws org.apache.thrift.TException;
675
676 public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteTable_call> resultHandler) throws org.apache.thrift.TException;
677
678 public void get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.get_call> resultHandler) throws org.apache.thrift.TException;
679
680 public void getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVer_call> resultHandler) throws org.apache.thrift.TException;
681
682 public void getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVerTs_call> resultHandler) throws org.apache.thrift.TException;
683
684 public void getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRow_call> resultHandler) throws org.apache.thrift.TException;
685
686 public void getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowWithColumns_call> resultHandler) throws org.apache.thrift.TException;
687
688 public void getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowTs_call> resultHandler) throws org.apache.thrift.TException;
689
690 public void getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException;
691
692 public void getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRows_call> resultHandler) throws org.apache.thrift.TException;
693
694 public void getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowsWithColumns_call> resultHandler) throws org.apache.thrift.TException;
695
696 public void getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowsTs_call> resultHandler) throws org.apache.thrift.TException;
697
698 public void getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowsWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException;
699
700 public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRow_call> resultHandler) throws org.apache.thrift.TException;
701
702 public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRowTs_call> resultHandler) throws org.apache.thrift.TException;
703
704 public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRows_call> resultHandler) throws org.apache.thrift.TException;
705
706 public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mutateRowsTs_call> resultHandler) throws org.apache.thrift.TException;
707
708 public void atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.atomicIncrement_call> resultHandler) throws org.apache.thrift.TException;
709
710 public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAll_call> resultHandler) throws org.apache.thrift.TException;
711
712 public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAllTs_call> resultHandler) throws org.apache.thrift.TException;
713
714 public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAllRow_call> resultHandler) throws org.apache.thrift.TException;
715
716 public void increment(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.increment_call> resultHandler) throws org.apache.thrift.TException;
717
718 public void incrementRows(List<TIncrement> increments, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.incrementRows_call> resultHandler) throws org.apache.thrift.TException;
719
720 public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteAllRowTs_call> resultHandler) throws org.apache.thrift.TException;
721
722 public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithScan_call> resultHandler) throws org.apache.thrift.TException;
723
724 public void scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpen_call> resultHandler) throws org.apache.thrift.TException;
725
726 public void scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithStop_call> resultHandler) throws org.apache.thrift.TException;
727
728 public void scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithPrefix_call> resultHandler) throws org.apache.thrift.TException;
729
730 public void scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenTs_call> resultHandler) throws org.apache.thrift.TException;
731
732 public void scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerOpenWithStopTs_call> resultHandler) throws org.apache.thrift.TException;
733
734 public void scannerGet(int id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerGet_call> resultHandler) throws org.apache.thrift.TException;
735
736 public void scannerGetList(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerGetList_call> resultHandler) throws org.apache.thrift.TException;
737
738 public void scannerClose(int id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scannerClose_call> resultHandler) throws org.apache.thrift.TException;
739
740 public void getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRowOrBefore_call> resultHandler) throws org.apache.thrift.TException;
741
742 public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRegionInfo_call> resultHandler) throws org.apache.thrift.TException;
743
744 public void append(TAppend append, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.append_call> resultHandler) throws org.apache.thrift.TException;
745
746 public void checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkAndPut_call> resultHandler) throws org.apache.thrift.TException;
747
748 }
749
750 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
751 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
752 public Factory() {}
753 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
754 return new Client(prot);
755 }
756 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
757 return new Client(iprot, oprot);
758 }
759 }
760
761 public Client(org.apache.thrift.protocol.TProtocol prot)
762 {
763 super(prot, prot);
764 }
765
766 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
767 super(iprot, oprot);
768 }
769
770 public void enableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
771 {
772 send_enableTable(tableName);
773 recv_enableTable();
774 }
775
776 public void send_enableTable(ByteBuffer tableName) throws org.apache.thrift.TException
777 {
778 enableTable_args args = new enableTable_args();
779 args.setTableName(tableName);
780 sendBase("enableTable", args);
781 }
782
783 public void recv_enableTable() throws IOError, org.apache.thrift.TException
784 {
785 enableTable_result result = new enableTable_result();
786 receiveBase(result, "enableTable");
787 if (result.io != null) {
788 throw result.io;
789 }
790 return;
791 }
792
793 public void disableTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
794 {
795 send_disableTable(tableName);
796 recv_disableTable();
797 }
798
799 public void send_disableTable(ByteBuffer tableName) throws org.apache.thrift.TException
800 {
801 disableTable_args args = new disableTable_args();
802 args.setTableName(tableName);
803 sendBase("disableTable", args);
804 }
805
806 public void recv_disableTable() throws IOError, org.apache.thrift.TException
807 {
808 disableTable_result result = new disableTable_result();
809 receiveBase(result, "disableTable");
810 if (result.io != null) {
811 throw result.io;
812 }
813 return;
814 }
815
816 public boolean isTableEnabled(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
817 {
818 send_isTableEnabled(tableName);
819 return recv_isTableEnabled();
820 }
821
822 public void send_isTableEnabled(ByteBuffer tableName) throws org.apache.thrift.TException
823 {
824 isTableEnabled_args args = new isTableEnabled_args();
825 args.setTableName(tableName);
826 sendBase("isTableEnabled", args);
827 }
828
829 public boolean recv_isTableEnabled() throws IOError, org.apache.thrift.TException
830 {
831 isTableEnabled_result result = new isTableEnabled_result();
832 receiveBase(result, "isTableEnabled");
833 if (result.isSetSuccess()) {
834 return result.success;
835 }
836 if (result.io != null) {
837 throw result.io;
838 }
839 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isTableEnabled failed: unknown result");
840 }
841
842 public void compact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException
843 {
844 send_compact(tableNameOrRegionName);
845 recv_compact();
846 }
847
848 public void send_compact(ByteBuffer tableNameOrRegionName) throws org.apache.thrift.TException
849 {
850 compact_args args = new compact_args();
851 args.setTableNameOrRegionName(tableNameOrRegionName);
852 sendBase("compact", args);
853 }
854
855 public void recv_compact() throws IOError, org.apache.thrift.TException
856 {
857 compact_result result = new compact_result();
858 receiveBase(result, "compact");
859 if (result.io != null) {
860 throw result.io;
861 }
862 return;
863 }
864
865 public void majorCompact(ByteBuffer tableNameOrRegionName) throws IOError, org.apache.thrift.TException
866 {
867 send_majorCompact(tableNameOrRegionName);
868 recv_majorCompact();
869 }
870
871 public void send_majorCompact(ByteBuffer tableNameOrRegionName) throws org.apache.thrift.TException
872 {
873 majorCompact_args args = new majorCompact_args();
874 args.setTableNameOrRegionName(tableNameOrRegionName);
875 sendBase("majorCompact", args);
876 }
877
878 public void recv_majorCompact() throws IOError, org.apache.thrift.TException
879 {
880 majorCompact_result result = new majorCompact_result();
881 receiveBase(result, "majorCompact");
882 if (result.io != null) {
883 throw result.io;
884 }
885 return;
886 }
887
888 public List<ByteBuffer> getTableNames() throws IOError, org.apache.thrift.TException
889 {
890 send_getTableNames();
891 return recv_getTableNames();
892 }
893
894 public void send_getTableNames() throws org.apache.thrift.TException
895 {
896 getTableNames_args args = new getTableNames_args();
897 sendBase("getTableNames", args);
898 }
899
900 public List<ByteBuffer> recv_getTableNames() throws IOError, org.apache.thrift.TException
901 {
902 getTableNames_result result = new getTableNames_result();
903 receiveBase(result, "getTableNames");
904 if (result.isSetSuccess()) {
905 return result.success;
906 }
907 if (result.io != null) {
908 throw result.io;
909 }
910 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableNames failed: unknown result");
911 }
912
913 public Map<ByteBuffer,ColumnDescriptor> getColumnDescriptors(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
914 {
915 send_getColumnDescriptors(tableName);
916 return recv_getColumnDescriptors();
917 }
918
919 public void send_getColumnDescriptors(ByteBuffer tableName) throws org.apache.thrift.TException
920 {
921 getColumnDescriptors_args args = new getColumnDescriptors_args();
922 args.setTableName(tableName);
923 sendBase("getColumnDescriptors", args);
924 }
925
926 public Map<ByteBuffer,ColumnDescriptor> recv_getColumnDescriptors() throws IOError, org.apache.thrift.TException
927 {
928 getColumnDescriptors_result result = new getColumnDescriptors_result();
929 receiveBase(result, "getColumnDescriptors");
930 if (result.isSetSuccess()) {
931 return result.success;
932 }
933 if (result.io != null) {
934 throw result.io;
935 }
936 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getColumnDescriptors failed: unknown result");
937 }
938
939 public List<TRegionInfo> getTableRegions(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
940 {
941 send_getTableRegions(tableName);
942 return recv_getTableRegions();
943 }
944
945 public void send_getTableRegions(ByteBuffer tableName) throws org.apache.thrift.TException
946 {
947 getTableRegions_args args = new getTableRegions_args();
948 args.setTableName(tableName);
949 sendBase("getTableRegions", args);
950 }
951
952 public List<TRegionInfo> recv_getTableRegions() throws IOError, org.apache.thrift.TException
953 {
954 getTableRegions_result result = new getTableRegions_result();
955 receiveBase(result, "getTableRegions");
956 if (result.isSetSuccess()) {
957 return result.success;
958 }
959 if (result.io != null) {
960 throw result.io;
961 }
962 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTableRegions failed: unknown result");
963 }
964
965 public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies) throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException
966 {
967 send_createTable(tableName, columnFamilies);
968 recv_createTable();
969 }
970
971 public void send_createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies) throws org.apache.thrift.TException
972 {
973 createTable_args args = new createTable_args();
974 args.setTableName(tableName);
975 args.setColumnFamilies(columnFamilies);
976 sendBase("createTable", args);
977 }
978
979 public void recv_createTable() throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException
980 {
981 createTable_result result = new createTable_result();
982 receiveBase(result, "createTable");
983 if (result.io != null) {
984 throw result.io;
985 }
986 if (result.ia != null) {
987 throw result.ia;
988 }
989 if (result.exist != null) {
990 throw result.exist;
991 }
992 return;
993 }
994
995 public void deleteTable(ByteBuffer tableName) throws IOError, org.apache.thrift.TException
996 {
997 send_deleteTable(tableName);
998 recv_deleteTable();
999 }
1000
1001 public void send_deleteTable(ByteBuffer tableName) throws org.apache.thrift.TException
1002 {
1003 deleteTable_args args = new deleteTable_args();
1004 args.setTableName(tableName);
1005 sendBase("deleteTable", args);
1006 }
1007
1008 public void recv_deleteTable() throws IOError, org.apache.thrift.TException
1009 {
1010 deleteTable_result result = new deleteTable_result();
1011 receiveBase(result, "deleteTable");
1012 if (result.io != null) {
1013 throw result.io;
1014 }
1015 return;
1016 }
1017
1018 public List<TCell> get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1019 {
1020 send_get(tableName, row, column, attributes);
1021 return recv_get();
1022 }
1023
1024 public void send_get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1025 {
1026 get_args args = new get_args();
1027 args.setTableName(tableName);
1028 args.setRow(row);
1029 args.setColumn(column);
1030 args.setAttributes(attributes);
1031 sendBase("get", args);
1032 }
1033
1034 public List<TCell> recv_get() throws IOError, org.apache.thrift.TException
1035 {
1036 get_result result = new get_result();
1037 receiveBase(result, "get");
1038 if (result.isSetSuccess()) {
1039 return result.success;
1040 }
1041 if (result.io != null) {
1042 throw result.io;
1043 }
1044 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get failed: unknown result");
1045 }
1046
1047 public List<TCell> getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1048 {
1049 send_getVer(tableName, row, column, numVersions, attributes);
1050 return recv_getVer();
1051 }
1052
1053 public void send_getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1054 {
1055 getVer_args args = new getVer_args();
1056 args.setTableName(tableName);
1057 args.setRow(row);
1058 args.setColumn(column);
1059 args.setNumVersions(numVersions);
1060 args.setAttributes(attributes);
1061 sendBase("getVer", args);
1062 }
1063
1064 public List<TCell> recv_getVer() throws IOError, org.apache.thrift.TException
1065 {
1066 getVer_result result = new getVer_result();
1067 receiveBase(result, "getVer");
1068 if (result.isSetSuccess()) {
1069 return result.success;
1070 }
1071 if (result.io != null) {
1072 throw result.io;
1073 }
1074 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVer failed: unknown result");
1075 }
1076
1077 public List<TCell> getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1078 {
1079 send_getVerTs(tableName, row, column, timestamp, numVersions, attributes);
1080 return recv_getVerTs();
1081 }
1082
1083 public void send_getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1084 {
1085 getVerTs_args args = new getVerTs_args();
1086 args.setTableName(tableName);
1087 args.setRow(row);
1088 args.setColumn(column);
1089 args.setTimestamp(timestamp);
1090 args.setNumVersions(numVersions);
1091 args.setAttributes(attributes);
1092 sendBase("getVerTs", args);
1093 }
1094
1095 public List<TCell> recv_getVerTs() throws IOError, org.apache.thrift.TException
1096 {
1097 getVerTs_result result = new getVerTs_result();
1098 receiveBase(result, "getVerTs");
1099 if (result.isSetSuccess()) {
1100 return result.success;
1101 }
1102 if (result.io != null) {
1103 throw result.io;
1104 }
1105 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVerTs failed: unknown result");
1106 }
1107
1108 public List<TRowResult> getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1109 {
1110 send_getRow(tableName, row, attributes);
1111 return recv_getRow();
1112 }
1113
1114 public void send_getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1115 {
1116 getRow_args args = new getRow_args();
1117 args.setTableName(tableName);
1118 args.setRow(row);
1119 args.setAttributes(attributes);
1120 sendBase("getRow", args);
1121 }
1122
1123 public List<TRowResult> recv_getRow() throws IOError, org.apache.thrift.TException
1124 {
1125 getRow_result result = new getRow_result();
1126 receiveBase(result, "getRow");
1127 if (result.isSetSuccess()) {
1128 return result.success;
1129 }
1130 if (result.io != null) {
1131 throw result.io;
1132 }
1133 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRow failed: unknown result");
1134 }
1135
1136 public List<TRowResult> getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1137 {
1138 send_getRowWithColumns(tableName, row, columns, attributes);
1139 return recv_getRowWithColumns();
1140 }
1141
1142 public void send_getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1143 {
1144 getRowWithColumns_args args = new getRowWithColumns_args();
1145 args.setTableName(tableName);
1146 args.setRow(row);
1147 args.setColumns(columns);
1148 args.setAttributes(attributes);
1149 sendBase("getRowWithColumns", args);
1150 }
1151
1152 public List<TRowResult> recv_getRowWithColumns() throws IOError, org.apache.thrift.TException
1153 {
1154 getRowWithColumns_result result = new getRowWithColumns_result();
1155 receiveBase(result, "getRowWithColumns");
1156 if (result.isSetSuccess()) {
1157 return result.success;
1158 }
1159 if (result.io != null) {
1160 throw result.io;
1161 }
1162 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowWithColumns failed: unknown result");
1163 }
1164
1165 public List<TRowResult> getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1166 {
1167 send_getRowTs(tableName, row, timestamp, attributes);
1168 return recv_getRowTs();
1169 }
1170
1171 public void send_getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1172 {
1173 getRowTs_args args = new getRowTs_args();
1174 args.setTableName(tableName);
1175 args.setRow(row);
1176 args.setTimestamp(timestamp);
1177 args.setAttributes(attributes);
1178 sendBase("getRowTs", args);
1179 }
1180
1181 public List<TRowResult> recv_getRowTs() throws IOError, org.apache.thrift.TException
1182 {
1183 getRowTs_result result = new getRowTs_result();
1184 receiveBase(result, "getRowTs");
1185 if (result.isSetSuccess()) {
1186 return result.success;
1187 }
1188 if (result.io != null) {
1189 throw result.io;
1190 }
1191 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowTs failed: unknown result");
1192 }
1193
1194 public List<TRowResult> getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1195 {
1196 send_getRowWithColumnsTs(tableName, row, columns, timestamp, attributes);
1197 return recv_getRowWithColumnsTs();
1198 }
1199
1200 public void send_getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1201 {
1202 getRowWithColumnsTs_args args = new getRowWithColumnsTs_args();
1203 args.setTableName(tableName);
1204 args.setRow(row);
1205 args.setColumns(columns);
1206 args.setTimestamp(timestamp);
1207 args.setAttributes(attributes);
1208 sendBase("getRowWithColumnsTs", args);
1209 }
1210
1211 public List<TRowResult> recv_getRowWithColumnsTs() throws IOError, org.apache.thrift.TException
1212 {
1213 getRowWithColumnsTs_result result = new getRowWithColumnsTs_result();
1214 receiveBase(result, "getRowWithColumnsTs");
1215 if (result.isSetSuccess()) {
1216 return result.success;
1217 }
1218 if (result.io != null) {
1219 throw result.io;
1220 }
1221 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowWithColumnsTs failed: unknown result");
1222 }
1223
1224 public List<TRowResult> getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1225 {
1226 send_getRows(tableName, rows, attributes);
1227 return recv_getRows();
1228 }
1229
1230 public void send_getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1231 {
1232 getRows_args args = new getRows_args();
1233 args.setTableName(tableName);
1234 args.setRows(rows);
1235 args.setAttributes(attributes);
1236 sendBase("getRows", args);
1237 }
1238
1239 public List<TRowResult> recv_getRows() throws IOError, org.apache.thrift.TException
1240 {
1241 getRows_result result = new getRows_result();
1242 receiveBase(result, "getRows");
1243 if (result.isSetSuccess()) {
1244 return result.success;
1245 }
1246 if (result.io != null) {
1247 throw result.io;
1248 }
1249 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRows failed: unknown result");
1250 }
1251
1252 public List<TRowResult> getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1253 {
1254 send_getRowsWithColumns(tableName, rows, columns, attributes);
1255 return recv_getRowsWithColumns();
1256 }
1257
1258 public void send_getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1259 {
1260 getRowsWithColumns_args args = new getRowsWithColumns_args();
1261 args.setTableName(tableName);
1262 args.setRows(rows);
1263 args.setColumns(columns);
1264 args.setAttributes(attributes);
1265 sendBase("getRowsWithColumns", args);
1266 }
1267
1268 public List<TRowResult> recv_getRowsWithColumns() throws IOError, org.apache.thrift.TException
1269 {
1270 getRowsWithColumns_result result = new getRowsWithColumns_result();
1271 receiveBase(result, "getRowsWithColumns");
1272 if (result.isSetSuccess()) {
1273 return result.success;
1274 }
1275 if (result.io != null) {
1276 throw result.io;
1277 }
1278 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsWithColumns failed: unknown result");
1279 }
1280
1281 public List<TRowResult> getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1282 {
1283 send_getRowsTs(tableName, rows, timestamp, attributes);
1284 return recv_getRowsTs();
1285 }
1286
1287 public void send_getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1288 {
1289 getRowsTs_args args = new getRowsTs_args();
1290 args.setTableName(tableName);
1291 args.setRows(rows);
1292 args.setTimestamp(timestamp);
1293 args.setAttributes(attributes);
1294 sendBase("getRowsTs", args);
1295 }
1296
1297 public List<TRowResult> recv_getRowsTs() throws IOError, org.apache.thrift.TException
1298 {
1299 getRowsTs_result result = new getRowsTs_result();
1300 receiveBase(result, "getRowsTs");
1301 if (result.isSetSuccess()) {
1302 return result.success;
1303 }
1304 if (result.io != null) {
1305 throw result.io;
1306 }
1307 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsTs failed: unknown result");
1308 }
1309
1310 public List<TRowResult> getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1311 {
1312 send_getRowsWithColumnsTs(tableName, rows, columns, timestamp, attributes);
1313 return recv_getRowsWithColumnsTs();
1314 }
1315
1316 public void send_getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1317 {
1318 getRowsWithColumnsTs_args args = new getRowsWithColumnsTs_args();
1319 args.setTableName(tableName);
1320 args.setRows(rows);
1321 args.setColumns(columns);
1322 args.setTimestamp(timestamp);
1323 args.setAttributes(attributes);
1324 sendBase("getRowsWithColumnsTs", args);
1325 }
1326
1327 public List<TRowResult> recv_getRowsWithColumnsTs() throws IOError, org.apache.thrift.TException
1328 {
1329 getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result();
1330 receiveBase(result, "getRowsWithColumnsTs");
1331 if (result.isSetSuccess()) {
1332 return result.success;
1333 }
1334 if (result.io != null) {
1335 throw result.io;
1336 }
1337 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowsWithColumnsTs failed: unknown result");
1338 }
1339
1340 public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
1341 {
1342 send_mutateRow(tableName, row, mutations, attributes);
1343 recv_mutateRow();
1344 }
1345
1346 public void send_mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1347 {
1348 mutateRow_args args = new mutateRow_args();
1349 args.setTableName(tableName);
1350 args.setRow(row);
1351 args.setMutations(mutations);
1352 args.setAttributes(attributes);
1353 sendBase("mutateRow", args);
1354 }
1355
1356 public void recv_mutateRow() throws IOError, IllegalArgument, org.apache.thrift.TException
1357 {
1358 mutateRow_result result = new mutateRow_result();
1359 receiveBase(result, "mutateRow");
1360 if (result.io != null) {
1361 throw result.io;
1362 }
1363 if (result.ia != null) {
1364 throw result.ia;
1365 }
1366 return;
1367 }
1368
1369 public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
1370 {
1371 send_mutateRowTs(tableName, row, mutations, timestamp, attributes);
1372 recv_mutateRowTs();
1373 }
1374
1375 public void send_mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1376 {
1377 mutateRowTs_args args = new mutateRowTs_args();
1378 args.setTableName(tableName);
1379 args.setRow(row);
1380 args.setMutations(mutations);
1381 args.setTimestamp(timestamp);
1382 args.setAttributes(attributes);
1383 sendBase("mutateRowTs", args);
1384 }
1385
1386 public void recv_mutateRowTs() throws IOError, IllegalArgument, org.apache.thrift.TException
1387 {
1388 mutateRowTs_result result = new mutateRowTs_result();
1389 receiveBase(result, "mutateRowTs");
1390 if (result.io != null) {
1391 throw result.io;
1392 }
1393 if (result.ia != null) {
1394 throw result.ia;
1395 }
1396 return;
1397 }
1398
1399 public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
1400 {
1401 send_mutateRows(tableName, rowBatches, attributes);
1402 recv_mutateRows();
1403 }
1404
1405 public void send_mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1406 {
1407 mutateRows_args args = new mutateRows_args();
1408 args.setTableName(tableName);
1409 args.setRowBatches(rowBatches);
1410 args.setAttributes(attributes);
1411 sendBase("mutateRows", args);
1412 }
1413
1414 public void recv_mutateRows() throws IOError, IllegalArgument, org.apache.thrift.TException
1415 {
1416 mutateRows_result result = new mutateRows_result();
1417 receiveBase(result, "mutateRows");
1418 if (result.io != null) {
1419 throw result.io;
1420 }
1421 if (result.ia != null) {
1422 throw result.ia;
1423 }
1424 return;
1425 }
1426
1427 public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
1428 {
1429 send_mutateRowsTs(tableName, rowBatches, timestamp, attributes);
1430 recv_mutateRowsTs();
1431 }
1432
1433 public void send_mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1434 {
1435 mutateRowsTs_args args = new mutateRowsTs_args();
1436 args.setTableName(tableName);
1437 args.setRowBatches(rowBatches);
1438 args.setTimestamp(timestamp);
1439 args.setAttributes(attributes);
1440 sendBase("mutateRowsTs", args);
1441 }
1442
1443 public void recv_mutateRowsTs() throws IOError, IllegalArgument, org.apache.thrift.TException
1444 {
1445 mutateRowsTs_result result = new mutateRowsTs_result();
1446 receiveBase(result, "mutateRowsTs");
1447 if (result.io != null) {
1448 throw result.io;
1449 }
1450 if (result.ia != null) {
1451 throw result.ia;
1452 }
1453 return;
1454 }
1455
1456 public long atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws IOError, IllegalArgument, org.apache.thrift.TException
1457 {
1458 send_atomicIncrement(tableName, row, column, value);
1459 return recv_atomicIncrement();
1460 }
1461
1462 public void send_atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value) throws org.apache.thrift.TException
1463 {
1464 atomicIncrement_args args = new atomicIncrement_args();
1465 args.setTableName(tableName);
1466 args.setRow(row);
1467 args.setColumn(column);
1468 args.setValue(value);
1469 sendBase("atomicIncrement", args);
1470 }
1471
1472 public long recv_atomicIncrement() throws IOError, IllegalArgument, org.apache.thrift.TException
1473 {
1474 atomicIncrement_result result = new atomicIncrement_result();
1475 receiveBase(result, "atomicIncrement");
1476 if (result.isSetSuccess()) {
1477 return result.success;
1478 }
1479 if (result.io != null) {
1480 throw result.io;
1481 }
1482 if (result.ia != null) {
1483 throw result.ia;
1484 }
1485 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "atomicIncrement failed: unknown result");
1486 }
1487
1488 public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1489 {
1490 send_deleteAll(tableName, row, column, attributes);
1491 recv_deleteAll();
1492 }
1493
1494 public void send_deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1495 {
1496 deleteAll_args args = new deleteAll_args();
1497 args.setTableName(tableName);
1498 args.setRow(row);
1499 args.setColumn(column);
1500 args.setAttributes(attributes);
1501 sendBase("deleteAll", args);
1502 }
1503
1504 public void recv_deleteAll() throws IOError, org.apache.thrift.TException
1505 {
1506 deleteAll_result result = new deleteAll_result();
1507 receiveBase(result, "deleteAll");
1508 if (result.io != null) {
1509 throw result.io;
1510 }
1511 return;
1512 }
1513
1514 public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1515 {
1516 send_deleteAllTs(tableName, row, column, timestamp, attributes);
1517 recv_deleteAllTs();
1518 }
1519
1520 public void send_deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1521 {
1522 deleteAllTs_args args = new deleteAllTs_args();
1523 args.setTableName(tableName);
1524 args.setRow(row);
1525 args.setColumn(column);
1526 args.setTimestamp(timestamp);
1527 args.setAttributes(attributes);
1528 sendBase("deleteAllTs", args);
1529 }
1530
1531 public void recv_deleteAllTs() throws IOError, org.apache.thrift.TException
1532 {
1533 deleteAllTs_result result = new deleteAllTs_result();
1534 receiveBase(result, "deleteAllTs");
1535 if (result.io != null) {
1536 throw result.io;
1537 }
1538 return;
1539 }
1540
1541 public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1542 {
1543 send_deleteAllRow(tableName, row, attributes);
1544 recv_deleteAllRow();
1545 }
1546
1547 public void send_deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1548 {
1549 deleteAllRow_args args = new deleteAllRow_args();
1550 args.setTableName(tableName);
1551 args.setRow(row);
1552 args.setAttributes(attributes);
1553 sendBase("deleteAllRow", args);
1554 }
1555
1556 public void recv_deleteAllRow() throws IOError, org.apache.thrift.TException
1557 {
1558 deleteAllRow_result result = new deleteAllRow_result();
1559 receiveBase(result, "deleteAllRow");
1560 if (result.io != null) {
1561 throw result.io;
1562 }
1563 return;
1564 }
1565
1566 public void increment(TIncrement increment) throws IOError, org.apache.thrift.TException
1567 {
1568 send_increment(increment);
1569 recv_increment();
1570 }
1571
1572 public void send_increment(TIncrement increment) throws org.apache.thrift.TException
1573 {
1574 increment_args args = new increment_args();
1575 args.setIncrement(increment);
1576 sendBase("increment", args);
1577 }
1578
1579 public void recv_increment() throws IOError, org.apache.thrift.TException
1580 {
1581 increment_result result = new increment_result();
1582 receiveBase(result, "increment");
1583 if (result.io != null) {
1584 throw result.io;
1585 }
1586 return;
1587 }
1588
1589 public void incrementRows(List<TIncrement> increments) throws IOError, org.apache.thrift.TException
1590 {
1591 send_incrementRows(increments);
1592 recv_incrementRows();
1593 }
1594
1595 public void send_incrementRows(List<TIncrement> increments) throws org.apache.thrift.TException
1596 {
1597 incrementRows_args args = new incrementRows_args();
1598 args.setIncrements(increments);
1599 sendBase("incrementRows", args);
1600 }
1601
1602 public void recv_incrementRows() throws IOError, org.apache.thrift.TException
1603 {
1604 incrementRows_result result = new incrementRows_result();
1605 receiveBase(result, "incrementRows");
1606 if (result.io != null) {
1607 throw result.io;
1608 }
1609 return;
1610 }
1611
1612 public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1613 {
1614 send_deleteAllRowTs(tableName, row, timestamp, attributes);
1615 recv_deleteAllRowTs();
1616 }
1617
1618 public void send_deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1619 {
1620 deleteAllRowTs_args args = new deleteAllRowTs_args();
1621 args.setTableName(tableName);
1622 args.setRow(row);
1623 args.setTimestamp(timestamp);
1624 args.setAttributes(attributes);
1625 sendBase("deleteAllRowTs", args);
1626 }
1627
1628 public void recv_deleteAllRowTs() throws IOError, org.apache.thrift.TException
1629 {
1630 deleteAllRowTs_result result = new deleteAllRowTs_result();
1631 receiveBase(result, "deleteAllRowTs");
1632 if (result.io != null) {
1633 throw result.io;
1634 }
1635 return;
1636 }
1637
1638 public int scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1639 {
1640 send_scannerOpenWithScan(tableName, scan, attributes);
1641 return recv_scannerOpenWithScan();
1642 }
1643
1644 public void send_scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1645 {
1646 scannerOpenWithScan_args args = new scannerOpenWithScan_args();
1647 args.setTableName(tableName);
1648 args.setScan(scan);
1649 args.setAttributes(attributes);
1650 sendBase("scannerOpenWithScan", args);
1651 }
1652
1653 public int recv_scannerOpenWithScan() throws IOError, org.apache.thrift.TException
1654 {
1655 scannerOpenWithScan_result result = new scannerOpenWithScan_result();
1656 receiveBase(result, "scannerOpenWithScan");
1657 if (result.isSetSuccess()) {
1658 return result.success;
1659 }
1660 if (result.io != null) {
1661 throw result.io;
1662 }
1663 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithScan failed: unknown result");
1664 }
1665
1666 public int scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1667 {
1668 send_scannerOpen(tableName, startRow, columns, attributes);
1669 return recv_scannerOpen();
1670 }
1671
1672 public void send_scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1673 {
1674 scannerOpen_args args = new scannerOpen_args();
1675 args.setTableName(tableName);
1676 args.setStartRow(startRow);
1677 args.setColumns(columns);
1678 args.setAttributes(attributes);
1679 sendBase("scannerOpen", args);
1680 }
1681
1682 public int recv_scannerOpen() throws IOError, org.apache.thrift.TException
1683 {
1684 scannerOpen_result result = new scannerOpen_result();
1685 receiveBase(result, "scannerOpen");
1686 if (result.isSetSuccess()) {
1687 return result.success;
1688 }
1689 if (result.io != null) {
1690 throw result.io;
1691 }
1692 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpen failed: unknown result");
1693 }
1694
1695 public int scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1696 {
1697 send_scannerOpenWithStop(tableName, startRow, stopRow, columns, attributes);
1698 return recv_scannerOpenWithStop();
1699 }
1700
1701 public void send_scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1702 {
1703 scannerOpenWithStop_args args = new scannerOpenWithStop_args();
1704 args.setTableName(tableName);
1705 args.setStartRow(startRow);
1706 args.setStopRow(stopRow);
1707 args.setColumns(columns);
1708 args.setAttributes(attributes);
1709 sendBase("scannerOpenWithStop", args);
1710 }
1711
1712 public int recv_scannerOpenWithStop() throws IOError, org.apache.thrift.TException
1713 {
1714 scannerOpenWithStop_result result = new scannerOpenWithStop_result();
1715 receiveBase(result, "scannerOpenWithStop");
1716 if (result.isSetSuccess()) {
1717 return result.success;
1718 }
1719 if (result.io != null) {
1720 throw result.io;
1721 }
1722 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithStop failed: unknown result");
1723 }
1724
1725 public int scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1726 {
1727 send_scannerOpenWithPrefix(tableName, startAndPrefix, columns, attributes);
1728 return recv_scannerOpenWithPrefix();
1729 }
1730
1731 public void send_scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1732 {
1733 scannerOpenWithPrefix_args args = new scannerOpenWithPrefix_args();
1734 args.setTableName(tableName);
1735 args.setStartAndPrefix(startAndPrefix);
1736 args.setColumns(columns);
1737 args.setAttributes(attributes);
1738 sendBase("scannerOpenWithPrefix", args);
1739 }
1740
1741 public int recv_scannerOpenWithPrefix() throws IOError, org.apache.thrift.TException
1742 {
1743 scannerOpenWithPrefix_result result = new scannerOpenWithPrefix_result();
1744 receiveBase(result, "scannerOpenWithPrefix");
1745 if (result.isSetSuccess()) {
1746 return result.success;
1747 }
1748 if (result.io != null) {
1749 throw result.io;
1750 }
1751 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithPrefix failed: unknown result");
1752 }
1753
1754 public int scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1755 {
1756 send_scannerOpenTs(tableName, startRow, columns, timestamp, attributes);
1757 return recv_scannerOpenTs();
1758 }
1759
1760 public void send_scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1761 {
1762 scannerOpenTs_args args = new scannerOpenTs_args();
1763 args.setTableName(tableName);
1764 args.setStartRow(startRow);
1765 args.setColumns(columns);
1766 args.setTimestamp(timestamp);
1767 args.setAttributes(attributes);
1768 sendBase("scannerOpenTs", args);
1769 }
1770
1771 public int recv_scannerOpenTs() throws IOError, org.apache.thrift.TException
1772 {
1773 scannerOpenTs_result result = new scannerOpenTs_result();
1774 receiveBase(result, "scannerOpenTs");
1775 if (result.isSetSuccess()) {
1776 return result.success;
1777 }
1778 if (result.io != null) {
1779 throw result.io;
1780 }
1781 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenTs failed: unknown result");
1782 }
1783
1784 public int scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, org.apache.thrift.TException
1785 {
1786 send_scannerOpenWithStopTs(tableName, startRow, stopRow, columns, timestamp, attributes);
1787 return recv_scannerOpenWithStopTs();
1788 }
1789
1790 public void send_scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1791 {
1792 scannerOpenWithStopTs_args args = new scannerOpenWithStopTs_args();
1793 args.setTableName(tableName);
1794 args.setStartRow(startRow);
1795 args.setStopRow(stopRow);
1796 args.setColumns(columns);
1797 args.setTimestamp(timestamp);
1798 args.setAttributes(attributes);
1799 sendBase("scannerOpenWithStopTs", args);
1800 }
1801
1802 public int recv_scannerOpenWithStopTs() throws IOError, org.apache.thrift.TException
1803 {
1804 scannerOpenWithStopTs_result result = new scannerOpenWithStopTs_result();
1805 receiveBase(result, "scannerOpenWithStopTs");
1806 if (result.isSetSuccess()) {
1807 return result.success;
1808 }
1809 if (result.io != null) {
1810 throw result.io;
1811 }
1812 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerOpenWithStopTs failed: unknown result");
1813 }
1814
1815 public List<TRowResult> scannerGet(int id) throws IOError, IllegalArgument, org.apache.thrift.TException
1816 {
1817 send_scannerGet(id);
1818 return recv_scannerGet();
1819 }
1820
1821 public void send_scannerGet(int id) throws org.apache.thrift.TException
1822 {
1823 scannerGet_args args = new scannerGet_args();
1824 args.setId(id);
1825 sendBase("scannerGet", args);
1826 }
1827
1828 public List<TRowResult> recv_scannerGet() throws IOError, IllegalArgument, org.apache.thrift.TException
1829 {
1830 scannerGet_result result = new scannerGet_result();
1831 receiveBase(result, "scannerGet");
1832 if (result.isSetSuccess()) {
1833 return result.success;
1834 }
1835 if (result.io != null) {
1836 throw result.io;
1837 }
1838 if (result.ia != null) {
1839 throw result.ia;
1840 }
1841 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerGet failed: unknown result");
1842 }
1843
1844 public List<TRowResult> scannerGetList(int id, int nbRows) throws IOError, IllegalArgument, org.apache.thrift.TException
1845 {
1846 send_scannerGetList(id, nbRows);
1847 return recv_scannerGetList();
1848 }
1849
1850 public void send_scannerGetList(int id, int nbRows) throws org.apache.thrift.TException
1851 {
1852 scannerGetList_args args = new scannerGetList_args();
1853 args.setId(id);
1854 args.setNbRows(nbRows);
1855 sendBase("scannerGetList", args);
1856 }
1857
1858 public List<TRowResult> recv_scannerGetList() throws IOError, IllegalArgument, org.apache.thrift.TException
1859 {
1860 scannerGetList_result result = new scannerGetList_result();
1861 receiveBase(result, "scannerGetList");
1862 if (result.isSetSuccess()) {
1863 return result.success;
1864 }
1865 if (result.io != null) {
1866 throw result.io;
1867 }
1868 if (result.ia != null) {
1869 throw result.ia;
1870 }
1871 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scannerGetList failed: unknown result");
1872 }
1873
1874 public void scannerClose(int id) throws IOError, IllegalArgument, org.apache.thrift.TException
1875 {
1876 send_scannerClose(id);
1877 recv_scannerClose();
1878 }
1879
1880 public void send_scannerClose(int id) throws org.apache.thrift.TException
1881 {
1882 scannerClose_args args = new scannerClose_args();
1883 args.setId(id);
1884 sendBase("scannerClose", args);
1885 }
1886
1887 public void recv_scannerClose() throws IOError, IllegalArgument, org.apache.thrift.TException
1888 {
1889 scannerClose_result result = new scannerClose_result();
1890 receiveBase(result, "scannerClose");
1891 if (result.io != null) {
1892 throw result.io;
1893 }
1894 if (result.ia != null) {
1895 throw result.ia;
1896 }
1897 return;
1898 }
1899
1900 public List<TCell> getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family) throws IOError, org.apache.thrift.TException
1901 {
1902 send_getRowOrBefore(tableName, row, family);
1903 return recv_getRowOrBefore();
1904 }
1905
1906 public void send_getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family) throws org.apache.thrift.TException
1907 {
1908 getRowOrBefore_args args = new getRowOrBefore_args();
1909 args.setTableName(tableName);
1910 args.setRow(row);
1911 args.setFamily(family);
1912 sendBase("getRowOrBefore", args);
1913 }
1914
1915 public List<TCell> recv_getRowOrBefore() throws IOError, org.apache.thrift.TException
1916 {
1917 getRowOrBefore_result result = new getRowOrBefore_result();
1918 receiveBase(result, "getRowOrBefore");
1919 if (result.isSetSuccess()) {
1920 return result.success;
1921 }
1922 if (result.io != null) {
1923 throw result.io;
1924 }
1925 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRowOrBefore failed: unknown result");
1926 }
1927
1928 public TRegionInfo getRegionInfo(ByteBuffer row) throws IOError, org.apache.thrift.TException
1929 {
1930 send_getRegionInfo(row);
1931 return recv_getRegionInfo();
1932 }
1933
1934 public void send_getRegionInfo(ByteBuffer row) throws org.apache.thrift.TException
1935 {
1936 getRegionInfo_args args = new getRegionInfo_args();
1937 args.setRow(row);
1938 sendBase("getRegionInfo", args);
1939 }
1940
1941 public TRegionInfo recv_getRegionInfo() throws IOError, org.apache.thrift.TException
1942 {
1943 getRegionInfo_result result = new getRegionInfo_result();
1944 receiveBase(result, "getRegionInfo");
1945 if (result.isSetSuccess()) {
1946 return result.success;
1947 }
1948 if (result.io != null) {
1949 throw result.io;
1950 }
1951 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRegionInfo failed: unknown result");
1952 }
1953
1954 public List<TCell> append(TAppend append) throws IOError, org.apache.thrift.TException
1955 {
1956 send_append(append);
1957 return recv_append();
1958 }
1959
1960 public void send_append(TAppend append) throws org.apache.thrift.TException
1961 {
1962 append_args args = new append_args();
1963 args.setAppend(append);
1964 sendBase("append", args);
1965 }
1966
1967 public List<TCell> recv_append() throws IOError, org.apache.thrift.TException
1968 {
1969 append_result result = new append_result();
1970 receiveBase(result, "append");
1971 if (result.isSetSuccess()) {
1972 return result.success;
1973 }
1974 if (result.io != null) {
1975 throw result.io;
1976 }
1977 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "append failed: unknown result");
1978 }
1979
1980 public boolean checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes) throws IOError, IllegalArgument, org.apache.thrift.TException
1981 {
1982 send_checkAndPut(tableName, row, column, value, mput, attributes);
1983 return recv_checkAndPut();
1984 }
1985
1986 public void send_checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes) throws org.apache.thrift.TException
1987 {
1988 checkAndPut_args args = new checkAndPut_args();
1989 args.setTableName(tableName);
1990 args.setRow(row);
1991 args.setColumn(column);
1992 args.setValue(value);
1993 args.setMput(mput);
1994 args.setAttributes(attributes);
1995 sendBase("checkAndPut", args);
1996 }
1997
1998 public boolean recv_checkAndPut() throws IOError, IllegalArgument, org.apache.thrift.TException
1999 {
2000 checkAndPut_result result = new checkAndPut_result();
2001 receiveBase(result, "checkAndPut");
2002 if (result.isSetSuccess()) {
2003 return result.success;
2004 }
2005 if (result.io != null) {
2006 throw result.io;
2007 }
2008 if (result.ia != null) {
2009 throw result.ia;
2010 }
2011 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkAndPut failed: unknown result");
2012 }
2013
2014 }
2015 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
2016 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2017 private org.apache.thrift.async.TAsyncClientManager clientManager;
2018 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2019 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
2020 this.clientManager = clientManager;
2021 this.protocolFactory = protocolFactory;
2022 }
2023 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
2024 return new AsyncClient(protocolFactory, clientManager, transport);
2025 }
2026 }
2027
2028 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
2029 super(protocolFactory, clientManager, transport);
2030 }
2031
2032 public void enableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<enableTable_call> resultHandler) throws org.apache.thrift.TException {
2033 checkReady();
2034 enableTable_call method_call = new enableTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2035 this.___currentMethod = method_call;
2036 ___manager.call(method_call);
2037 }
2038
2039 public static class enableTable_call extends org.apache.thrift.async.TAsyncMethodCall {
2040 private ByteBuffer tableName;
2041 public enableTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<enableTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2042 super(client, protocolFactory, transport, resultHandler, false);
2043 this.tableName = tableName;
2044 }
2045
2046 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2047 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableTable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2048 enableTable_args args = new enableTable_args();
2049 args.setTableName(tableName);
2050 args.write(prot);
2051 prot.writeMessageEnd();
2052 }
2053
2054 public void getResult() throws IOError, org.apache.thrift.TException {
2055 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2056 throw new IllegalStateException("Method call not finished!");
2057 }
2058 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2059 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2060 (new Client(prot)).recv_enableTable();
2061 }
2062 }
2063
2064 public void disableTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<disableTable_call> resultHandler) throws org.apache.thrift.TException {
2065 checkReady();
2066 disableTable_call method_call = new disableTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2067 this.___currentMethod = method_call;
2068 ___manager.call(method_call);
2069 }
2070
2071 public static class disableTable_call extends org.apache.thrift.async.TAsyncMethodCall {
2072 private ByteBuffer tableName;
2073 public disableTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<disableTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2074 super(client, protocolFactory, transport, resultHandler, false);
2075 this.tableName = tableName;
2076 }
2077
2078 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2079 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableTable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2080 disableTable_args args = new disableTable_args();
2081 args.setTableName(tableName);
2082 args.write(prot);
2083 prot.writeMessageEnd();
2084 }
2085
2086 public void getResult() throws IOError, org.apache.thrift.TException {
2087 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2088 throw new IllegalStateException("Method call not finished!");
2089 }
2090 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2091 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2092 (new Client(prot)).recv_disableTable();
2093 }
2094 }
2095
2096 public void isTableEnabled(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<isTableEnabled_call> resultHandler) throws org.apache.thrift.TException {
2097 checkReady();
2098 isTableEnabled_call method_call = new isTableEnabled_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2099 this.___currentMethod = method_call;
2100 ___manager.call(method_call);
2101 }
2102
2103 public static class isTableEnabled_call extends org.apache.thrift.async.TAsyncMethodCall {
2104 private ByteBuffer tableName;
2105 public isTableEnabled_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<isTableEnabled_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2106 super(client, protocolFactory, transport, resultHandler, false);
2107 this.tableName = tableName;
2108 }
2109
2110 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2111 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isTableEnabled", org.apache.thrift.protocol.TMessageType.CALL, 0));
2112 isTableEnabled_args args = new isTableEnabled_args();
2113 args.setTableName(tableName);
2114 args.write(prot);
2115 prot.writeMessageEnd();
2116 }
2117
2118 public boolean getResult() throws IOError, org.apache.thrift.TException {
2119 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2120 throw new IllegalStateException("Method call not finished!");
2121 }
2122 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2123 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2124 return (new Client(prot)).recv_isTableEnabled();
2125 }
2126 }
2127
2128 public void compact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<compact_call> resultHandler) throws org.apache.thrift.TException {
2129 checkReady();
2130 compact_call method_call = new compact_call(tableNameOrRegionName, resultHandler, this, ___protocolFactory, ___transport);
2131 this.___currentMethod = method_call;
2132 ___manager.call(method_call);
2133 }
2134
2135 public static class compact_call extends org.apache.thrift.async.TAsyncMethodCall {
2136 private ByteBuffer tableNameOrRegionName;
2137 public compact_call(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<compact_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2138 super(client, protocolFactory, transport, resultHandler, false);
2139 this.tableNameOrRegionName = tableNameOrRegionName;
2140 }
2141
2142 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2143 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("compact", org.apache.thrift.protocol.TMessageType.CALL, 0));
2144 compact_args args = new compact_args();
2145 args.setTableNameOrRegionName(tableNameOrRegionName);
2146 args.write(prot);
2147 prot.writeMessageEnd();
2148 }
2149
2150 public void getResult() throws IOError, org.apache.thrift.TException {
2151 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2152 throw new IllegalStateException("Method call not finished!");
2153 }
2154 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2155 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2156 (new Client(prot)).recv_compact();
2157 }
2158 }
2159
2160 public void majorCompact(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<majorCompact_call> resultHandler) throws org.apache.thrift.TException {
2161 checkReady();
2162 majorCompact_call method_call = new majorCompact_call(tableNameOrRegionName, resultHandler, this, ___protocolFactory, ___transport);
2163 this.___currentMethod = method_call;
2164 ___manager.call(method_call);
2165 }
2166
2167 public static class majorCompact_call extends org.apache.thrift.async.TAsyncMethodCall {
2168 private ByteBuffer tableNameOrRegionName;
2169 public majorCompact_call(ByteBuffer tableNameOrRegionName, org.apache.thrift.async.AsyncMethodCallback<majorCompact_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2170 super(client, protocolFactory, transport, resultHandler, false);
2171 this.tableNameOrRegionName = tableNameOrRegionName;
2172 }
2173
2174 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2175 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("majorCompact", org.apache.thrift.protocol.TMessageType.CALL, 0));
2176 majorCompact_args args = new majorCompact_args();
2177 args.setTableNameOrRegionName(tableNameOrRegionName);
2178 args.write(prot);
2179 prot.writeMessageEnd();
2180 }
2181
2182 public void getResult() throws IOError, org.apache.thrift.TException {
2183 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2184 throw new IllegalStateException("Method call not finished!");
2185 }
2186 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2187 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2188 (new Client(prot)).recv_majorCompact();
2189 }
2190 }
2191
2192 public void getTableNames(org.apache.thrift.async.AsyncMethodCallback<getTableNames_call> resultHandler) throws org.apache.thrift.TException {
2193 checkReady();
2194 getTableNames_call method_call = new getTableNames_call(resultHandler, this, ___protocolFactory, ___transport);
2195 this.___currentMethod = method_call;
2196 ___manager.call(method_call);
2197 }
2198
2199 public static class getTableNames_call extends org.apache.thrift.async.TAsyncMethodCall {
2200 public getTableNames_call(org.apache.thrift.async.AsyncMethodCallback<getTableNames_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2201 super(client, protocolFactory, transport, resultHandler, false);
2202 }
2203
2204 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2205 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTableNames", org.apache.thrift.protocol.TMessageType.CALL, 0));
2206 getTableNames_args args = new getTableNames_args();
2207 args.write(prot);
2208 prot.writeMessageEnd();
2209 }
2210
2211 public List<ByteBuffer> getResult() throws IOError, org.apache.thrift.TException {
2212 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2213 throw new IllegalStateException("Method call not finished!");
2214 }
2215 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2216 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2217 return (new Client(prot)).recv_getTableNames();
2218 }
2219 }
2220
2221 public void getColumnDescriptors(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getColumnDescriptors_call> resultHandler) throws org.apache.thrift.TException {
2222 checkReady();
2223 getColumnDescriptors_call method_call = new getColumnDescriptors_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2224 this.___currentMethod = method_call;
2225 ___manager.call(method_call);
2226 }
2227
2228 public static class getColumnDescriptors_call extends org.apache.thrift.async.TAsyncMethodCall {
2229 private ByteBuffer tableName;
2230 public getColumnDescriptors_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getColumnDescriptors_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2231 super(client, protocolFactory, transport, resultHandler, false);
2232 this.tableName = tableName;
2233 }
2234
2235 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2236 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getColumnDescriptors", org.apache.thrift.protocol.TMessageType.CALL, 0));
2237 getColumnDescriptors_args args = new getColumnDescriptors_args();
2238 args.setTableName(tableName);
2239 args.write(prot);
2240 prot.writeMessageEnd();
2241 }
2242
2243 public Map<ByteBuffer,ColumnDescriptor> getResult() throws IOError, org.apache.thrift.TException {
2244 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2245 throw new IllegalStateException("Method call not finished!");
2246 }
2247 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2248 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2249 return (new Client(prot)).recv_getColumnDescriptors();
2250 }
2251 }
2252
2253 public void getTableRegions(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getTableRegions_call> resultHandler) throws org.apache.thrift.TException {
2254 checkReady();
2255 getTableRegions_call method_call = new getTableRegions_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2256 this.___currentMethod = method_call;
2257 ___manager.call(method_call);
2258 }
2259
2260 public static class getTableRegions_call extends org.apache.thrift.async.TAsyncMethodCall {
2261 private ByteBuffer tableName;
2262 public getTableRegions_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<getTableRegions_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2263 super(client, protocolFactory, transport, resultHandler, false);
2264 this.tableName = tableName;
2265 }
2266
2267 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2268 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTableRegions", org.apache.thrift.protocol.TMessageType.CALL, 0));
2269 getTableRegions_args args = new getTableRegions_args();
2270 args.setTableName(tableName);
2271 args.write(prot);
2272 prot.writeMessageEnd();
2273 }
2274
2275 public List<TRegionInfo> getResult() throws IOError, org.apache.thrift.TException {
2276 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2277 throw new IllegalStateException("Method call not finished!");
2278 }
2279 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2280 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2281 return (new Client(prot)).recv_getTableRegions();
2282 }
2283 }
2284
2285 public void createTable(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies, org.apache.thrift.async.AsyncMethodCallback<createTable_call> resultHandler) throws org.apache.thrift.TException {
2286 checkReady();
2287 createTable_call method_call = new createTable_call(tableName, columnFamilies, resultHandler, this, ___protocolFactory, ___transport);
2288 this.___currentMethod = method_call;
2289 ___manager.call(method_call);
2290 }
2291
2292 public static class createTable_call extends org.apache.thrift.async.TAsyncMethodCall {
2293 private ByteBuffer tableName;
2294 private List<ColumnDescriptor> columnFamilies;
2295 public createTable_call(ByteBuffer tableName, List<ColumnDescriptor> columnFamilies, org.apache.thrift.async.AsyncMethodCallback<createTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2296 super(client, protocolFactory, transport, resultHandler, false);
2297 this.tableName = tableName;
2298 this.columnFamilies = columnFamilies;
2299 }
2300
2301 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2302 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2303 createTable_args args = new createTable_args();
2304 args.setTableName(tableName);
2305 args.setColumnFamilies(columnFamilies);
2306 args.write(prot);
2307 prot.writeMessageEnd();
2308 }
2309
2310 public void getResult() throws IOError, IllegalArgument, AlreadyExists, org.apache.thrift.TException {
2311 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2312 throw new IllegalStateException("Method call not finished!");
2313 }
2314 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2315 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2316 (new Client(prot)).recv_createTable();
2317 }
2318 }
2319
2320 public void deleteTable(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<deleteTable_call> resultHandler) throws org.apache.thrift.TException {
2321 checkReady();
2322 deleteTable_call method_call = new deleteTable_call(tableName, resultHandler, this, ___protocolFactory, ___transport);
2323 this.___currentMethod = method_call;
2324 ___manager.call(method_call);
2325 }
2326
2327 public static class deleteTable_call extends org.apache.thrift.async.TAsyncMethodCall {
2328 private ByteBuffer tableName;
2329 public deleteTable_call(ByteBuffer tableName, org.apache.thrift.async.AsyncMethodCallback<deleteTable_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2330 super(client, protocolFactory, transport, resultHandler, false);
2331 this.tableName = tableName;
2332 }
2333
2334 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2335 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteTable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2336 deleteTable_args args = new deleteTable_args();
2337 args.setTableName(tableName);
2338 args.write(prot);
2339 prot.writeMessageEnd();
2340 }
2341
2342 public void getResult() throws IOError, org.apache.thrift.TException {
2343 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2344 throw new IllegalStateException("Method call not finished!");
2345 }
2346 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2347 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2348 (new Client(prot)).recv_deleteTable();
2349 }
2350 }
2351
2352 public void get(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<get_call> resultHandler) throws org.apache.thrift.TException {
2353 checkReady();
2354 get_call method_call = new get_call(tableName, row, column, attributes, resultHandler, this, ___protocolFactory, ___transport);
2355 this.___currentMethod = method_call;
2356 ___manager.call(method_call);
2357 }
2358
2359 public static class get_call extends org.apache.thrift.async.TAsyncMethodCall {
2360 private ByteBuffer tableName;
2361 private ByteBuffer row;
2362 private ByteBuffer column;
2363 private Map<ByteBuffer,ByteBuffer> attributes;
2364 public get_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<get_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2365 super(client, protocolFactory, transport, resultHandler, false);
2366 this.tableName = tableName;
2367 this.row = row;
2368 this.column = column;
2369 this.attributes = attributes;
2370 }
2371
2372 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2373 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get", org.apache.thrift.protocol.TMessageType.CALL, 0));
2374 get_args args = new get_args();
2375 args.setTableName(tableName);
2376 args.setRow(row);
2377 args.setColumn(column);
2378 args.setAttributes(attributes);
2379 args.write(prot);
2380 prot.writeMessageEnd();
2381 }
2382
2383 public List<TCell> getResult() throws IOError, org.apache.thrift.TException {
2384 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2385 throw new IllegalStateException("Method call not finished!");
2386 }
2387 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2388 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2389 return (new Client(prot)).recv_get();
2390 }
2391 }
2392
2393 public void getVer(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVer_call> resultHandler) throws org.apache.thrift.TException {
2394 checkReady();
2395 getVer_call method_call = new getVer_call(tableName, row, column, numVersions, attributes, resultHandler, this, ___protocolFactory, ___transport);
2396 this.___currentMethod = method_call;
2397 ___manager.call(method_call);
2398 }
2399
2400 public static class getVer_call extends org.apache.thrift.async.TAsyncMethodCall {
2401 private ByteBuffer tableName;
2402 private ByteBuffer row;
2403 private ByteBuffer column;
2404 private int numVersions;
2405 private Map<ByteBuffer,ByteBuffer> attributes;
2406 public getVer_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2407 super(client, protocolFactory, transport, resultHandler, false);
2408 this.tableName = tableName;
2409 this.row = row;
2410 this.column = column;
2411 this.numVersions = numVersions;
2412 this.attributes = attributes;
2413 }
2414
2415 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2416 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2417 getVer_args args = new getVer_args();
2418 args.setTableName(tableName);
2419 args.setRow(row);
2420 args.setColumn(column);
2421 args.setNumVersions(numVersions);
2422 args.setAttributes(attributes);
2423 args.write(prot);
2424 prot.writeMessageEnd();
2425 }
2426
2427 public List<TCell> getResult() throws IOError, org.apache.thrift.TException {
2428 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2429 throw new IllegalStateException("Method call not finished!");
2430 }
2431 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2432 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2433 return (new Client(prot)).recv_getVer();
2434 }
2435 }
2436
2437 public void getVerTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVerTs_call> resultHandler) throws org.apache.thrift.TException {
2438 checkReady();
2439 getVerTs_call method_call = new getVerTs_call(tableName, row, column, timestamp, numVersions, attributes, resultHandler, this, ___protocolFactory, ___transport);
2440 this.___currentMethod = method_call;
2441 ___manager.call(method_call);
2442 }
2443
2444 public static class getVerTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2445 private ByteBuffer tableName;
2446 private ByteBuffer row;
2447 private ByteBuffer column;
2448 private long timestamp;
2449 private int numVersions;
2450 private Map<ByteBuffer,ByteBuffer> attributes;
2451 public getVerTs_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, int numVersions, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getVerTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2452 super(client, protocolFactory, transport, resultHandler, false);
2453 this.tableName = tableName;
2454 this.row = row;
2455 this.column = column;
2456 this.timestamp = timestamp;
2457 this.numVersions = numVersions;
2458 this.attributes = attributes;
2459 }
2460
2461 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2462 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVerTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2463 getVerTs_args args = new getVerTs_args();
2464 args.setTableName(tableName);
2465 args.setRow(row);
2466 args.setColumn(column);
2467 args.setTimestamp(timestamp);
2468 args.setNumVersions(numVersions);
2469 args.setAttributes(attributes);
2470 args.write(prot);
2471 prot.writeMessageEnd();
2472 }
2473
2474 public List<TCell> getResult() throws IOError, org.apache.thrift.TException {
2475 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2476 throw new IllegalStateException("Method call not finished!");
2477 }
2478 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2479 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2480 return (new Client(prot)).recv_getVerTs();
2481 }
2482 }
2483
2484 public void getRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRow_call> resultHandler) throws org.apache.thrift.TException {
2485 checkReady();
2486 getRow_call method_call = new getRow_call(tableName, row, attributes, resultHandler, this, ___protocolFactory, ___transport);
2487 this.___currentMethod = method_call;
2488 ___manager.call(method_call);
2489 }
2490
2491 public static class getRow_call extends org.apache.thrift.async.TAsyncMethodCall {
2492 private ByteBuffer tableName;
2493 private ByteBuffer row;
2494 private Map<ByteBuffer,ByteBuffer> attributes;
2495 public getRow_call(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRow_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2496 super(client, protocolFactory, transport, resultHandler, false);
2497 this.tableName = tableName;
2498 this.row = row;
2499 this.attributes = attributes;
2500 }
2501
2502 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2503 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRow", org.apache.thrift.protocol.TMessageType.CALL, 0));
2504 getRow_args args = new getRow_args();
2505 args.setTableName(tableName);
2506 args.setRow(row);
2507 args.setAttributes(attributes);
2508 args.write(prot);
2509 prot.writeMessageEnd();
2510 }
2511
2512 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2513 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2514 throw new IllegalStateException("Method call not finished!");
2515 }
2516 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2517 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2518 return (new Client(prot)).recv_getRow();
2519 }
2520 }
2521
2522 public void getRowWithColumns(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumns_call> resultHandler) throws org.apache.thrift.TException {
2523 checkReady();
2524 getRowWithColumns_call method_call = new getRowWithColumns_call(tableName, row, columns, attributes, resultHandler, this, ___protocolFactory, ___transport);
2525 this.___currentMethod = method_call;
2526 ___manager.call(method_call);
2527 }
2528
2529 public static class getRowWithColumns_call extends org.apache.thrift.async.TAsyncMethodCall {
2530 private ByteBuffer tableName;
2531 private ByteBuffer row;
2532 private List<ByteBuffer> columns;
2533 private Map<ByteBuffer,ByteBuffer> attributes;
2534 public getRowWithColumns_call(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2535 super(client, protocolFactory, transport, resultHandler, false);
2536 this.tableName = tableName;
2537 this.row = row;
2538 this.columns = columns;
2539 this.attributes = attributes;
2540 }
2541
2542 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2543 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowWithColumns", org.apache.thrift.protocol.TMessageType.CALL, 0));
2544 getRowWithColumns_args args = new getRowWithColumns_args();
2545 args.setTableName(tableName);
2546 args.setRow(row);
2547 args.setColumns(columns);
2548 args.setAttributes(attributes);
2549 args.write(prot);
2550 prot.writeMessageEnd();
2551 }
2552
2553 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2554 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2555 throw new IllegalStateException("Method call not finished!");
2556 }
2557 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2558 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2559 return (new Client(prot)).recv_getRowWithColumns();
2560 }
2561 }
2562
2563 public void getRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowTs_call> resultHandler) throws org.apache.thrift.TException {
2564 checkReady();
2565 getRowTs_call method_call = new getRowTs_call(tableName, row, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2566 this.___currentMethod = method_call;
2567 ___manager.call(method_call);
2568 }
2569
2570 public static class getRowTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2571 private ByteBuffer tableName;
2572 private ByteBuffer row;
2573 private long timestamp;
2574 private Map<ByteBuffer,ByteBuffer> attributes;
2575 public getRowTs_call(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2576 super(client, protocolFactory, transport, resultHandler, false);
2577 this.tableName = tableName;
2578 this.row = row;
2579 this.timestamp = timestamp;
2580 this.attributes = attributes;
2581 }
2582
2583 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2584 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2585 getRowTs_args args = new getRowTs_args();
2586 args.setTableName(tableName);
2587 args.setRow(row);
2588 args.setTimestamp(timestamp);
2589 args.setAttributes(attributes);
2590 args.write(prot);
2591 prot.writeMessageEnd();
2592 }
2593
2594 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2595 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2596 throw new IllegalStateException("Method call not finished!");
2597 }
2598 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2599 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2600 return (new Client(prot)).recv_getRowTs();
2601 }
2602 }
2603
2604 public void getRowWithColumnsTs(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException {
2605 checkReady();
2606 getRowWithColumnsTs_call method_call = new getRowWithColumnsTs_call(tableName, row, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2607 this.___currentMethod = method_call;
2608 ___manager.call(method_call);
2609 }
2610
2611 public static class getRowWithColumnsTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2612 private ByteBuffer tableName;
2613 private ByteBuffer row;
2614 private List<ByteBuffer> columns;
2615 private long timestamp;
2616 private Map<ByteBuffer,ByteBuffer> attributes;
2617 public getRowWithColumnsTs_call(ByteBuffer tableName, ByteBuffer row, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowWithColumnsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2618 super(client, protocolFactory, transport, resultHandler, false);
2619 this.tableName = tableName;
2620 this.row = row;
2621 this.columns = columns;
2622 this.timestamp = timestamp;
2623 this.attributes = attributes;
2624 }
2625
2626 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2627 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowWithColumnsTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2628 getRowWithColumnsTs_args args = new getRowWithColumnsTs_args();
2629 args.setTableName(tableName);
2630 args.setRow(row);
2631 args.setColumns(columns);
2632 args.setTimestamp(timestamp);
2633 args.setAttributes(attributes);
2634 args.write(prot);
2635 prot.writeMessageEnd();
2636 }
2637
2638 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2639 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2640 throw new IllegalStateException("Method call not finished!");
2641 }
2642 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2643 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2644 return (new Client(prot)).recv_getRowWithColumnsTs();
2645 }
2646 }
2647
2648 public void getRows(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRows_call> resultHandler) throws org.apache.thrift.TException {
2649 checkReady();
2650 getRows_call method_call = new getRows_call(tableName, rows, attributes, resultHandler, this, ___protocolFactory, ___transport);
2651 this.___currentMethod = method_call;
2652 ___manager.call(method_call);
2653 }
2654
2655 public static class getRows_call extends org.apache.thrift.async.TAsyncMethodCall {
2656 private ByteBuffer tableName;
2657 private List<ByteBuffer> rows;
2658 private Map<ByteBuffer,ByteBuffer> attributes;
2659 public getRows_call(ByteBuffer tableName, List<ByteBuffer> rows, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRows_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2660 super(client, protocolFactory, transport, resultHandler, false);
2661 this.tableName = tableName;
2662 this.rows = rows;
2663 this.attributes = attributes;
2664 }
2665
2666 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2667 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRows", org.apache.thrift.protocol.TMessageType.CALL, 0));
2668 getRows_args args = new getRows_args();
2669 args.setTableName(tableName);
2670 args.setRows(rows);
2671 args.setAttributes(attributes);
2672 args.write(prot);
2673 prot.writeMessageEnd();
2674 }
2675
2676 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2677 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2678 throw new IllegalStateException("Method call not finished!");
2679 }
2680 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2681 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2682 return (new Client(prot)).recv_getRows();
2683 }
2684 }
2685
2686 public void getRowsWithColumns(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumns_call> resultHandler) throws org.apache.thrift.TException {
2687 checkReady();
2688 getRowsWithColumns_call method_call = new getRowsWithColumns_call(tableName, rows, columns, attributes, resultHandler, this, ___protocolFactory, ___transport);
2689 this.___currentMethod = method_call;
2690 ___manager.call(method_call);
2691 }
2692
2693 public static class getRowsWithColumns_call extends org.apache.thrift.async.TAsyncMethodCall {
2694 private ByteBuffer tableName;
2695 private List<ByteBuffer> rows;
2696 private List<ByteBuffer> columns;
2697 private Map<ByteBuffer,ByteBuffer> attributes;
2698 public getRowsWithColumns_call(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumns_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2699 super(client, protocolFactory, transport, resultHandler, false);
2700 this.tableName = tableName;
2701 this.rows = rows;
2702 this.columns = columns;
2703 this.attributes = attributes;
2704 }
2705
2706 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2707 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowsWithColumns", org.apache.thrift.protocol.TMessageType.CALL, 0));
2708 getRowsWithColumns_args args = new getRowsWithColumns_args();
2709 args.setTableName(tableName);
2710 args.setRows(rows);
2711 args.setColumns(columns);
2712 args.setAttributes(attributes);
2713 args.write(prot);
2714 prot.writeMessageEnd();
2715 }
2716
2717 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2718 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2719 throw new IllegalStateException("Method call not finished!");
2720 }
2721 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2722 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2723 return (new Client(prot)).recv_getRowsWithColumns();
2724 }
2725 }
2726
2727 public void getRowsTs(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsTs_call> resultHandler) throws org.apache.thrift.TException {
2728 checkReady();
2729 getRowsTs_call method_call = new getRowsTs_call(tableName, rows, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2730 this.___currentMethod = method_call;
2731 ___manager.call(method_call);
2732 }
2733
2734 public static class getRowsTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2735 private ByteBuffer tableName;
2736 private List<ByteBuffer> rows;
2737 private long timestamp;
2738 private Map<ByteBuffer,ByteBuffer> attributes;
2739 public getRowsTs_call(ByteBuffer tableName, List<ByteBuffer> rows, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2740 super(client, protocolFactory, transport, resultHandler, false);
2741 this.tableName = tableName;
2742 this.rows = rows;
2743 this.timestamp = timestamp;
2744 this.attributes = attributes;
2745 }
2746
2747 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2748 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowsTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2749 getRowsTs_args args = new getRowsTs_args();
2750 args.setTableName(tableName);
2751 args.setRows(rows);
2752 args.setTimestamp(timestamp);
2753 args.setAttributes(attributes);
2754 args.write(prot);
2755 prot.writeMessageEnd();
2756 }
2757
2758 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2759 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2760 throw new IllegalStateException("Method call not finished!");
2761 }
2762 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2763 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2764 return (new Client(prot)).recv_getRowsTs();
2765 }
2766 }
2767
2768 public void getRowsWithColumnsTs(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumnsTs_call> resultHandler) throws org.apache.thrift.TException {
2769 checkReady();
2770 getRowsWithColumnsTs_call method_call = new getRowsWithColumnsTs_call(tableName, rows, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2771 this.___currentMethod = method_call;
2772 ___manager.call(method_call);
2773 }
2774
2775 public static class getRowsWithColumnsTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2776 private ByteBuffer tableName;
2777 private List<ByteBuffer> rows;
2778 private List<ByteBuffer> columns;
2779 private long timestamp;
2780 private Map<ByteBuffer,ByteBuffer> attributes;
2781 public getRowsWithColumnsTs_call(ByteBuffer tableName, List<ByteBuffer> rows, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<getRowsWithColumnsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2782 super(client, protocolFactory, transport, resultHandler, false);
2783 this.tableName = tableName;
2784 this.rows = rows;
2785 this.columns = columns;
2786 this.timestamp = timestamp;
2787 this.attributes = attributes;
2788 }
2789
2790 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2791 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowsWithColumnsTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2792 getRowsWithColumnsTs_args args = new getRowsWithColumnsTs_args();
2793 args.setTableName(tableName);
2794 args.setRows(rows);
2795 args.setColumns(columns);
2796 args.setTimestamp(timestamp);
2797 args.setAttributes(attributes);
2798 args.write(prot);
2799 prot.writeMessageEnd();
2800 }
2801
2802 public List<TRowResult> getResult() throws IOError, org.apache.thrift.TException {
2803 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2804 throw new IllegalStateException("Method call not finished!");
2805 }
2806 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2807 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2808 return (new Client(prot)).recv_getRowsWithColumnsTs();
2809 }
2810 }
2811
2812 public void mutateRow(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRow_call> resultHandler) throws org.apache.thrift.TException {
2813 checkReady();
2814 mutateRow_call method_call = new mutateRow_call(tableName, row, mutations, attributes, resultHandler, this, ___protocolFactory, ___transport);
2815 this.___currentMethod = method_call;
2816 ___manager.call(method_call);
2817 }
2818
2819 public static class mutateRow_call extends org.apache.thrift.async.TAsyncMethodCall {
2820 private ByteBuffer tableName;
2821 private ByteBuffer row;
2822 private List<Mutation> mutations;
2823 private Map<ByteBuffer,ByteBuffer> attributes;
2824 public mutateRow_call(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRow_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2825 super(client, protocolFactory, transport, resultHandler, false);
2826 this.tableName = tableName;
2827 this.row = row;
2828 this.mutations = mutations;
2829 this.attributes = attributes;
2830 }
2831
2832 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2833 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRow", org.apache.thrift.protocol.TMessageType.CALL, 0));
2834 mutateRow_args args = new mutateRow_args();
2835 args.setTableName(tableName);
2836 args.setRow(row);
2837 args.setMutations(mutations);
2838 args.setAttributes(attributes);
2839 args.write(prot);
2840 prot.writeMessageEnd();
2841 }
2842
2843 public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
2844 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2845 throw new IllegalStateException("Method call not finished!");
2846 }
2847 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2848 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2849 (new Client(prot)).recv_mutateRow();
2850 }
2851 }
2852
2853 public void mutateRowTs(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowTs_call> resultHandler) throws org.apache.thrift.TException {
2854 checkReady();
2855 mutateRowTs_call method_call = new mutateRowTs_call(tableName, row, mutations, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2856 this.___currentMethod = method_call;
2857 ___manager.call(method_call);
2858 }
2859
2860 public static class mutateRowTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2861 private ByteBuffer tableName;
2862 private ByteBuffer row;
2863 private List<Mutation> mutations;
2864 private long timestamp;
2865 private Map<ByteBuffer,ByteBuffer> attributes;
2866 public mutateRowTs_call(ByteBuffer tableName, ByteBuffer row, List<Mutation> mutations, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2867 super(client, protocolFactory, transport, resultHandler, false);
2868 this.tableName = tableName;
2869 this.row = row;
2870 this.mutations = mutations;
2871 this.timestamp = timestamp;
2872 this.attributes = attributes;
2873 }
2874
2875 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2876 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRowTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2877 mutateRowTs_args args = new mutateRowTs_args();
2878 args.setTableName(tableName);
2879 args.setRow(row);
2880 args.setMutations(mutations);
2881 args.setTimestamp(timestamp);
2882 args.setAttributes(attributes);
2883 args.write(prot);
2884 prot.writeMessageEnd();
2885 }
2886
2887 public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
2888 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2889 throw new IllegalStateException("Method call not finished!");
2890 }
2891 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2892 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2893 (new Client(prot)).recv_mutateRowTs();
2894 }
2895 }
2896
2897 public void mutateRows(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRows_call> resultHandler) throws org.apache.thrift.TException {
2898 checkReady();
2899 mutateRows_call method_call = new mutateRows_call(tableName, rowBatches, attributes, resultHandler, this, ___protocolFactory, ___transport);
2900 this.___currentMethod = method_call;
2901 ___manager.call(method_call);
2902 }
2903
2904 public static class mutateRows_call extends org.apache.thrift.async.TAsyncMethodCall {
2905 private ByteBuffer tableName;
2906 private List<BatchMutation> rowBatches;
2907 private Map<ByteBuffer,ByteBuffer> attributes;
2908 public mutateRows_call(ByteBuffer tableName, List<BatchMutation> rowBatches, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRows_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2909 super(client, protocolFactory, transport, resultHandler, false);
2910 this.tableName = tableName;
2911 this.rowBatches = rowBatches;
2912 this.attributes = attributes;
2913 }
2914
2915 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2916 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRows", org.apache.thrift.protocol.TMessageType.CALL, 0));
2917 mutateRows_args args = new mutateRows_args();
2918 args.setTableName(tableName);
2919 args.setRowBatches(rowBatches);
2920 args.setAttributes(attributes);
2921 args.write(prot);
2922 prot.writeMessageEnd();
2923 }
2924
2925 public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
2926 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2927 throw new IllegalStateException("Method call not finished!");
2928 }
2929 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2930 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2931 (new Client(prot)).recv_mutateRows();
2932 }
2933 }
2934
2935 public void mutateRowsTs(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowsTs_call> resultHandler) throws org.apache.thrift.TException {
2936 checkReady();
2937 mutateRowsTs_call method_call = new mutateRowsTs_call(tableName, rowBatches, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
2938 this.___currentMethod = method_call;
2939 ___manager.call(method_call);
2940 }
2941
2942 public static class mutateRowsTs_call extends org.apache.thrift.async.TAsyncMethodCall {
2943 private ByteBuffer tableName;
2944 private List<BatchMutation> rowBatches;
2945 private long timestamp;
2946 private Map<ByteBuffer,ByteBuffer> attributes;
2947 public mutateRowsTs_call(ByteBuffer tableName, List<BatchMutation> rowBatches, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<mutateRowsTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2948 super(client, protocolFactory, transport, resultHandler, false);
2949 this.tableName = tableName;
2950 this.rowBatches = rowBatches;
2951 this.timestamp = timestamp;
2952 this.attributes = attributes;
2953 }
2954
2955 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2956 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("mutateRowsTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
2957 mutateRowsTs_args args = new mutateRowsTs_args();
2958 args.setTableName(tableName);
2959 args.setRowBatches(rowBatches);
2960 args.setTimestamp(timestamp);
2961 args.setAttributes(attributes);
2962 args.write(prot);
2963 prot.writeMessageEnd();
2964 }
2965
2966 public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
2967 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2968 throw new IllegalStateException("Method call not finished!");
2969 }
2970 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2971 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2972 (new Client(prot)).recv_mutateRowsTs();
2973 }
2974 }
2975
2976 public void atomicIncrement(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback<atomicIncrement_call> resultHandler) throws org.apache.thrift.TException {
2977 checkReady();
2978 atomicIncrement_call method_call = new atomicIncrement_call(tableName, row, column, value, resultHandler, this, ___protocolFactory, ___transport);
2979 this.___currentMethod = method_call;
2980 ___manager.call(method_call);
2981 }
2982
2983 public static class atomicIncrement_call extends org.apache.thrift.async.TAsyncMethodCall {
2984 private ByteBuffer tableName;
2985 private ByteBuffer row;
2986 private ByteBuffer column;
2987 private long value;
2988 public atomicIncrement_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long value, org.apache.thrift.async.AsyncMethodCallback<atomicIncrement_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2989 super(client, protocolFactory, transport, resultHandler, false);
2990 this.tableName = tableName;
2991 this.row = row;
2992 this.column = column;
2993 this.value = value;
2994 }
2995
2996 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2997 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("atomicIncrement", org.apache.thrift.protocol.TMessageType.CALL, 0));
2998 atomicIncrement_args args = new atomicIncrement_args();
2999 args.setTableName(tableName);
3000 args.setRow(row);
3001 args.setColumn(column);
3002 args.setValue(value);
3003 args.write(prot);
3004 prot.writeMessageEnd();
3005 }
3006
3007 public long getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
3008 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3009 throw new IllegalStateException("Method call not finished!");
3010 }
3011 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3012 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3013 return (new Client(prot)).recv_atomicIncrement();
3014 }
3015 }
3016
3017 public void deleteAll(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAll_call> resultHandler) throws org.apache.thrift.TException {
3018 checkReady();
3019 deleteAll_call method_call = new deleteAll_call(tableName, row, column, attributes, resultHandler, this, ___protocolFactory, ___transport);
3020 this.___currentMethod = method_call;
3021 ___manager.call(method_call);
3022 }
3023
3024 public static class deleteAll_call extends org.apache.thrift.async.TAsyncMethodCall {
3025 private ByteBuffer tableName;
3026 private ByteBuffer row;
3027 private ByteBuffer column;
3028 private Map<ByteBuffer,ByteBuffer> attributes;
3029 public deleteAll_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAll_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3030 super(client, protocolFactory, transport, resultHandler, false);
3031 this.tableName = tableName;
3032 this.row = row;
3033 this.column = column;
3034 this.attributes = attributes;
3035 }
3036
3037 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3038 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAll", org.apache.thrift.protocol.TMessageType.CALL, 0));
3039 deleteAll_args args = new deleteAll_args();
3040 args.setTableName(tableName);
3041 args.setRow(row);
3042 args.setColumn(column);
3043 args.setAttributes(attributes);
3044 args.write(prot);
3045 prot.writeMessageEnd();
3046 }
3047
3048 public void getResult() throws IOError, org.apache.thrift.TException {
3049 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3050 throw new IllegalStateException("Method call not finished!");
3051 }
3052 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3053 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3054 (new Client(prot)).recv_deleteAll();
3055 }
3056 }
3057
3058 public void deleteAllTs(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllTs_call> resultHandler) throws org.apache.thrift.TException {
3059 checkReady();
3060 deleteAllTs_call method_call = new deleteAllTs_call(tableName, row, column, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
3061 this.___currentMethod = method_call;
3062 ___manager.call(method_call);
3063 }
3064
3065 public static class deleteAllTs_call extends org.apache.thrift.async.TAsyncMethodCall {
3066 private ByteBuffer tableName;
3067 private ByteBuffer row;
3068 private ByteBuffer column;
3069 private long timestamp;
3070 private Map<ByteBuffer,ByteBuffer> attributes;
3071 public deleteAllTs_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3072 super(client, protocolFactory, transport, resultHandler, false);
3073 this.tableName = tableName;
3074 this.row = row;
3075 this.column = column;
3076 this.timestamp = timestamp;
3077 this.attributes = attributes;
3078 }
3079
3080 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3081 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3082 deleteAllTs_args args = new deleteAllTs_args();
3083 args.setTableName(tableName);
3084 args.setRow(row);
3085 args.setColumn(column);
3086 args.setTimestamp(timestamp);
3087 args.setAttributes(attributes);
3088 args.write(prot);
3089 prot.writeMessageEnd();
3090 }
3091
3092 public void getResult() throws IOError, org.apache.thrift.TException {
3093 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3094 throw new IllegalStateException("Method call not finished!");
3095 }
3096 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3097 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3098 (new Client(prot)).recv_deleteAllTs();
3099 }
3100 }
3101
3102 public void deleteAllRow(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRow_call> resultHandler) throws org.apache.thrift.TException {
3103 checkReady();
3104 deleteAllRow_call method_call = new deleteAllRow_call(tableName, row, attributes, resultHandler, this, ___protocolFactory, ___transport);
3105 this.___currentMethod = method_call;
3106 ___manager.call(method_call);
3107 }
3108
3109 public static class deleteAllRow_call extends org.apache.thrift.async.TAsyncMethodCall {
3110 private ByteBuffer tableName;
3111 private ByteBuffer row;
3112 private Map<ByteBuffer,ByteBuffer> attributes;
3113 public deleteAllRow_call(ByteBuffer tableName, ByteBuffer row, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRow_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3114 super(client, protocolFactory, transport, resultHandler, false);
3115 this.tableName = tableName;
3116 this.row = row;
3117 this.attributes = attributes;
3118 }
3119
3120 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3121 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllRow", org.apache.thrift.protocol.TMessageType.CALL, 0));
3122 deleteAllRow_args args = new deleteAllRow_args();
3123 args.setTableName(tableName);
3124 args.setRow(row);
3125 args.setAttributes(attributes);
3126 args.write(prot);
3127 prot.writeMessageEnd();
3128 }
3129
3130 public void getResult() throws IOError, org.apache.thrift.TException {
3131 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3132 throw new IllegalStateException("Method call not finished!");
3133 }
3134 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3135 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3136 (new Client(prot)).recv_deleteAllRow();
3137 }
3138 }
3139
3140 public void increment(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback<increment_call> resultHandler) throws org.apache.thrift.TException {
3141 checkReady();
3142 increment_call method_call = new increment_call(increment, resultHandler, this, ___protocolFactory, ___transport);
3143 this.___currentMethod = method_call;
3144 ___manager.call(method_call);
3145 }
3146
3147 public static class increment_call extends org.apache.thrift.async.TAsyncMethodCall {
3148 private TIncrement increment;
3149 public increment_call(TIncrement increment, org.apache.thrift.async.AsyncMethodCallback<increment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3150 super(client, protocolFactory, transport, resultHandler, false);
3151 this.increment = increment;
3152 }
3153
3154 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3155 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("increment", org.apache.thrift.protocol.TMessageType.CALL, 0));
3156 increment_args args = new increment_args();
3157 args.setIncrement(increment);
3158 args.write(prot);
3159 prot.writeMessageEnd();
3160 }
3161
3162 public void getResult() throws IOError, org.apache.thrift.TException {
3163 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3164 throw new IllegalStateException("Method call not finished!");
3165 }
3166 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3167 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3168 (new Client(prot)).recv_increment();
3169 }
3170 }
3171
3172 public void incrementRows(List<TIncrement> increments, org.apache.thrift.async.AsyncMethodCallback<incrementRows_call> resultHandler) throws org.apache.thrift.TException {
3173 checkReady();
3174 incrementRows_call method_call = new incrementRows_call(increments, resultHandler, this, ___protocolFactory, ___transport);
3175 this.___currentMethod = method_call;
3176 ___manager.call(method_call);
3177 }
3178
3179 public static class incrementRows_call extends org.apache.thrift.async.TAsyncMethodCall {
3180 private List<TIncrement> increments;
3181 public incrementRows_call(List<TIncrement> increments, org.apache.thrift.async.AsyncMethodCallback<incrementRows_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3182 super(client, protocolFactory, transport, resultHandler, false);
3183 this.increments = increments;
3184 }
3185
3186 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3187 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("incrementRows", org.apache.thrift.protocol.TMessageType.CALL, 0));
3188 incrementRows_args args = new incrementRows_args();
3189 args.setIncrements(increments);
3190 args.write(prot);
3191 prot.writeMessageEnd();
3192 }
3193
3194 public void getResult() throws IOError, org.apache.thrift.TException {
3195 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3196 throw new IllegalStateException("Method call not finished!");
3197 }
3198 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3199 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3200 (new Client(prot)).recv_incrementRows();
3201 }
3202 }
3203
3204 public void deleteAllRowTs(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRowTs_call> resultHandler) throws org.apache.thrift.TException {
3205 checkReady();
3206 deleteAllRowTs_call method_call = new deleteAllRowTs_call(tableName, row, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
3207 this.___currentMethod = method_call;
3208 ___manager.call(method_call);
3209 }
3210
3211 public static class deleteAllRowTs_call extends org.apache.thrift.async.TAsyncMethodCall {
3212 private ByteBuffer tableName;
3213 private ByteBuffer row;
3214 private long timestamp;
3215 private Map<ByteBuffer,ByteBuffer> attributes;
3216 public deleteAllRowTs_call(ByteBuffer tableName, ByteBuffer row, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<deleteAllRowTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3217 super(client, protocolFactory, transport, resultHandler, false);
3218 this.tableName = tableName;
3219 this.row = row;
3220 this.timestamp = timestamp;
3221 this.attributes = attributes;
3222 }
3223
3224 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3225 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteAllRowTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3226 deleteAllRowTs_args args = new deleteAllRowTs_args();
3227 args.setTableName(tableName);
3228 args.setRow(row);
3229 args.setTimestamp(timestamp);
3230 args.setAttributes(attributes);
3231 args.write(prot);
3232 prot.writeMessageEnd();
3233 }
3234
3235 public void getResult() throws IOError, org.apache.thrift.TException {
3236 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3237 throw new IllegalStateException("Method call not finished!");
3238 }
3239 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3240 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3241 (new Client(prot)).recv_deleteAllRowTs();
3242 }
3243 }
3244
3245 public void scannerOpenWithScan(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithScan_call> resultHandler) throws org.apache.thrift.TException {
3246 checkReady();
3247 scannerOpenWithScan_call method_call = new scannerOpenWithScan_call(tableName, scan, attributes, resultHandler, this, ___protocolFactory, ___transport);
3248 this.___currentMethod = method_call;
3249 ___manager.call(method_call);
3250 }
3251
3252 public static class scannerOpenWithScan_call extends org.apache.thrift.async.TAsyncMethodCall {
3253 private ByteBuffer tableName;
3254 private TScan scan;
3255 private Map<ByteBuffer,ByteBuffer> attributes;
3256 public scannerOpenWithScan_call(ByteBuffer tableName, TScan scan, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithScan_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3257 super(client, protocolFactory, transport, resultHandler, false);
3258 this.tableName = tableName;
3259 this.scan = scan;
3260 this.attributes = attributes;
3261 }
3262
3263 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3264 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithScan", org.apache.thrift.protocol.TMessageType.CALL, 0));
3265 scannerOpenWithScan_args args = new scannerOpenWithScan_args();
3266 args.setTableName(tableName);
3267 args.setScan(scan);
3268 args.setAttributes(attributes);
3269 args.write(prot);
3270 prot.writeMessageEnd();
3271 }
3272
3273 public int getResult() throws IOError, org.apache.thrift.TException {
3274 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3275 throw new IllegalStateException("Method call not finished!");
3276 }
3277 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3278 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3279 return (new Client(prot)).recv_scannerOpenWithScan();
3280 }
3281 }
3282
3283 public void scannerOpen(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpen_call> resultHandler) throws org.apache.thrift.TException {
3284 checkReady();
3285 scannerOpen_call method_call = new scannerOpen_call(tableName, startRow, columns, attributes, resultHandler, this, ___protocolFactory, ___transport);
3286 this.___currentMethod = method_call;
3287 ___manager.call(method_call);
3288 }
3289
3290 public static class scannerOpen_call extends org.apache.thrift.async.TAsyncMethodCall {
3291 private ByteBuffer tableName;
3292 private ByteBuffer startRow;
3293 private List<ByteBuffer> columns;
3294 private Map<ByteBuffer,ByteBuffer> attributes;
3295 public scannerOpen_call(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpen_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3296 super(client, protocolFactory, transport, resultHandler, false);
3297 this.tableName = tableName;
3298 this.startRow = startRow;
3299 this.columns = columns;
3300 this.attributes = attributes;
3301 }
3302
3303 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3304 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpen", org.apache.thrift.protocol.TMessageType.CALL, 0));
3305 scannerOpen_args args = new scannerOpen_args();
3306 args.setTableName(tableName);
3307 args.setStartRow(startRow);
3308 args.setColumns(columns);
3309 args.setAttributes(attributes);
3310 args.write(prot);
3311 prot.writeMessageEnd();
3312 }
3313
3314 public int getResult() throws IOError, org.apache.thrift.TException {
3315 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3316 throw new IllegalStateException("Method call not finished!");
3317 }
3318 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3319 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3320 return (new Client(prot)).recv_scannerOpen();
3321 }
3322 }
3323
3324 public void scannerOpenWithStop(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStop_call> resultHandler) throws org.apache.thrift.TException {
3325 checkReady();
3326 scannerOpenWithStop_call method_call = new scannerOpenWithStop_call(tableName, startRow, stopRow, columns, attributes, resultHandler, this, ___protocolFactory, ___transport);
3327 this.___currentMethod = method_call;
3328 ___manager.call(method_call);
3329 }
3330
3331 public static class scannerOpenWithStop_call extends org.apache.thrift.async.TAsyncMethodCall {
3332 private ByteBuffer tableName;
3333 private ByteBuffer startRow;
3334 private ByteBuffer stopRow;
3335 private List<ByteBuffer> columns;
3336 private Map<ByteBuffer,ByteBuffer> attributes;
3337 public scannerOpenWithStop_call(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStop_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3338 super(client, protocolFactory, transport, resultHandler, false);
3339 this.tableName = tableName;
3340 this.startRow = startRow;
3341 this.stopRow = stopRow;
3342 this.columns = columns;
3343 this.attributes = attributes;
3344 }
3345
3346 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3347 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithStop", org.apache.thrift.protocol.TMessageType.CALL, 0));
3348 scannerOpenWithStop_args args = new scannerOpenWithStop_args();
3349 args.setTableName(tableName);
3350 args.setStartRow(startRow);
3351 args.setStopRow(stopRow);
3352 args.setColumns(columns);
3353 args.setAttributes(attributes);
3354 args.write(prot);
3355 prot.writeMessageEnd();
3356 }
3357
3358 public int getResult() throws IOError, org.apache.thrift.TException {
3359 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3360 throw new IllegalStateException("Method call not finished!");
3361 }
3362 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3363 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3364 return (new Client(prot)).recv_scannerOpenWithStop();
3365 }
3366 }
3367
3368 public void scannerOpenWithPrefix(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithPrefix_call> resultHandler) throws org.apache.thrift.TException {
3369 checkReady();
3370 scannerOpenWithPrefix_call method_call = new scannerOpenWithPrefix_call(tableName, startAndPrefix, columns, attributes, resultHandler, this, ___protocolFactory, ___transport);
3371 this.___currentMethod = method_call;
3372 ___manager.call(method_call);
3373 }
3374
3375 public static class scannerOpenWithPrefix_call extends org.apache.thrift.async.TAsyncMethodCall {
3376 private ByteBuffer tableName;
3377 private ByteBuffer startAndPrefix;
3378 private List<ByteBuffer> columns;
3379 private Map<ByteBuffer,ByteBuffer> attributes;
3380 public scannerOpenWithPrefix_call(ByteBuffer tableName, ByteBuffer startAndPrefix, List<ByteBuffer> columns, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithPrefix_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3381 super(client, protocolFactory, transport, resultHandler, false);
3382 this.tableName = tableName;
3383 this.startAndPrefix = startAndPrefix;
3384 this.columns = columns;
3385 this.attributes = attributes;
3386 }
3387
3388 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3389 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithPrefix", org.apache.thrift.protocol.TMessageType.CALL, 0));
3390 scannerOpenWithPrefix_args args = new scannerOpenWithPrefix_args();
3391 args.setTableName(tableName);
3392 args.setStartAndPrefix(startAndPrefix);
3393 args.setColumns(columns);
3394 args.setAttributes(attributes);
3395 args.write(prot);
3396 prot.writeMessageEnd();
3397 }
3398
3399 public int getResult() throws IOError, org.apache.thrift.TException {
3400 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3401 throw new IllegalStateException("Method call not finished!");
3402 }
3403 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3404 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3405 return (new Client(prot)).recv_scannerOpenWithPrefix();
3406 }
3407 }
3408
3409 public void scannerOpenTs(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenTs_call> resultHandler) throws org.apache.thrift.TException {
3410 checkReady();
3411 scannerOpenTs_call method_call = new scannerOpenTs_call(tableName, startRow, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
3412 this.___currentMethod = method_call;
3413 ___manager.call(method_call);
3414 }
3415
3416 public static class scannerOpenTs_call extends org.apache.thrift.async.TAsyncMethodCall {
3417 private ByteBuffer tableName;
3418 private ByteBuffer startRow;
3419 private List<ByteBuffer> columns;
3420 private long timestamp;
3421 private Map<ByteBuffer,ByteBuffer> attributes;
3422 public scannerOpenTs_call(ByteBuffer tableName, ByteBuffer startRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3423 super(client, protocolFactory, transport, resultHandler, false);
3424 this.tableName = tableName;
3425 this.startRow = startRow;
3426 this.columns = columns;
3427 this.timestamp = timestamp;
3428 this.attributes = attributes;
3429 }
3430
3431 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3432 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3433 scannerOpenTs_args args = new scannerOpenTs_args();
3434 args.setTableName(tableName);
3435 args.setStartRow(startRow);
3436 args.setColumns(columns);
3437 args.setTimestamp(timestamp);
3438 args.setAttributes(attributes);
3439 args.write(prot);
3440 prot.writeMessageEnd();
3441 }
3442
3443 public int getResult() throws IOError, org.apache.thrift.TException {
3444 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3445 throw new IllegalStateException("Method call not finished!");
3446 }
3447 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3448 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3449 return (new Client(prot)).recv_scannerOpenTs();
3450 }
3451 }
3452
3453 public void scannerOpenWithStopTs(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStopTs_call> resultHandler) throws org.apache.thrift.TException {
3454 checkReady();
3455 scannerOpenWithStopTs_call method_call = new scannerOpenWithStopTs_call(tableName, startRow, stopRow, columns, timestamp, attributes, resultHandler, this, ___protocolFactory, ___transport);
3456 this.___currentMethod = method_call;
3457 ___manager.call(method_call);
3458 }
3459
3460 public static class scannerOpenWithStopTs_call extends org.apache.thrift.async.TAsyncMethodCall {
3461 private ByteBuffer tableName;
3462 private ByteBuffer startRow;
3463 private ByteBuffer stopRow;
3464 private List<ByteBuffer> columns;
3465 private long timestamp;
3466 private Map<ByteBuffer,ByteBuffer> attributes;
3467 public scannerOpenWithStopTs_call(ByteBuffer tableName, ByteBuffer startRow, ByteBuffer stopRow, List<ByteBuffer> columns, long timestamp, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<scannerOpenWithStopTs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3468 super(client, protocolFactory, transport, resultHandler, false);
3469 this.tableName = tableName;
3470 this.startRow = startRow;
3471 this.stopRow = stopRow;
3472 this.columns = columns;
3473 this.timestamp = timestamp;
3474 this.attributes = attributes;
3475 }
3476
3477 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3478 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerOpenWithStopTs", org.apache.thrift.protocol.TMessageType.CALL, 0));
3479 scannerOpenWithStopTs_args args = new scannerOpenWithStopTs_args();
3480 args.setTableName(tableName);
3481 args.setStartRow(startRow);
3482 args.setStopRow(stopRow);
3483 args.setColumns(columns);
3484 args.setTimestamp(timestamp);
3485 args.setAttributes(attributes);
3486 args.write(prot);
3487 prot.writeMessageEnd();
3488 }
3489
3490 public int getResult() throws IOError, org.apache.thrift.TException {
3491 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3492 throw new IllegalStateException("Method call not finished!");
3493 }
3494 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3495 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3496 return (new Client(prot)).recv_scannerOpenWithStopTs();
3497 }
3498 }
3499
3500 public void scannerGet(int id, org.apache.thrift.async.AsyncMethodCallback<scannerGet_call> resultHandler) throws org.apache.thrift.TException {
3501 checkReady();
3502 scannerGet_call method_call = new scannerGet_call(id, resultHandler, this, ___protocolFactory, ___transport);
3503 this.___currentMethod = method_call;
3504 ___manager.call(method_call);
3505 }
3506
3507 public static class scannerGet_call extends org.apache.thrift.async.TAsyncMethodCall {
3508 private int id;
3509 public scannerGet_call(int id, org.apache.thrift.async.AsyncMethodCallback<scannerGet_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3510 super(client, protocolFactory, transport, resultHandler, false);
3511 this.id = id;
3512 }
3513
3514 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3515 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerGet", org.apache.thrift.protocol.TMessageType.CALL, 0));
3516 scannerGet_args args = new scannerGet_args();
3517 args.setId(id);
3518 args.write(prot);
3519 prot.writeMessageEnd();
3520 }
3521
3522 public List<TRowResult> getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
3523 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3524 throw new IllegalStateException("Method call not finished!");
3525 }
3526 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3527 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3528 return (new Client(prot)).recv_scannerGet();
3529 }
3530 }
3531
3532 public void scannerGetList(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback<scannerGetList_call> resultHandler) throws org.apache.thrift.TException {
3533 checkReady();
3534 scannerGetList_call method_call = new scannerGetList_call(id, nbRows, resultHandler, this, ___protocolFactory, ___transport);
3535 this.___currentMethod = method_call;
3536 ___manager.call(method_call);
3537 }
3538
3539 public static class scannerGetList_call extends org.apache.thrift.async.TAsyncMethodCall {
3540 private int id;
3541 private int nbRows;
3542 public scannerGetList_call(int id, int nbRows, org.apache.thrift.async.AsyncMethodCallback<scannerGetList_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3543 super(client, protocolFactory, transport, resultHandler, false);
3544 this.id = id;
3545 this.nbRows = nbRows;
3546 }
3547
3548 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3549 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerGetList", org.apache.thrift.protocol.TMessageType.CALL, 0));
3550 scannerGetList_args args = new scannerGetList_args();
3551 args.setId(id);
3552 args.setNbRows(nbRows);
3553 args.write(prot);
3554 prot.writeMessageEnd();
3555 }
3556
3557 public List<TRowResult> getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
3558 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3559 throw new IllegalStateException("Method call not finished!");
3560 }
3561 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3562 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3563 return (new Client(prot)).recv_scannerGetList();
3564 }
3565 }
3566
3567 public void scannerClose(int id, org.apache.thrift.async.AsyncMethodCallback<scannerClose_call> resultHandler) throws org.apache.thrift.TException {
3568 checkReady();
3569 scannerClose_call method_call = new scannerClose_call(id, resultHandler, this, ___protocolFactory, ___transport);
3570 this.___currentMethod = method_call;
3571 ___manager.call(method_call);
3572 }
3573
3574 public static class scannerClose_call extends org.apache.thrift.async.TAsyncMethodCall {
3575 private int id;
3576 public scannerClose_call(int id, org.apache.thrift.async.AsyncMethodCallback<scannerClose_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3577 super(client, protocolFactory, transport, resultHandler, false);
3578 this.id = id;
3579 }
3580
3581 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3582 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scannerClose", org.apache.thrift.protocol.TMessageType.CALL, 0));
3583 scannerClose_args args = new scannerClose_args();
3584 args.setId(id);
3585 args.write(prot);
3586 prot.writeMessageEnd();
3587 }
3588
3589 public void getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
3590 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3591 throw new IllegalStateException("Method call not finished!");
3592 }
3593 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3594 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3595 (new Client(prot)).recv_scannerClose();
3596 }
3597 }
3598
3599 public void getRowOrBefore(ByteBuffer tableName, ByteBuffer row, ByteBuffer family, org.apache.thrift.async.AsyncMethodCallback<getRowOrBefore_call> resultHandler) throws org.apache.thrift.TException {
3600 checkReady();
3601 getRowOrBefore_call method_call = new getRowOrBefore_call(tableName, row, family, resultHandler, this, ___protocolFactory, ___transport);
3602 this.___currentMethod = method_call;
3603 ___manager.call(method_call);
3604 }
3605
3606 public static class getRowOrBefore_call extends org.apache.thrift.async.TAsyncMethodCall {
3607 private ByteBuffer tableName;
3608 private ByteBuffer row;
3609 private ByteBuffer family;
3610 public getRowOrBefore_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer family, org.apache.thrift.async.AsyncMethodCallback<getRowOrBefore_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3611 super(client, protocolFactory, transport, resultHandler, false);
3612 this.tableName = tableName;
3613 this.row = row;
3614 this.family = family;
3615 }
3616
3617 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3618 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRowOrBefore", org.apache.thrift.protocol.TMessageType.CALL, 0));
3619 getRowOrBefore_args args = new getRowOrBefore_args();
3620 args.setTableName(tableName);
3621 args.setRow(row);
3622 args.setFamily(family);
3623 args.write(prot);
3624 prot.writeMessageEnd();
3625 }
3626
3627 public List<TCell> getResult() throws IOError, org.apache.thrift.TException {
3628 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3629 throw new IllegalStateException("Method call not finished!");
3630 }
3631 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3632 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3633 return (new Client(prot)).recv_getRowOrBefore();
3634 }
3635 }
3636
3637 public void getRegionInfo(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback<getRegionInfo_call> resultHandler) throws org.apache.thrift.TException {
3638 checkReady();
3639 getRegionInfo_call method_call = new getRegionInfo_call(row, resultHandler, this, ___protocolFactory, ___transport);
3640 this.___currentMethod = method_call;
3641 ___manager.call(method_call);
3642 }
3643
3644 public static class getRegionInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
3645 private ByteBuffer row;
3646 public getRegionInfo_call(ByteBuffer row, org.apache.thrift.async.AsyncMethodCallback<getRegionInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3647 super(client, protocolFactory, transport, resultHandler, false);
3648 this.row = row;
3649 }
3650
3651 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3652 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRegionInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
3653 getRegionInfo_args args = new getRegionInfo_args();
3654 args.setRow(row);
3655 args.write(prot);
3656 prot.writeMessageEnd();
3657 }
3658
3659 public TRegionInfo getResult() throws IOError, org.apache.thrift.TException {
3660 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3661 throw new IllegalStateException("Method call not finished!");
3662 }
3663 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3664 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3665 return (new Client(prot)).recv_getRegionInfo();
3666 }
3667 }
3668
3669 public void append(TAppend append, org.apache.thrift.async.AsyncMethodCallback<append_call> resultHandler) throws org.apache.thrift.TException {
3670 checkReady();
3671 append_call method_call = new append_call(append, resultHandler, this, ___protocolFactory, ___transport);
3672 this.___currentMethod = method_call;
3673 ___manager.call(method_call);
3674 }
3675
3676 public static class append_call extends org.apache.thrift.async.TAsyncMethodCall {
3677 private TAppend append;
3678 public append_call(TAppend append, org.apache.thrift.async.AsyncMethodCallback<append_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3679 super(client, protocolFactory, transport, resultHandler, false);
3680 this.append = append;
3681 }
3682
3683 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3684 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("append", org.apache.thrift.protocol.TMessageType.CALL, 0));
3685 append_args args = new append_args();
3686 args.setAppend(append);
3687 args.write(prot);
3688 prot.writeMessageEnd();
3689 }
3690
3691 public List<TCell> getResult() throws IOError, org.apache.thrift.TException {
3692 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3693 throw new IllegalStateException("Method call not finished!");
3694 }
3695 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3696 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3697 return (new Client(prot)).recv_append();
3698 }
3699 }
3700
3701 public void checkAndPut(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<checkAndPut_call> resultHandler) throws org.apache.thrift.TException {
3702 checkReady();
3703 checkAndPut_call method_call = new checkAndPut_call(tableName, row, column, value, mput, attributes, resultHandler, this, ___protocolFactory, ___transport);
3704 this.___currentMethod = method_call;
3705 ___manager.call(method_call);
3706 }
3707
3708 public static class checkAndPut_call extends org.apache.thrift.async.TAsyncMethodCall {
3709 private ByteBuffer tableName;
3710 private ByteBuffer row;
3711 private ByteBuffer column;
3712 private ByteBuffer value;
3713 private Mutation mput;
3714 private Map<ByteBuffer,ByteBuffer> attributes;
3715 public checkAndPut_call(ByteBuffer tableName, ByteBuffer row, ByteBuffer column, ByteBuffer value, Mutation mput, Map<ByteBuffer,ByteBuffer> attributes, org.apache.thrift.async.AsyncMethodCallback<checkAndPut_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3716 super(client, protocolFactory, transport, resultHandler, false);
3717 this.tableName = tableName;
3718 this.row = row;
3719 this.column = column;
3720 this.value = value;
3721 this.mput = mput;
3722 this.attributes = attributes;
3723 }
3724
3725 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3726 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("checkAndPut", org.apache.thrift.protocol.TMessageType.CALL, 0));
3727 checkAndPut_args args = new checkAndPut_args();
3728 args.setTableName(tableName);
3729 args.setRow(row);
3730 args.setColumn(column);
3731 args.setValue(value);
3732 args.setMput(mput);
3733 args.setAttributes(attributes);
3734 args.write(prot);
3735 prot.writeMessageEnd();
3736 }
3737
3738 public boolean getResult() throws IOError, IllegalArgument, org.apache.thrift.TException {
3739 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3740 throw new IllegalStateException("Method call not finished!");
3741 }
3742 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3743 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3744 return (new Client(prot)).recv_checkAndPut();
3745 }
3746 }
3747
3748 }
3749
3750 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
3751 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3752 public Processor(I iface) {
3753 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
3754 }
3755
3756 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
3757 super(iface, getProcessMap(processMap));
3758 }
3759
3760 private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
3761 processMap.put("enableTable", new enableTable());
3762 processMap.put("disableTable", new disableTable());
3763 processMap.put("isTableEnabled", new isTableEnabled());
3764 processMap.put("compact", new compact());
3765 processMap.put("majorCompact", new majorCompact());
3766 processMap.put("getTableNames", new getTableNames());
3767 processMap.put("getColumnDescriptors", new getColumnDescriptors());
3768 processMap.put("getTableRegions", new getTableRegions());
3769 processMap.put("createTable", new createTable());
3770 processMap.put("deleteTable", new deleteTable());
3771 processMap.put("get", new get());
3772 processMap.put("getVer", new getVer());
3773 processMap.put("getVerTs", new getVerTs());
3774 processMap.put("getRow", new getRow());
3775 processMap.put("getRowWithColumns", new getRowWithColumns());
3776 processMap.put("getRowTs", new getRowTs());
3777 processMap.put("getRowWithColumnsTs", new getRowWithColumnsTs());
3778 processMap.put("getRows", new getRows());
3779 processMap.put("getRowsWithColumns", new getRowsWithColumns());
3780 processMap.put("getRowsTs", new getRowsTs());
3781 processMap.put("getRowsWithColumnsTs", new getRowsWithColumnsTs());
3782 processMap.put("mutateRow", new mutateRow());
3783 processMap.put("mutateRowTs", new mutateRowTs());
3784 processMap.put("mutateRows", new mutateRows());
3785 processMap.put("mutateRowsTs", new mutateRowsTs());
3786 processMap.put("atomicIncrement", new atomicIncrement());
3787 processMap.put("deleteAll", new deleteAll());
3788 processMap.put("deleteAllTs", new deleteAllTs());
3789 processMap.put("deleteAllRow", new deleteAllRow());
3790 processMap.put("increment", new increment());
3791 processMap.put("incrementRows", new incrementRows());
3792 processMap.put("deleteAllRowTs", new deleteAllRowTs());
3793 processMap.put("scannerOpenWithScan", new scannerOpenWithScan());
3794 processMap.put("scannerOpen", new scannerOpen());
3795 processMap.put("scannerOpenWithStop", new scannerOpenWithStop());
3796 processMap.put("scannerOpenWithPrefix", new scannerOpenWithPrefix());
3797 processMap.put("scannerOpenTs", new scannerOpenTs());
3798 processMap.put("scannerOpenWithStopTs", new scannerOpenWithStopTs());
3799 processMap.put("scannerGet", new scannerGet());
3800 processMap.put("scannerGetList", new scannerGetList());
3801 processMap.put("scannerClose", new scannerClose());
3802 processMap.put("getRowOrBefore", new getRowOrBefore());
3803 processMap.put("getRegionInfo", new getRegionInfo());
3804 processMap.put("append", new append());
3805 processMap.put("checkAndPut", new checkAndPut());
3806 return processMap;
3807 }
3808
3809 public static class enableTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableTable_args> {
3810 public enableTable() {
3811 super("enableTable");
3812 }
3813
3814 public enableTable_args getEmptyArgsInstance() {
3815 return new enableTable_args();
3816 }
3817
3818 protected boolean isOneway() {
3819 return false;
3820 }
3821
3822 public enableTable_result getResult(I iface, enableTable_args args) throws org.apache.thrift.TException {
3823 enableTable_result result = new enableTable_result();
3824 try {
3825 iface.enableTable(args.tableName);
3826 } catch (IOError io) {
3827 result.io = io;
3828 }
3829 return result;
3830 }
3831 }
3832
3833 public static class disableTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableTable_args> {
3834 public disableTable() {
3835 super("disableTable");
3836 }
3837
3838 public disableTable_args getEmptyArgsInstance() {
3839 return new disableTable_args();
3840 }
3841
3842 protected boolean isOneway() {
3843 return false;
3844 }
3845
3846 public disableTable_result getResult(I iface, disableTable_args args) throws org.apache.thrift.TException {
3847 disableTable_result result = new disableTable_result();
3848 try {
3849 iface.disableTable(args.tableName);
3850 } catch (IOError io) {
3851 result.io = io;
3852 }
3853 return result;
3854 }
3855 }
3856
3857 public static class isTableEnabled<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isTableEnabled_args> {
3858 public isTableEnabled() {
3859 super("isTableEnabled");
3860 }
3861
3862 public isTableEnabled_args getEmptyArgsInstance() {
3863 return new isTableEnabled_args();
3864 }
3865
3866 protected boolean isOneway() {
3867 return false;
3868 }
3869
3870 public isTableEnabled_result getResult(I iface, isTableEnabled_args args) throws org.apache.thrift.TException {
3871 isTableEnabled_result result = new isTableEnabled_result();
3872 try {
3873 result.success = iface.isTableEnabled(args.tableName);
3874 result.setSuccessIsSet(true);
3875 } catch (IOError io) {
3876 result.io = io;
3877 }
3878 return result;
3879 }
3880 }
3881
3882 public static class compact<I extends Iface> extends org.apache.thrift.ProcessFunction<I, compact_args> {
3883 public compact() {
3884 super("compact");
3885 }
3886
3887 public compact_args getEmptyArgsInstance() {
3888 return new compact_args();
3889 }
3890
3891 protected boolean isOneway() {
3892 return false;
3893 }
3894
3895 public compact_result getResult(I iface, compact_args args) throws org.apache.thrift.TException {
3896 compact_result result = new compact_result();
3897 try {
3898 iface.compact(args.tableNameOrRegionName);
3899 } catch (IOError io) {
3900 result.io = io;
3901 }
3902 return result;
3903 }
3904 }
3905
3906 public static class majorCompact<I extends Iface> extends org.apache.thrift.ProcessFunction<I, majorCompact_args> {
3907 public majorCompact() {
3908 super("majorCompact");
3909 }
3910
3911 public majorCompact_args getEmptyArgsInstance() {
3912 return new majorCompact_args();
3913 }
3914
3915 protected boolean isOneway() {
3916 return false;
3917 }
3918
3919 public majorCompact_result getResult(I iface, majorCompact_args args) throws org.apache.thrift.TException {
3920 majorCompact_result result = new majorCompact_result();
3921 try {
3922 iface.majorCompact(args.tableNameOrRegionName);
3923 } catch (IOError io) {
3924 result.io = io;
3925 }
3926 return result;
3927 }
3928 }
3929
3930 public static class getTableNames<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTableNames_args> {
3931 public getTableNames() {
3932 super("getTableNames");
3933 }
3934
3935 public getTableNames_args getEmptyArgsInstance() {
3936 return new getTableNames_args();
3937 }
3938
3939 protected boolean isOneway() {
3940 return false;
3941 }
3942
3943 public getTableNames_result getResult(I iface, getTableNames_args args) throws org.apache.thrift.TException {
3944 getTableNames_result result = new getTableNames_result();
3945 try {
3946 result.success = iface.getTableNames();
3947 } catch (IOError io) {
3948 result.io = io;
3949 }
3950 return result;
3951 }
3952 }
3953
3954 public static class getColumnDescriptors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getColumnDescriptors_args> {
3955 public getColumnDescriptors() {
3956 super("getColumnDescriptors");
3957 }
3958
3959 public getColumnDescriptors_args getEmptyArgsInstance() {
3960 return new getColumnDescriptors_args();
3961 }
3962
3963 protected boolean isOneway() {
3964 return false;
3965 }
3966
3967 public getColumnDescriptors_result getResult(I iface, getColumnDescriptors_args args) throws org.apache.thrift.TException {
3968 getColumnDescriptors_result result = new getColumnDescriptors_result();
3969 try {
3970 result.success = iface.getColumnDescriptors(args.tableName);
3971 } catch (IOError io) {
3972 result.io = io;
3973 }
3974 return result;
3975 }
3976 }
3977
3978 public static class getTableRegions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTableRegions_args> {
3979 public getTableRegions() {
3980 super("getTableRegions");
3981 }
3982
3983 public getTableRegions_args getEmptyArgsInstance() {
3984 return new getTableRegions_args();
3985 }
3986
3987 protected boolean isOneway() {
3988 return false;
3989 }
3990
3991 public getTableRegions_result getResult(I iface, getTableRegions_args args) throws org.apache.thrift.TException {
3992 getTableRegions_result result = new getTableRegions_result();
3993 try {
3994 result.success = iface.getTableRegions(args.tableName);
3995 } catch (IOError io) {
3996 result.io = io;
3997 }
3998 return result;
3999 }
4000 }
4001
4002 public static class createTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTable_args> {
4003 public createTable() {
4004 super("createTable");
4005 }
4006
4007 public createTable_args getEmptyArgsInstance() {
4008 return new createTable_args();
4009 }
4010
4011 protected boolean isOneway() {
4012 return false;
4013 }
4014
4015 public createTable_result getResult(I iface, createTable_args args) throws org.apache.thrift.TException {
4016 createTable_result result = new createTable_result();
4017 try {
4018 iface.createTable(args.tableName, args.columnFamilies);
4019 } catch (IOError io) {
4020 result.io = io;
4021 } catch (IllegalArgument ia) {
4022 result.ia = ia;
4023 } catch (AlreadyExists exist) {
4024 result.exist = exist;
4025 }
4026 return result;
4027 }
4028 }
4029
4030 public static class deleteTable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteTable_args> {
4031 public deleteTable() {
4032 super("deleteTable");
4033 }
4034
4035 public deleteTable_args getEmptyArgsInstance() {
4036 return new deleteTable_args();
4037 }
4038
4039 protected boolean isOneway() {
4040 return false;
4041 }
4042
4043 public deleteTable_result getResult(I iface, deleteTable_args args) throws org.apache.thrift.TException {
4044 deleteTable_result result = new deleteTable_result();
4045 try {
4046 iface.deleteTable(args.tableName);
4047 } catch (IOError io) {
4048 result.io = io;
4049 }
4050 return result;
4051 }
4052 }
4053
4054 public static class get<I extends Iface> extends org.apache.thrift.ProcessFunction<I, get_args> {
4055 public get() {
4056 super("get");
4057 }
4058
4059 public get_args getEmptyArgsInstance() {
4060 return new get_args();
4061 }
4062
4063 protected boolean isOneway() {
4064 return false;
4065 }
4066
4067 public get_result getResult(I iface, get_args args) throws org.apache.thrift.TException {
4068 get_result result = new get_result();
4069 try {
4070 result.success = iface.get(args.tableName, args.row, args.column, args.attributes);
4071 } catch (IOError io) {
4072 result.io = io;
4073 }
4074 return result;
4075 }
4076 }
4077
4078 public static class getVer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVer_args> {
4079 public getVer() {
4080 super("getVer");
4081 }
4082
4083 public getVer_args getEmptyArgsInstance() {
4084 return new getVer_args();
4085 }
4086
4087 protected boolean isOneway() {
4088 return false;
4089 }
4090
4091 public getVer_result getResult(I iface, getVer_args args) throws org.apache.thrift.TException {
4092 getVer_result result = new getVer_result();
4093 try {
4094 result.success = iface.getVer(args.tableName, args.row, args.column, args.numVersions, args.attributes);
4095 } catch (IOError io) {
4096 result.io = io;
4097 }
4098 return result;
4099 }
4100 }
4101
4102 public static class getVerTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVerTs_args> {
4103 public getVerTs() {
4104 super("getVerTs");
4105 }
4106
4107 public getVerTs_args getEmptyArgsInstance() {
4108 return new getVerTs_args();
4109 }
4110
4111 protected boolean isOneway() {
4112 return false;
4113 }
4114
4115 public getVerTs_result getResult(I iface, getVerTs_args args) throws org.apache.thrift.TException {
4116 getVerTs_result result = new getVerTs_result();
4117 try {
4118 result.success = iface.getVerTs(args.tableName, args.row, args.column, args.timestamp, args.numVersions, args.attributes);
4119 } catch (IOError io) {
4120 result.io = io;
4121 }
4122 return result;
4123 }
4124 }
4125
4126 public static class getRow<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRow_args> {
4127 public getRow() {
4128 super("getRow");
4129 }
4130
4131 public getRow_args getEmptyArgsInstance() {
4132 return new getRow_args();
4133 }
4134
4135 protected boolean isOneway() {
4136 return false;
4137 }
4138
4139 public getRow_result getResult(I iface, getRow_args args) throws org.apache.thrift.TException {
4140 getRow_result result = new getRow_result();
4141 try {
4142 result.success = iface.getRow(args.tableName, args.row, args.attributes);
4143 } catch (IOError io) {
4144 result.io = io;
4145 }
4146 return result;
4147 }
4148 }
4149
4150 public static class getRowWithColumns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowWithColumns_args> {
4151 public getRowWithColumns() {
4152 super("getRowWithColumns");
4153 }
4154
4155 public getRowWithColumns_args getEmptyArgsInstance() {
4156 return new getRowWithColumns_args();
4157 }
4158
4159 protected boolean isOneway() {
4160 return false;
4161 }
4162
4163 public getRowWithColumns_result getResult(I iface, getRowWithColumns_args args) throws org.apache.thrift.TException {
4164 getRowWithColumns_result result = new getRowWithColumns_result();
4165 try {
4166 result.success = iface.getRowWithColumns(args.tableName, args.row, args.columns, args.attributes);
4167 } catch (IOError io) {
4168 result.io = io;
4169 }
4170 return result;
4171 }
4172 }
4173
4174 public static class getRowTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowTs_args> {
4175 public getRowTs() {
4176 super("getRowTs");
4177 }
4178
4179 public getRowTs_args getEmptyArgsInstance() {
4180 return new getRowTs_args();
4181 }
4182
4183 protected boolean isOneway() {
4184 return false;
4185 }
4186
4187 public getRowTs_result getResult(I iface, getRowTs_args args) throws org.apache.thrift.TException {
4188 getRowTs_result result = new getRowTs_result();
4189 try {
4190 result.success = iface.getRowTs(args.tableName, args.row, args.timestamp, args.attributes);
4191 } catch (IOError io) {
4192 result.io = io;
4193 }
4194 return result;
4195 }
4196 }
4197
4198 public static class getRowWithColumnsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowWithColumnsTs_args> {
4199 public getRowWithColumnsTs() {
4200 super("getRowWithColumnsTs");
4201 }
4202
4203 public getRowWithColumnsTs_args getEmptyArgsInstance() {
4204 return new getRowWithColumnsTs_args();
4205 }
4206
4207 protected boolean isOneway() {
4208 return false;
4209 }
4210
4211 public getRowWithColumnsTs_result getResult(I iface, getRowWithColumnsTs_args args) throws org.apache.thrift.TException {
4212 getRowWithColumnsTs_result result = new getRowWithColumnsTs_result();
4213 try {
4214 result.success = iface.getRowWithColumnsTs(args.tableName, args.row, args.columns, args.timestamp, args.attributes);
4215 } catch (IOError io) {
4216 result.io = io;
4217 }
4218 return result;
4219 }
4220 }
4221
4222 public static class getRows<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRows_args> {
4223 public getRows() {
4224 super("getRows");
4225 }
4226
4227 public getRows_args getEmptyArgsInstance() {
4228 return new getRows_args();
4229 }
4230
4231 protected boolean isOneway() {
4232 return false;
4233 }
4234
4235 public getRows_result getResult(I iface, getRows_args args) throws org.apache.thrift.TException {
4236 getRows_result result = new getRows_result();
4237 try {
4238 result.success = iface.getRows(args.tableName, args.rows, args.attributes);
4239 } catch (IOError io) {
4240 result.io = io;
4241 }
4242 return result;
4243 }
4244 }
4245
4246 public static class getRowsWithColumns<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowsWithColumns_args> {
4247 public getRowsWithColumns() {
4248 super("getRowsWithColumns");
4249 }
4250
4251 public getRowsWithColumns_args getEmptyArgsInstance() {
4252 return new getRowsWithColumns_args();
4253 }
4254
4255 protected boolean isOneway() {
4256 return false;
4257 }
4258
4259 public getRowsWithColumns_result getResult(I iface, getRowsWithColumns_args args) throws org.apache.thrift.TException {
4260 getRowsWithColumns_result result = new getRowsWithColumns_result();
4261 try {
4262 result.success = iface.getRowsWithColumns(args.tableName, args.rows, args.columns, args.attributes);
4263 } catch (IOError io) {
4264 result.io = io;
4265 }
4266 return result;
4267 }
4268 }
4269
4270 public static class getRowsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowsTs_args> {
4271 public getRowsTs() {
4272 super("getRowsTs");
4273 }
4274
4275 public getRowsTs_args getEmptyArgsInstance() {
4276 return new getRowsTs_args();
4277 }
4278
4279 protected boolean isOneway() {
4280 return false;
4281 }
4282
4283 public getRowsTs_result getResult(I iface, getRowsTs_args args) throws org.apache.thrift.TException {
4284 getRowsTs_result result = new getRowsTs_result();
4285 try {
4286 result.success = iface.getRowsTs(args.tableName, args.rows, args.timestamp, args.attributes);
4287 } catch (IOError io) {
4288 result.io = io;
4289 }
4290 return result;
4291 }
4292 }
4293
4294 public static class getRowsWithColumnsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowsWithColumnsTs_args> {
4295 public getRowsWithColumnsTs() {
4296 super("getRowsWithColumnsTs");
4297 }
4298
4299 public getRowsWithColumnsTs_args getEmptyArgsInstance() {
4300 return new getRowsWithColumnsTs_args();
4301 }
4302
4303 protected boolean isOneway() {
4304 return false;
4305 }
4306
4307 public getRowsWithColumnsTs_result getResult(I iface, getRowsWithColumnsTs_args args) throws org.apache.thrift.TException {
4308 getRowsWithColumnsTs_result result = new getRowsWithColumnsTs_result();
4309 try {
4310 result.success = iface.getRowsWithColumnsTs(args.tableName, args.rows, args.columns, args.timestamp, args.attributes);
4311 } catch (IOError io) {
4312 result.io = io;
4313 }
4314 return result;
4315 }
4316 }
4317
4318 public static class mutateRow<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRow_args> {
4319 public mutateRow() {
4320 super("mutateRow");
4321 }
4322
4323 public mutateRow_args getEmptyArgsInstance() {
4324 return new mutateRow_args();
4325 }
4326
4327 protected boolean isOneway() {
4328 return false;
4329 }
4330
4331 public mutateRow_result getResult(I iface, mutateRow_args args) throws org.apache.thrift.TException {
4332 mutateRow_result result = new mutateRow_result();
4333 try {
4334 iface.mutateRow(args.tableName, args.row, args.mutations, args.attributes);
4335 } catch (IOError io) {
4336 result.io = io;
4337 } catch (IllegalArgument ia) {
4338 result.ia = ia;
4339 }
4340 return result;
4341 }
4342 }
4343
4344 public static class mutateRowTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRowTs_args> {
4345 public mutateRowTs() {
4346 super("mutateRowTs");
4347 }
4348
4349 public mutateRowTs_args getEmptyArgsInstance() {
4350 return new mutateRowTs_args();
4351 }
4352
4353 protected boolean isOneway() {
4354 return false;
4355 }
4356
4357 public mutateRowTs_result getResult(I iface, mutateRowTs_args args) throws org.apache.thrift.TException {
4358 mutateRowTs_result result = new mutateRowTs_result();
4359 try {
4360 iface.mutateRowTs(args.tableName, args.row, args.mutations, args.timestamp, args.attributes);
4361 } catch (IOError io) {
4362 result.io = io;
4363 } catch (IllegalArgument ia) {
4364 result.ia = ia;
4365 }
4366 return result;
4367 }
4368 }
4369
4370 public static class mutateRows<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRows_args> {
4371 public mutateRows() {
4372 super("mutateRows");
4373 }
4374
4375 public mutateRows_args getEmptyArgsInstance() {
4376 return new mutateRows_args();
4377 }
4378
4379 protected boolean isOneway() {
4380 return false;
4381 }
4382
4383 public mutateRows_result getResult(I iface, mutateRows_args args) throws org.apache.thrift.TException {
4384 mutateRows_result result = new mutateRows_result();
4385 try {
4386 iface.mutateRows(args.tableName, args.rowBatches, args.attributes);
4387 } catch (IOError io) {
4388 result.io = io;
4389 } catch (IllegalArgument ia) {
4390 result.ia = ia;
4391 }
4392 return result;
4393 }
4394 }
4395
4396 public static class mutateRowsTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, mutateRowsTs_args> {
4397 public mutateRowsTs() {
4398 super("mutateRowsTs");
4399 }
4400
4401 public mutateRowsTs_args getEmptyArgsInstance() {
4402 return new mutateRowsTs_args();
4403 }
4404
4405 protected boolean isOneway() {
4406 return false;
4407 }
4408
4409 public mutateRowsTs_result getResult(I iface, mutateRowsTs_args args) throws org.apache.thrift.TException {
4410 mutateRowsTs_result result = new mutateRowsTs_result();
4411 try {
4412 iface.mutateRowsTs(args.tableName, args.rowBatches, args.timestamp, args.attributes);
4413 } catch (IOError io) {
4414 result.io = io;
4415 } catch (IllegalArgument ia) {
4416 result.ia = ia;
4417 }
4418 return result;
4419 }
4420 }
4421
4422 public static class atomicIncrement<I extends Iface> extends org.apache.thrift.ProcessFunction<I, atomicIncrement_args> {
4423 public atomicIncrement() {
4424 super("atomicIncrement");
4425 }
4426
4427 public atomicIncrement_args getEmptyArgsInstance() {
4428 return new atomicIncrement_args();
4429 }
4430
4431 protected boolean isOneway() {
4432 return false;
4433 }
4434
4435 public atomicIncrement_result getResult(I iface, atomicIncrement_args args) throws org.apache.thrift.TException {
4436 atomicIncrement_result result = new atomicIncrement_result();
4437 try {
4438 result.success = iface.atomicIncrement(args.tableName, args.row, args.column, args.value);
4439 result.setSuccessIsSet(true);
4440 } catch (IOError io) {
4441 result.io = io;
4442 } catch (IllegalArgument ia) {
4443 result.ia = ia;
4444 }
4445 return result;
4446 }
4447 }
4448
4449 public static class deleteAll<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAll_args> {
4450 public deleteAll() {
4451 super("deleteAll");
4452 }
4453
4454 public deleteAll_args getEmptyArgsInstance() {
4455 return new deleteAll_args();
4456 }
4457
4458 protected boolean isOneway() {
4459 return false;
4460 }
4461
4462 public deleteAll_result getResult(I iface, deleteAll_args args) throws org.apache.thrift.TException {
4463 deleteAll_result result = new deleteAll_result();
4464 try {
4465 iface.deleteAll(args.tableName, args.row, args.column, args.attributes);
4466 } catch (IOError io) {
4467 result.io = io;
4468 }
4469 return result;
4470 }
4471 }
4472
4473 public static class deleteAllTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllTs_args> {
4474 public deleteAllTs() {
4475 super("deleteAllTs");
4476 }
4477
4478 public deleteAllTs_args getEmptyArgsInstance() {
4479 return new deleteAllTs_args();
4480 }
4481
4482 protected boolean isOneway() {
4483 return false;
4484 }
4485
4486 public deleteAllTs_result getResult(I iface, deleteAllTs_args args) throws org.apache.thrift.TException {
4487 deleteAllTs_result result = new deleteAllTs_result();
4488 try {
4489 iface.deleteAllTs(args.tableName, args.row, args.column, args.timestamp, args.attributes);
4490 } catch (IOError io) {
4491 result.io = io;
4492 }
4493 return result;
4494 }
4495 }
4496
4497 public static class deleteAllRow<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllRow_args> {
4498 public deleteAllRow() {
4499 super("deleteAllRow");
4500 }
4501
4502 public deleteAllRow_args getEmptyArgsInstance() {
4503 return new deleteAllRow_args();
4504 }
4505
4506 protected boolean isOneway() {
4507 return false;
4508 }
4509
4510 public deleteAllRow_result getResult(I iface, deleteAllRow_args args) throws org.apache.thrift.TException {
4511 deleteAllRow_result result = new deleteAllRow_result();
4512 try {
4513 iface.deleteAllRow(args.tableName, args.row, args.attributes);
4514 } catch (IOError io) {
4515 result.io = io;
4516 }
4517 return result;
4518 }
4519 }
4520
4521 public static class increment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, increment_args> {
4522 public increment() {
4523 super("increment");
4524 }
4525
4526 public increment_args getEmptyArgsInstance() {
4527 return new increment_args();
4528 }
4529
4530 protected boolean isOneway() {
4531 return false;
4532 }
4533
4534 public increment_result getResult(I iface, increment_args args) throws org.apache.thrift.TException {
4535 increment_result result = new increment_result();
4536 try {
4537 iface.increment(args.increment);
4538 } catch (IOError io) {
4539 result.io = io;
4540 }
4541 return result;
4542 }
4543 }
4544
4545 public static class incrementRows<I extends Iface> extends org.apache.thrift.ProcessFunction<I, incrementRows_args> {
4546 public incrementRows() {
4547 super("incrementRows");
4548 }
4549
4550 public incrementRows_args getEmptyArgsInstance() {
4551 return new incrementRows_args();
4552 }
4553
4554 protected boolean isOneway() {
4555 return false;
4556 }
4557
4558 public incrementRows_result getResult(I iface, incrementRows_args args) throws org.apache.thrift.TException {
4559 incrementRows_result result = new incrementRows_result();
4560 try {
4561 iface.incrementRows(args.increments);
4562 } catch (IOError io) {
4563 result.io = io;
4564 }
4565 return result;
4566 }
4567 }
4568
4569 public static class deleteAllRowTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteAllRowTs_args> {
4570 public deleteAllRowTs() {
4571 super("deleteAllRowTs");
4572 }
4573
4574 public deleteAllRowTs_args getEmptyArgsInstance() {
4575 return new deleteAllRowTs_args();
4576 }
4577
4578 protected boolean isOneway() {
4579 return false;
4580 }
4581
4582 public deleteAllRowTs_result getResult(I iface, deleteAllRowTs_args args) throws org.apache.thrift.TException {
4583 deleteAllRowTs_result result = new deleteAllRowTs_result();
4584 try {
4585 iface.deleteAllRowTs(args.tableName, args.row, args.timestamp, args.attributes);
4586 } catch (IOError io) {
4587 result.io = io;
4588 }
4589 return result;
4590 }
4591 }
4592
4593 public static class scannerOpenWithScan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithScan_args> {
4594 public scannerOpenWithScan() {
4595 super("scannerOpenWithScan");
4596 }
4597
4598 public scannerOpenWithScan_args getEmptyArgsInstance() {
4599 return new scannerOpenWithScan_args();
4600 }
4601
4602 protected boolean isOneway() {
4603 return false;
4604 }
4605
4606 public scannerOpenWithScan_result getResult(I iface, scannerOpenWithScan_args args) throws org.apache.thrift.TException {
4607 scannerOpenWithScan_result result = new scannerOpenWithScan_result();
4608 try {
4609 result.success = iface.scannerOpenWithScan(args.tableName, args.scan, args.attributes);
4610 result.setSuccessIsSet(true);
4611 } catch (IOError io) {
4612 result.io = io;
4613 }
4614 return result;
4615 }
4616 }
4617
4618 public static class scannerOpen<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpen_args> {
4619 public scannerOpen() {
4620 super("scannerOpen");
4621 }
4622
4623 public scannerOpen_args getEmptyArgsInstance() {
4624 return new scannerOpen_args();
4625 }
4626
4627 protected boolean isOneway() {
4628 return false;
4629 }
4630
4631 public scannerOpen_result getResult(I iface, scannerOpen_args args) throws org.apache.thrift.TException {
4632 scannerOpen_result result = new scannerOpen_result();
4633 try {
4634 result.success = iface.scannerOpen(args.tableName, args.startRow, args.columns, args.attributes);
4635 result.setSuccessIsSet(true);
4636 } catch (IOError io) {
4637 result.io = io;
4638 }
4639 return result;
4640 }
4641 }
4642
4643 public static class scannerOpenWithStop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithStop_args> {
4644 public scannerOpenWithStop() {
4645 super("scannerOpenWithStop");
4646 }
4647
4648 public scannerOpenWithStop_args getEmptyArgsInstance() {
4649 return new scannerOpenWithStop_args();
4650 }
4651
4652 protected boolean isOneway() {
4653 return false;
4654 }
4655
4656 public scannerOpenWithStop_result getResult(I iface, scannerOpenWithStop_args args) throws org.apache.thrift.TException {
4657 scannerOpenWithStop_result result = new scannerOpenWithStop_result();
4658 try {
4659 result.success = iface.scannerOpenWithStop(args.tableName, args.startRow, args.stopRow, args.columns, args.attributes);
4660 result.setSuccessIsSet(true);
4661 } catch (IOError io) {
4662 result.io = io;
4663 }
4664 return result;
4665 }
4666 }
4667
4668 public static class scannerOpenWithPrefix<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithPrefix_args> {
4669 public scannerOpenWithPrefix() {
4670 super("scannerOpenWithPrefix");
4671 }
4672
4673 public scannerOpenWithPrefix_args getEmptyArgsInstance() {
4674 return new scannerOpenWithPrefix_args();
4675 }
4676
4677 protected boolean isOneway() {
4678 return false;
4679 }
4680
4681 public scannerOpenWithPrefix_result getResult(I iface, scannerOpenWithPrefix_args args) throws org.apache.thrift.TException {
4682 scannerOpenWithPrefix_result result = new scannerOpenWithPrefix_result();
4683 try {
4684 result.success = iface.scannerOpenWithPrefix(args.tableName, args.startAndPrefix, args.columns, args.attributes);
4685 result.setSuccessIsSet(true);
4686 } catch (IOError io) {
4687 result.io = io;
4688 }
4689 return result;
4690 }
4691 }
4692
4693 public static class scannerOpenTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenTs_args> {
4694 public scannerOpenTs() {
4695 super("scannerOpenTs");
4696 }
4697
4698 public scannerOpenTs_args getEmptyArgsInstance() {
4699 return new scannerOpenTs_args();
4700 }
4701
4702 protected boolean isOneway() {
4703 return false;
4704 }
4705
4706 public scannerOpenTs_result getResult(I iface, scannerOpenTs_args args) throws org.apache.thrift.TException {
4707 scannerOpenTs_result result = new scannerOpenTs_result();
4708 try {
4709 result.success = iface.scannerOpenTs(args.tableName, args.startRow, args.columns, args.timestamp, args.attributes);
4710 result.setSuccessIsSet(true);
4711 } catch (IOError io) {
4712 result.io = io;
4713 }
4714 return result;
4715 }
4716 }
4717
4718 public static class scannerOpenWithStopTs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerOpenWithStopTs_args> {
4719 public scannerOpenWithStopTs() {
4720 super("scannerOpenWithStopTs");
4721 }
4722
4723 public scannerOpenWithStopTs_args getEmptyArgsInstance() {
4724 return new scannerOpenWithStopTs_args();
4725 }
4726
4727 protected boolean isOneway() {
4728 return false;
4729 }
4730
4731 public scannerOpenWithStopTs_result getResult(I iface, scannerOpenWithStopTs_args args) throws org.apache.thrift.TException {
4732 scannerOpenWithStopTs_result result = new scannerOpenWithStopTs_result();
4733 try {
4734 result.success = iface.scannerOpenWithStopTs(args.tableName, args.startRow, args.stopRow, args.columns, args.timestamp, args.attributes);
4735 result.setSuccessIsSet(true);
4736 } catch (IOError io) {
4737 result.io = io;
4738 }
4739 return result;
4740 }
4741 }
4742
4743 public static class scannerGet<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerGet_args> {
4744 public scannerGet() {
4745 super("scannerGet");
4746 }
4747
4748 public scannerGet_args getEmptyArgsInstance() {
4749 return new scannerGet_args();
4750 }
4751
4752 protected boolean isOneway() {
4753 return false;
4754 }
4755
4756 public scannerGet_result getResult(I iface, scannerGet_args args) throws org.apache.thrift.TException {
4757 scannerGet_result result = new scannerGet_result();
4758 try {
4759 result.success = iface.scannerGet(args.id);
4760 } catch (IOError io) {
4761 result.io = io;
4762 } catch (IllegalArgument ia) {
4763 result.ia = ia;
4764 }
4765 return result;
4766 }
4767 }
4768
4769 public static class scannerGetList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerGetList_args> {
4770 public scannerGetList() {
4771 super("scannerGetList");
4772 }
4773
4774 public scannerGetList_args getEmptyArgsInstance() {
4775 return new scannerGetList_args();
4776 }
4777
4778 protected boolean isOneway() {
4779 return false;
4780 }
4781
4782 public scannerGetList_result getResult(I iface, scannerGetList_args args) throws org.apache.thrift.TException {
4783 scannerGetList_result result = new scannerGetList_result();
4784 try {
4785 result.success = iface.scannerGetList(args.id, args.nbRows);
4786 } catch (IOError io) {
4787 result.io = io;
4788 } catch (IllegalArgument ia) {
4789 result.ia = ia;
4790 }
4791 return result;
4792 }
4793 }
4794
4795 public static class scannerClose<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scannerClose_args> {
4796 public scannerClose() {
4797 super("scannerClose");
4798 }
4799
4800 public scannerClose_args getEmptyArgsInstance() {
4801 return new scannerClose_args();
4802 }
4803
4804 protected boolean isOneway() {
4805 return false;
4806 }
4807
4808 public scannerClose_result getResult(I iface, scannerClose_args args) throws org.apache.thrift.TException {
4809 scannerClose_result result = new scannerClose_result();
4810 try {
4811 iface.scannerClose(args.id);
4812 } catch (IOError io) {
4813 result.io = io;
4814 } catch (IllegalArgument ia) {
4815 result.ia = ia;
4816 }
4817 return result;
4818 }
4819 }
4820
4821 public static class getRowOrBefore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRowOrBefore_args> {
4822 public getRowOrBefore() {
4823 super("getRowOrBefore");
4824 }
4825
4826 public getRowOrBefore_args getEmptyArgsInstance() {
4827 return new getRowOrBefore_args();
4828 }
4829
4830 protected boolean isOneway() {
4831 return false;
4832 }
4833
4834 public getRowOrBefore_result getResult(I iface, getRowOrBefore_args args) throws org.apache.thrift.TException {
4835 getRowOrBefore_result result = new getRowOrBefore_result();
4836 try {
4837 result.success = iface.getRowOrBefore(args.tableName, args.row, args.family);
4838 } catch (IOError io) {
4839 result.io = io;
4840 }
4841 return result;
4842 }
4843 }
4844
4845 public static class getRegionInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRegionInfo_args> {
4846 public getRegionInfo() {
4847 super("getRegionInfo");
4848 }
4849
4850 public getRegionInfo_args getEmptyArgsInstance() {
4851 return new getRegionInfo_args();
4852 }
4853
4854 protected boolean isOneway() {
4855 return false;
4856 }
4857
4858 public getRegionInfo_result getResult(I iface, getRegionInfo_args args) throws org.apache.thrift.TException {
4859 getRegionInfo_result result = new getRegionInfo_result();
4860 try {
4861 result.success = iface.getRegionInfo(args.row);
4862 } catch (IOError io) {
4863 result.io = io;
4864 }
4865 return result;
4866 }
4867 }
4868
4869 public static class append<I extends Iface> extends org.apache.thrift.ProcessFunction<I, append_args> {
4870 public append() {
4871 super("append");
4872 }
4873
4874 public append_args getEmptyArgsInstance() {
4875 return new append_args();
4876 }
4877
4878 protected boolean isOneway() {
4879 return false;
4880 }
4881
4882 public append_result getResult(I iface, append_args args) throws org.apache.thrift.TException {
4883 append_result result = new append_result();
4884 try {
4885 result.success = iface.append(args.append);
4886 } catch (IOError io) {
4887 result.io = io;
4888 }
4889 return result;
4890 }
4891 }
4892
4893 public static class checkAndPut<I extends Iface> extends org.apache.thrift.ProcessFunction<I, checkAndPut_args> {
4894 public checkAndPut() {
4895 super("checkAndPut");
4896 }
4897
4898 public checkAndPut_args getEmptyArgsInstance() {
4899 return new checkAndPut_args();
4900 }
4901
4902 protected boolean isOneway() {
4903 return false;
4904 }
4905
4906 public checkAndPut_result getResult(I iface, checkAndPut_args args) throws org.apache.thrift.TException {
4907 checkAndPut_result result = new checkAndPut_result();
4908 try {
4909 result.success = iface.checkAndPut(args.tableName, args.row, args.column, args.value, args.mput, args.attributes);
4910 result.setSuccessIsSet(true);
4911 } catch (IOError io) {
4912 result.io = io;
4913 } catch (IllegalArgument ia) {
4914 result.ia = ia;
4915 }
4916 return result;
4917 }
4918 }
4919
4920 }
4921
4922 public static class enableTable_args implements org.apache.thrift.TBase<enableTable_args, enableTable_args._Fields>, java.io.Serializable, Cloneable {
4923 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableTable_args");
4924
4925 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
4926
4927 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4928 static {
4929 schemes.put(StandardScheme.class, new enableTable_argsStandardSchemeFactory());
4930 schemes.put(TupleScheme.class, new enableTable_argsTupleSchemeFactory());
4931 }
4932
4933
4934
4935
4936 public ByteBuffer tableName;
4937
4938
4939 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4940
4941
4942
4943 TABLE_NAME((short)1, "tableName");
4944
4945 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4946
4947 static {
4948 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4949 byName.put(field.getFieldName(), field);
4950 }
4951 }
4952
4953
4954
4955
4956 public static _Fields findByThriftId(int fieldId) {
4957 switch(fieldId) {
4958 case 1:
4959 return TABLE_NAME;
4960 default:
4961 return null;
4962 }
4963 }
4964
4965
4966
4967
4968
4969 public static _Fields findByThriftIdOrThrow(int fieldId) {
4970 _Fields fields = findByThriftId(fieldId);
4971 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4972 return fields;
4973 }
4974
4975
4976
4977
4978 public static _Fields findByName(String name) {
4979 return byName.get(name);
4980 }
4981
4982 private final short _thriftId;
4983 private final String _fieldName;
4984
4985 _Fields(short thriftId, String fieldName) {
4986 _thriftId = thriftId;
4987 _fieldName = fieldName;
4988 }
4989
4990 public short getThriftFieldId() {
4991 return _thriftId;
4992 }
4993
4994 public String getFieldName() {
4995 return _fieldName;
4996 }
4997 }
4998
4999
5000 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5001 static {
5002 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5003 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
5004 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes")));
5005 metaDataMap = Collections.unmodifiableMap(tmpMap);
5006 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_args.class, metaDataMap);
5007 }
5008
5009 public enableTable_args() {
5010 }
5011
5012 public enableTable_args(
5013 ByteBuffer tableName)
5014 {
5015 this();
5016 this.tableName = tableName;
5017 }
5018
5019
5020
5021
5022 public enableTable_args(enableTable_args other) {
5023 if (other.isSetTableName()) {
5024 this.tableName = other.tableName;
5025 }
5026 }
5027
5028 public enableTable_args deepCopy() {
5029 return new enableTable_args(this);
5030 }
5031
5032 @Override
5033 public void clear() {
5034 this.tableName = null;
5035 }
5036
5037
5038
5039
5040 public byte[] getTableName() {
5041 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
5042 return tableName == null ? null : tableName.array();
5043 }
5044
5045 public ByteBuffer bufferForTableName() {
5046 return tableName;
5047 }
5048
5049
5050
5051
5052 public enableTable_args setTableName(byte[] tableName) {
5053 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
5054 return this;
5055 }
5056
5057 public enableTable_args setTableName(ByteBuffer tableName) {
5058 this.tableName = tableName;
5059 return this;
5060 }
5061
5062 public void unsetTableName() {
5063 this.tableName = null;
5064 }
5065
5066
5067 public boolean isSetTableName() {
5068 return this.tableName != null;
5069 }
5070
5071 public void setTableNameIsSet(boolean value) {
5072 if (!value) {
5073 this.tableName = null;
5074 }
5075 }
5076
5077 public void setFieldValue(_Fields field, Object value) {
5078 switch (field) {
5079 case TABLE_NAME:
5080 if (value == null) {
5081 unsetTableName();
5082 } else {
5083 setTableName((ByteBuffer)value);
5084 }
5085 break;
5086
5087 }
5088 }
5089
5090 public Object getFieldValue(_Fields field) {
5091 switch (field) {
5092 case TABLE_NAME:
5093 return getTableName();
5094
5095 }
5096 throw new IllegalStateException();
5097 }
5098
5099
5100 public boolean isSet(_Fields field) {
5101 if (field == null) {
5102 throw new IllegalArgumentException();
5103 }
5104
5105 switch (field) {
5106 case TABLE_NAME:
5107 return isSetTableName();
5108 }
5109 throw new IllegalStateException();
5110 }
5111
5112 @Override
5113 public boolean equals(Object that) {
5114 if (that == null)
5115 return false;
5116 if (that instanceof enableTable_args)
5117 return this.equals((enableTable_args)that);
5118 return false;
5119 }
5120
5121 public boolean equals(enableTable_args that) {
5122 if (that == null)
5123 return false;
5124
5125 boolean this_present_tableName = true && this.isSetTableName();
5126 boolean that_present_tableName = true && that.isSetTableName();
5127 if (this_present_tableName || that_present_tableName) {
5128 if (!(this_present_tableName && that_present_tableName))
5129 return false;
5130 if (!this.tableName.equals(that.tableName))
5131 return false;
5132 }
5133
5134 return true;
5135 }
5136
5137 @Override
5138 public int hashCode() {
5139 HashCodeBuilder builder = new HashCodeBuilder();
5140
5141 boolean present_tableName = true && (isSetTableName());
5142 builder.append(present_tableName);
5143 if (present_tableName)
5144 builder.append(tableName);
5145
5146 return builder.toHashCode();
5147 }
5148
5149 public int compareTo(enableTable_args other) {
5150 if (!getClass().equals(other.getClass())) {
5151 return getClass().getName().compareTo(other.getClass().getName());
5152 }
5153
5154 int lastComparison = 0;
5155 enableTable_args typedOther = (enableTable_args)other;
5156
5157 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
5158 if (lastComparison != 0) {
5159 return lastComparison;
5160 }
5161 if (isSetTableName()) {
5162 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
5163 if (lastComparison != 0) {
5164 return lastComparison;
5165 }
5166 }
5167 return 0;
5168 }
5169
5170 public _Fields fieldForId(int fieldId) {
5171 return _Fields.findByThriftId(fieldId);
5172 }
5173
5174 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5175 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5176 }
5177
5178 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5179 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5180 }
5181
5182 @Override
5183 public String toString() {
5184 StringBuilder sb = new StringBuilder("enableTable_args(");
5185 boolean first = true;
5186
5187 sb.append("tableName:");
5188 if (this.tableName == null) {
5189 sb.append("null");
5190 } else {
5191 sb.append(this.tableName);
5192 }
5193 first = false;
5194 sb.append(")");
5195 return sb.toString();
5196 }
5197
5198 public void validate() throws org.apache.thrift.TException {
5199
5200
5201 }
5202
5203 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5204 try {
5205 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5206 } catch (org.apache.thrift.TException te) {
5207 throw new java.io.IOException(te);
5208 }
5209 }
5210
5211 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5212 try {
5213 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5214 } catch (org.apache.thrift.TException te) {
5215 throw new java.io.IOException(te);
5216 }
5217 }
5218
5219 private static class enableTable_argsStandardSchemeFactory implements SchemeFactory {
5220 public enableTable_argsStandardScheme getScheme() {
5221 return new enableTable_argsStandardScheme();
5222 }
5223 }
5224
5225 private static class enableTable_argsStandardScheme extends StandardScheme<enableTable_args> {
5226
5227 public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_args struct) throws org.apache.thrift.TException {
5228 org.apache.thrift.protocol.TField schemeField;
5229 iprot.readStructBegin();
5230 while (true)
5231 {
5232 schemeField = iprot.readFieldBegin();
5233 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5234 break;
5235 }
5236 switch (schemeField.id) {
5237 case 1:
5238 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
5239 struct.tableName = iprot.readBinary();
5240 struct.setTableNameIsSet(true);
5241 } else {
5242 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5243 }
5244 break;
5245 default:
5246 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5247 }
5248 iprot.readFieldEnd();
5249 }
5250 iprot.readStructEnd();
5251
5252
5253 struct.validate();
5254 }
5255
5256 public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_args struct) throws org.apache.thrift.TException {
5257 struct.validate();
5258
5259 oprot.writeStructBegin(STRUCT_DESC);
5260 if (struct.tableName != null) {
5261 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
5262 oprot.writeBinary(struct.tableName);
5263 oprot.writeFieldEnd();
5264 }
5265 oprot.writeFieldStop();
5266 oprot.writeStructEnd();
5267 }
5268
5269 }
5270
5271 private static class enableTable_argsTupleSchemeFactory implements SchemeFactory {
5272 public enableTable_argsTupleScheme getScheme() {
5273 return new enableTable_argsTupleScheme();
5274 }
5275 }
5276
5277 private static class enableTable_argsTupleScheme extends TupleScheme<enableTable_args> {
5278
5279 @Override
5280 public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException {
5281 TTupleProtocol oprot = (TTupleProtocol) prot;
5282 BitSet optionals = new BitSet();
5283 if (struct.isSetTableName()) {
5284 optionals.set(0);
5285 }
5286 oprot.writeBitSet(optionals, 1);
5287 if (struct.isSetTableName()) {
5288 oprot.writeBinary(struct.tableName);
5289 }
5290 }
5291
5292 @Override
5293 public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_args struct) throws org.apache.thrift.TException {
5294 TTupleProtocol iprot = (TTupleProtocol) prot;
5295 BitSet incoming = iprot.readBitSet(1);
5296 if (incoming.get(0)) {
5297 struct.tableName = iprot.readBinary();
5298 struct.setTableNameIsSet(true);
5299 }
5300 }
5301 }
5302
5303 }
5304
5305 public static class enableTable_result implements org.apache.thrift.TBase<enableTable_result, enableTable_result._Fields>, java.io.Serializable, Cloneable {
5306 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableTable_result");
5307
5308 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
5309
5310 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5311 static {
5312 schemes.put(StandardScheme.class, new enableTable_resultStandardSchemeFactory());
5313 schemes.put(TupleScheme.class, new enableTable_resultTupleSchemeFactory());
5314 }
5315
5316 public IOError io;
5317
5318
5319 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5320 IO((short)1, "io");
5321
5322 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5323
5324 static {
5325 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5326 byName.put(field.getFieldName(), field);
5327 }
5328 }
5329
5330
5331
5332
5333 public static _Fields findByThriftId(int fieldId) {
5334 switch(fieldId) {
5335 case 1:
5336 return IO;
5337 default:
5338 return null;
5339 }
5340 }
5341
5342
5343
5344
5345
5346 public static _Fields findByThriftIdOrThrow(int fieldId) {
5347 _Fields fields = findByThriftId(fieldId);
5348 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5349 return fields;
5350 }
5351
5352
5353
5354
5355 public static _Fields findByName(String name) {
5356 return byName.get(name);
5357 }
5358
5359 private final short _thriftId;
5360 private final String _fieldName;
5361
5362 _Fields(short thriftId, String fieldName) {
5363 _thriftId = thriftId;
5364 _fieldName = fieldName;
5365 }
5366
5367 public short getThriftFieldId() {
5368 return _thriftId;
5369 }
5370
5371 public String getFieldName() {
5372 return _fieldName;
5373 }
5374 }
5375
5376
5377 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5378 static {
5379 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5380 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
5381 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5382 metaDataMap = Collections.unmodifiableMap(tmpMap);
5383 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableTable_result.class, metaDataMap);
5384 }
5385
5386 public enableTable_result() {
5387 }
5388
5389 public enableTable_result(
5390 IOError io)
5391 {
5392 this();
5393 this.io = io;
5394 }
5395
5396
5397
5398
5399 public enableTable_result(enableTable_result other) {
5400 if (other.isSetIo()) {
5401 this.io = new IOError(other.io);
5402 }
5403 }
5404
5405 public enableTable_result deepCopy() {
5406 return new enableTable_result(this);
5407 }
5408
5409 @Override
5410 public void clear() {
5411 this.io = null;
5412 }
5413
5414 public IOError getIo() {
5415 return this.io;
5416 }
5417
5418 public enableTable_result setIo(IOError io) {
5419 this.io = io;
5420 return this;
5421 }
5422
5423 public void unsetIo() {
5424 this.io = null;
5425 }
5426
5427
5428 public boolean isSetIo() {
5429 return this.io != null;
5430 }
5431
5432 public void setIoIsSet(boolean value) {
5433 if (!value) {
5434 this.io = null;
5435 }
5436 }
5437
5438 public void setFieldValue(_Fields field, Object value) {
5439 switch (field) {
5440 case IO:
5441 if (value == null) {
5442 unsetIo();
5443 } else {
5444 setIo((IOError)value);
5445 }
5446 break;
5447
5448 }
5449 }
5450
5451 public Object getFieldValue(_Fields field) {
5452 switch (field) {
5453 case IO:
5454 return getIo();
5455
5456 }
5457 throw new IllegalStateException();
5458 }
5459
5460
5461 public boolean isSet(_Fields field) {
5462 if (field == null) {
5463 throw new IllegalArgumentException();
5464 }
5465
5466 switch (field) {
5467 case IO:
5468 return isSetIo();
5469 }
5470 throw new IllegalStateException();
5471 }
5472
5473 @Override
5474 public boolean equals(Object that) {
5475 if (that == null)
5476 return false;
5477 if (that instanceof enableTable_result)
5478 return this.equals((enableTable_result)that);
5479 return false;
5480 }
5481
5482 public boolean equals(enableTable_result that) {
5483 if (that == null)
5484 return false;
5485
5486 boolean this_present_io = true && this.isSetIo();
5487 boolean that_present_io = true && that.isSetIo();
5488 if (this_present_io || that_present_io) {
5489 if (!(this_present_io && that_present_io))
5490 return false;
5491 if (!this.io.equals(that.io))
5492 return false;
5493 }
5494
5495 return true;
5496 }
5497
5498 @Override
5499 public int hashCode() {
5500 HashCodeBuilder builder = new HashCodeBuilder();
5501
5502 boolean present_io = true && (isSetIo());
5503 builder.append(present_io);
5504 if (present_io)
5505 builder.append(io);
5506
5507 return builder.toHashCode();
5508 }
5509
5510 public int compareTo(enableTable_result other) {
5511 if (!getClass().equals(other.getClass())) {
5512 return getClass().getName().compareTo(other.getClass().getName());
5513 }
5514
5515 int lastComparison = 0;
5516 enableTable_result typedOther = (enableTable_result)other;
5517
5518 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
5519 if (lastComparison != 0) {
5520 return lastComparison;
5521 }
5522 if (isSetIo()) {
5523 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
5524 if (lastComparison != 0) {
5525 return lastComparison;
5526 }
5527 }
5528 return 0;
5529 }
5530
5531 public _Fields fieldForId(int fieldId) {
5532 return _Fields.findByThriftId(fieldId);
5533 }
5534
5535 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5536 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5537 }
5538
5539 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5540 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5541 }
5542
5543 @Override
5544 public String toString() {
5545 StringBuilder sb = new StringBuilder("enableTable_result(");
5546 boolean first = true;
5547
5548 sb.append("io:");
5549 if (this.io == null) {
5550 sb.append("null");
5551 } else {
5552 sb.append(this.io);
5553 }
5554 first = false;
5555 sb.append(")");
5556 return sb.toString();
5557 }
5558
5559 public void validate() throws org.apache.thrift.TException {
5560
5561
5562 }
5563
5564 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5565 try {
5566 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5567 } catch (org.apache.thrift.TException te) {
5568 throw new java.io.IOException(te);
5569 }
5570 }
5571
5572 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5573 try {
5574 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5575 } catch (org.apache.thrift.TException te) {
5576 throw new java.io.IOException(te);
5577 }
5578 }
5579
5580 private static class enableTable_resultStandardSchemeFactory implements SchemeFactory {
5581 public enableTable_resultStandardScheme getScheme() {
5582 return new enableTable_resultStandardScheme();
5583 }
5584 }
5585
5586 private static class enableTable_resultStandardScheme extends StandardScheme<enableTable_result> {
5587
5588 public void read(org.apache.thrift.protocol.TProtocol iprot, enableTable_result struct) throws org.apache.thrift.TException {
5589 org.apache.thrift.protocol.TField schemeField;
5590 iprot.readStructBegin();
5591 while (true)
5592 {
5593 schemeField = iprot.readFieldBegin();
5594 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5595 break;
5596 }
5597 switch (schemeField.id) {
5598 case 1:
5599 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
5600 struct.io = new IOError();
5601 struct.io.read(iprot);
5602 struct.setIoIsSet(true);
5603 } else {
5604 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5605 }
5606 break;
5607 default:
5608 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5609 }
5610 iprot.readFieldEnd();
5611 }
5612 iprot.readStructEnd();
5613
5614
5615 struct.validate();
5616 }
5617
5618 public void write(org.apache.thrift.protocol.TProtocol oprot, enableTable_result struct) throws org.apache.thrift.TException {
5619 struct.validate();
5620
5621 oprot.writeStructBegin(STRUCT_DESC);
5622 if (struct.io != null) {
5623 oprot.writeFieldBegin(IO_FIELD_DESC);
5624 struct.io.write(oprot);
5625 oprot.writeFieldEnd();
5626 }
5627 oprot.writeFieldStop();
5628 oprot.writeStructEnd();
5629 }
5630
5631 }
5632
5633 private static class enableTable_resultTupleSchemeFactory implements SchemeFactory {
5634 public enableTable_resultTupleScheme getScheme() {
5635 return new enableTable_resultTupleScheme();
5636 }
5637 }
5638
5639 private static class enableTable_resultTupleScheme extends TupleScheme<enableTable_result> {
5640
5641 @Override
5642 public void write(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException {
5643 TTupleProtocol oprot = (TTupleProtocol) prot;
5644 BitSet optionals = new BitSet();
5645 if (struct.isSetIo()) {
5646 optionals.set(0);
5647 }
5648 oprot.writeBitSet(optionals, 1);
5649 if (struct.isSetIo()) {
5650 struct.io.write(oprot);
5651 }
5652 }
5653
5654 @Override
5655 public void read(org.apache.thrift.protocol.TProtocol prot, enableTable_result struct) throws org.apache.thrift.TException {
5656 TTupleProtocol iprot = (TTupleProtocol) prot;
5657 BitSet incoming = iprot.readBitSet(1);
5658 if (incoming.get(0)) {
5659 struct.io = new IOError();
5660 struct.io.read(iprot);
5661 struct.setIoIsSet(true);
5662 }
5663 }
5664 }
5665
5666 }
5667
5668 public static class disableTable_args implements org.apache.thrift.TBase<disableTable_args, disableTable_args._Fields>, java.io.Serializable, Cloneable {
5669 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableTable_args");
5670
5671 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
5672
5673 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5674 static {
5675 schemes.put(StandardScheme.class, new disableTable_argsStandardSchemeFactory());
5676 schemes.put(TupleScheme.class, new disableTable_argsTupleSchemeFactory());
5677 }
5678
5679
5680
5681
5682 public ByteBuffer tableName;
5683
5684
5685 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5686
5687
5688
5689 TABLE_NAME((short)1, "tableName");
5690
5691 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5692
5693 static {
5694 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5695 byName.put(field.getFieldName(), field);
5696 }
5697 }
5698
5699
5700
5701
5702 public static _Fields findByThriftId(int fieldId) {
5703 switch(fieldId) {
5704 case 1:
5705 return TABLE_NAME;
5706 default:
5707 return null;
5708 }
5709 }
5710
5711
5712
5713
5714
5715 public static _Fields findByThriftIdOrThrow(int fieldId) {
5716 _Fields fields = findByThriftId(fieldId);
5717 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5718 return fields;
5719 }
5720
5721
5722
5723
5724 public static _Fields findByName(String name) {
5725 return byName.get(name);
5726 }
5727
5728 private final short _thriftId;
5729 private final String _fieldName;
5730
5731 _Fields(short thriftId, String fieldName) {
5732 _thriftId = thriftId;
5733 _fieldName = fieldName;
5734 }
5735
5736 public short getThriftFieldId() {
5737 return _thriftId;
5738 }
5739
5740 public String getFieldName() {
5741 return _fieldName;
5742 }
5743 }
5744
5745
5746 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5747 static {
5748 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5749 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
5750 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes")));
5751 metaDataMap = Collections.unmodifiableMap(tmpMap);
5752 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_args.class, metaDataMap);
5753 }
5754
5755 public disableTable_args() {
5756 }
5757
5758 public disableTable_args(
5759 ByteBuffer tableName)
5760 {
5761 this();
5762 this.tableName = tableName;
5763 }
5764
5765
5766
5767
5768 public disableTable_args(disableTable_args other) {
5769 if (other.isSetTableName()) {
5770 this.tableName = other.tableName;
5771 }
5772 }
5773
5774 public disableTable_args deepCopy() {
5775 return new disableTable_args(this);
5776 }
5777
5778 @Override
5779 public void clear() {
5780 this.tableName = null;
5781 }
5782
5783
5784
5785
5786 public byte[] getTableName() {
5787 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
5788 return tableName == null ? null : tableName.array();
5789 }
5790
5791 public ByteBuffer bufferForTableName() {
5792 return tableName;
5793 }
5794
5795
5796
5797
5798 public disableTable_args setTableName(byte[] tableName) {
5799 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
5800 return this;
5801 }
5802
5803 public disableTable_args setTableName(ByteBuffer tableName) {
5804 this.tableName = tableName;
5805 return this;
5806 }
5807
5808 public void unsetTableName() {
5809 this.tableName = null;
5810 }
5811
5812
5813 public boolean isSetTableName() {
5814 return this.tableName != null;
5815 }
5816
5817 public void setTableNameIsSet(boolean value) {
5818 if (!value) {
5819 this.tableName = null;
5820 }
5821 }
5822
5823 public void setFieldValue(_Fields field, Object value) {
5824 switch (field) {
5825 case TABLE_NAME:
5826 if (value == null) {
5827 unsetTableName();
5828 } else {
5829 setTableName((ByteBuffer)value);
5830 }
5831 break;
5832
5833 }
5834 }
5835
5836 public Object getFieldValue(_Fields field) {
5837 switch (field) {
5838 case TABLE_NAME:
5839 return getTableName();
5840
5841 }
5842 throw new IllegalStateException();
5843 }
5844
5845
5846 public boolean isSet(_Fields field) {
5847 if (field == null) {
5848 throw new IllegalArgumentException();
5849 }
5850
5851 switch (field) {
5852 case TABLE_NAME:
5853 return isSetTableName();
5854 }
5855 throw new IllegalStateException();
5856 }
5857
5858 @Override
5859 public boolean equals(Object that) {
5860 if (that == null)
5861 return false;
5862 if (that instanceof disableTable_args)
5863 return this.equals((disableTable_args)that);
5864 return false;
5865 }
5866
5867 public boolean equals(disableTable_args that) {
5868 if (that == null)
5869 return false;
5870
5871 boolean this_present_tableName = true && this.isSetTableName();
5872 boolean that_present_tableName = true && that.isSetTableName();
5873 if (this_present_tableName || that_present_tableName) {
5874 if (!(this_present_tableName && that_present_tableName))
5875 return false;
5876 if (!this.tableName.equals(that.tableName))
5877 return false;
5878 }
5879
5880 return true;
5881 }
5882
5883 @Override
5884 public int hashCode() {
5885 HashCodeBuilder builder = new HashCodeBuilder();
5886
5887 boolean present_tableName = true && (isSetTableName());
5888 builder.append(present_tableName);
5889 if (present_tableName)
5890 builder.append(tableName);
5891
5892 return builder.toHashCode();
5893 }
5894
5895 public int compareTo(disableTable_args other) {
5896 if (!getClass().equals(other.getClass())) {
5897 return getClass().getName().compareTo(other.getClass().getName());
5898 }
5899
5900 int lastComparison = 0;
5901 disableTable_args typedOther = (disableTable_args)other;
5902
5903 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
5904 if (lastComparison != 0) {
5905 return lastComparison;
5906 }
5907 if (isSetTableName()) {
5908 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
5909 if (lastComparison != 0) {
5910 return lastComparison;
5911 }
5912 }
5913 return 0;
5914 }
5915
5916 public _Fields fieldForId(int fieldId) {
5917 return _Fields.findByThriftId(fieldId);
5918 }
5919
5920 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5921 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5922 }
5923
5924 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5925 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5926 }
5927
5928 @Override
5929 public String toString() {
5930 StringBuilder sb = new StringBuilder("disableTable_args(");
5931 boolean first = true;
5932
5933 sb.append("tableName:");
5934 if (this.tableName == null) {
5935 sb.append("null");
5936 } else {
5937 sb.append(this.tableName);
5938 }
5939 first = false;
5940 sb.append(")");
5941 return sb.toString();
5942 }
5943
5944 public void validate() throws org.apache.thrift.TException {
5945
5946
5947 }
5948
5949 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5950 try {
5951 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5952 } catch (org.apache.thrift.TException te) {
5953 throw new java.io.IOException(te);
5954 }
5955 }
5956
5957 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5958 try {
5959 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5960 } catch (org.apache.thrift.TException te) {
5961 throw new java.io.IOException(te);
5962 }
5963 }
5964
5965 private static class disableTable_argsStandardSchemeFactory implements SchemeFactory {
5966 public disableTable_argsStandardScheme getScheme() {
5967 return new disableTable_argsStandardScheme();
5968 }
5969 }
5970
5971 private static class disableTable_argsStandardScheme extends StandardScheme<disableTable_args> {
5972
5973 public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_args struct) throws org.apache.thrift.TException {
5974 org.apache.thrift.protocol.TField schemeField;
5975 iprot.readStructBegin();
5976 while (true)
5977 {
5978 schemeField = iprot.readFieldBegin();
5979 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5980 break;
5981 }
5982 switch (schemeField.id) {
5983 case 1:
5984 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
5985 struct.tableName = iprot.readBinary();
5986 struct.setTableNameIsSet(true);
5987 } else {
5988 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5989 }
5990 break;
5991 default:
5992 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5993 }
5994 iprot.readFieldEnd();
5995 }
5996 iprot.readStructEnd();
5997
5998
5999 struct.validate();
6000 }
6001
6002 public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_args struct) throws org.apache.thrift.TException {
6003 struct.validate();
6004
6005 oprot.writeStructBegin(STRUCT_DESC);
6006 if (struct.tableName != null) {
6007 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
6008 oprot.writeBinary(struct.tableName);
6009 oprot.writeFieldEnd();
6010 }
6011 oprot.writeFieldStop();
6012 oprot.writeStructEnd();
6013 }
6014
6015 }
6016
6017 private static class disableTable_argsTupleSchemeFactory implements SchemeFactory {
6018 public disableTable_argsTupleScheme getScheme() {
6019 return new disableTable_argsTupleScheme();
6020 }
6021 }
6022
6023 private static class disableTable_argsTupleScheme extends TupleScheme<disableTable_args> {
6024
6025 @Override
6026 public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException {
6027 TTupleProtocol oprot = (TTupleProtocol) prot;
6028 BitSet optionals = new BitSet();
6029 if (struct.isSetTableName()) {
6030 optionals.set(0);
6031 }
6032 oprot.writeBitSet(optionals, 1);
6033 if (struct.isSetTableName()) {
6034 oprot.writeBinary(struct.tableName);
6035 }
6036 }
6037
6038 @Override
6039 public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_args struct) throws org.apache.thrift.TException {
6040 TTupleProtocol iprot = (TTupleProtocol) prot;
6041 BitSet incoming = iprot.readBitSet(1);
6042 if (incoming.get(0)) {
6043 struct.tableName = iprot.readBinary();
6044 struct.setTableNameIsSet(true);
6045 }
6046 }
6047 }
6048
6049 }
6050
6051 public static class disableTable_result implements org.apache.thrift.TBase<disableTable_result, disableTable_result._Fields>, java.io.Serializable, Cloneable {
6052 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableTable_result");
6053
6054 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6055
6056 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6057 static {
6058 schemes.put(StandardScheme.class, new disableTable_resultStandardSchemeFactory());
6059 schemes.put(TupleScheme.class, new disableTable_resultTupleSchemeFactory());
6060 }
6061
6062 public IOError io;
6063
6064
6065 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6066 IO((short)1, "io");
6067
6068 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6069
6070 static {
6071 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6072 byName.put(field.getFieldName(), field);
6073 }
6074 }
6075
6076
6077
6078
6079 public static _Fields findByThriftId(int fieldId) {
6080 switch(fieldId) {
6081 case 1:
6082 return IO;
6083 default:
6084 return null;
6085 }
6086 }
6087
6088
6089
6090
6091
6092 public static _Fields findByThriftIdOrThrow(int fieldId) {
6093 _Fields fields = findByThriftId(fieldId);
6094 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6095 return fields;
6096 }
6097
6098
6099
6100
6101 public static _Fields findByName(String name) {
6102 return byName.get(name);
6103 }
6104
6105 private final short _thriftId;
6106 private final String _fieldName;
6107
6108 _Fields(short thriftId, String fieldName) {
6109 _thriftId = thriftId;
6110 _fieldName = fieldName;
6111 }
6112
6113 public short getThriftFieldId() {
6114 return _thriftId;
6115 }
6116
6117 public String getFieldName() {
6118 return _fieldName;
6119 }
6120 }
6121
6122
6123 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6124 static {
6125 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6126 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
6127 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6128 metaDataMap = Collections.unmodifiableMap(tmpMap);
6129 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableTable_result.class, metaDataMap);
6130 }
6131
6132 public disableTable_result() {
6133 }
6134
6135 public disableTable_result(
6136 IOError io)
6137 {
6138 this();
6139 this.io = io;
6140 }
6141
6142
6143
6144
6145 public disableTable_result(disableTable_result other) {
6146 if (other.isSetIo()) {
6147 this.io = new IOError(other.io);
6148 }
6149 }
6150
6151 public disableTable_result deepCopy() {
6152 return new disableTable_result(this);
6153 }
6154
6155 @Override
6156 public void clear() {
6157 this.io = null;
6158 }
6159
6160 public IOError getIo() {
6161 return this.io;
6162 }
6163
6164 public disableTable_result setIo(IOError io) {
6165 this.io = io;
6166 return this;
6167 }
6168
6169 public void unsetIo() {
6170 this.io = null;
6171 }
6172
6173
6174 public boolean isSetIo() {
6175 return this.io != null;
6176 }
6177
6178 public void setIoIsSet(boolean value) {
6179 if (!value) {
6180 this.io = null;
6181 }
6182 }
6183
6184 public void setFieldValue(_Fields field, Object value) {
6185 switch (field) {
6186 case IO:
6187 if (value == null) {
6188 unsetIo();
6189 } else {
6190 setIo((IOError)value);
6191 }
6192 break;
6193
6194 }
6195 }
6196
6197 public Object getFieldValue(_Fields field) {
6198 switch (field) {
6199 case IO:
6200 return getIo();
6201
6202 }
6203 throw new IllegalStateException();
6204 }
6205
6206
6207 public boolean isSet(_Fields field) {
6208 if (field == null) {
6209 throw new IllegalArgumentException();
6210 }
6211
6212 switch (field) {
6213 case IO:
6214 return isSetIo();
6215 }
6216 throw new IllegalStateException();
6217 }
6218
6219 @Override
6220 public boolean equals(Object that) {
6221 if (that == null)
6222 return false;
6223 if (that instanceof disableTable_result)
6224 return this.equals((disableTable_result)that);
6225 return false;
6226 }
6227
6228 public boolean equals(disableTable_result that) {
6229 if (that == null)
6230 return false;
6231
6232 boolean this_present_io = true && this.isSetIo();
6233 boolean that_present_io = true && that.isSetIo();
6234 if (this_present_io || that_present_io) {
6235 if (!(this_present_io && that_present_io))
6236 return false;
6237 if (!this.io.equals(that.io))
6238 return false;
6239 }
6240
6241 return true;
6242 }
6243
6244 @Override
6245 public int hashCode() {
6246 HashCodeBuilder builder = new HashCodeBuilder();
6247
6248 boolean present_io = true && (isSetIo());
6249 builder.append(present_io);
6250 if (present_io)
6251 builder.append(io);
6252
6253 return builder.toHashCode();
6254 }
6255
6256 public int compareTo(disableTable_result other) {
6257 if (!getClass().equals(other.getClass())) {
6258 return getClass().getName().compareTo(other.getClass().getName());
6259 }
6260
6261 int lastComparison = 0;
6262 disableTable_result typedOther = (disableTable_result)other;
6263
6264 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
6265 if (lastComparison != 0) {
6266 return lastComparison;
6267 }
6268 if (isSetIo()) {
6269 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
6270 if (lastComparison != 0) {
6271 return lastComparison;
6272 }
6273 }
6274 return 0;
6275 }
6276
6277 public _Fields fieldForId(int fieldId) {
6278 return _Fields.findByThriftId(fieldId);
6279 }
6280
6281 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6282 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6283 }
6284
6285 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6286 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6287 }
6288
6289 @Override
6290 public String toString() {
6291 StringBuilder sb = new StringBuilder("disableTable_result(");
6292 boolean first = true;
6293
6294 sb.append("io:");
6295 if (this.io == null) {
6296 sb.append("null");
6297 } else {
6298 sb.append(this.io);
6299 }
6300 first = false;
6301 sb.append(")");
6302 return sb.toString();
6303 }
6304
6305 public void validate() throws org.apache.thrift.TException {
6306
6307
6308 }
6309
6310 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6311 try {
6312 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6313 } catch (org.apache.thrift.TException te) {
6314 throw new java.io.IOException(te);
6315 }
6316 }
6317
6318 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6319 try {
6320 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6321 } catch (org.apache.thrift.TException te) {
6322 throw new java.io.IOException(te);
6323 }
6324 }
6325
6326 private static class disableTable_resultStandardSchemeFactory implements SchemeFactory {
6327 public disableTable_resultStandardScheme getScheme() {
6328 return new disableTable_resultStandardScheme();
6329 }
6330 }
6331
6332 private static class disableTable_resultStandardScheme extends StandardScheme<disableTable_result> {
6333
6334 public void read(org.apache.thrift.protocol.TProtocol iprot, disableTable_result struct) throws org.apache.thrift.TException {
6335 org.apache.thrift.protocol.TField schemeField;
6336 iprot.readStructBegin();
6337 while (true)
6338 {
6339 schemeField = iprot.readFieldBegin();
6340 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6341 break;
6342 }
6343 switch (schemeField.id) {
6344 case 1:
6345 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
6346 struct.io = new IOError();
6347 struct.io.read(iprot);
6348 struct.setIoIsSet(true);
6349 } else {
6350 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6351 }
6352 break;
6353 default:
6354 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6355 }
6356 iprot.readFieldEnd();
6357 }
6358 iprot.readStructEnd();
6359
6360
6361 struct.validate();
6362 }
6363
6364 public void write(org.apache.thrift.protocol.TProtocol oprot, disableTable_result struct) throws org.apache.thrift.TException {
6365 struct.validate();
6366
6367 oprot.writeStructBegin(STRUCT_DESC);
6368 if (struct.io != null) {
6369 oprot.writeFieldBegin(IO_FIELD_DESC);
6370 struct.io.write(oprot);
6371 oprot.writeFieldEnd();
6372 }
6373 oprot.writeFieldStop();
6374 oprot.writeStructEnd();
6375 }
6376
6377 }
6378
6379 private static class disableTable_resultTupleSchemeFactory implements SchemeFactory {
6380 public disableTable_resultTupleScheme getScheme() {
6381 return new disableTable_resultTupleScheme();
6382 }
6383 }
6384
6385 private static class disableTable_resultTupleScheme extends TupleScheme<disableTable_result> {
6386
6387 @Override
6388 public void write(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException {
6389 TTupleProtocol oprot = (TTupleProtocol) prot;
6390 BitSet optionals = new BitSet();
6391 if (struct.isSetIo()) {
6392 optionals.set(0);
6393 }
6394 oprot.writeBitSet(optionals, 1);
6395 if (struct.isSetIo()) {
6396 struct.io.write(oprot);
6397 }
6398 }
6399
6400 @Override
6401 public void read(org.apache.thrift.protocol.TProtocol prot, disableTable_result struct) throws org.apache.thrift.TException {
6402 TTupleProtocol iprot = (TTupleProtocol) prot;
6403 BitSet incoming = iprot.readBitSet(1);
6404 if (incoming.get(0)) {
6405 struct.io = new IOError();
6406 struct.io.read(iprot);
6407 struct.setIoIsSet(true);
6408 }
6409 }
6410 }
6411
6412 }
6413
6414 public static class isTableEnabled_args implements org.apache.thrift.TBase<isTableEnabled_args, isTableEnabled_args._Fields>, java.io.Serializable, Cloneable {
6415 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableEnabled_args");
6416
6417 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
6418
6419 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6420 static {
6421 schemes.put(StandardScheme.class, new isTableEnabled_argsStandardSchemeFactory());
6422 schemes.put(TupleScheme.class, new isTableEnabled_argsTupleSchemeFactory());
6423 }
6424
6425
6426
6427
6428 public ByteBuffer tableName;
6429
6430
6431 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6432
6433
6434
6435 TABLE_NAME((short)1, "tableName");
6436
6437 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6438
6439 static {
6440 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6441 byName.put(field.getFieldName(), field);
6442 }
6443 }
6444
6445
6446
6447
6448 public static _Fields findByThriftId(int fieldId) {
6449 switch(fieldId) {
6450 case 1:
6451 return TABLE_NAME;
6452 default:
6453 return null;
6454 }
6455 }
6456
6457
6458
6459
6460
6461 public static _Fields findByThriftIdOrThrow(int fieldId) {
6462 _Fields fields = findByThriftId(fieldId);
6463 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6464 return fields;
6465 }
6466
6467
6468
6469
6470 public static _Fields findByName(String name) {
6471 return byName.get(name);
6472 }
6473
6474 private final short _thriftId;
6475 private final String _fieldName;
6476
6477 _Fields(short thriftId, String fieldName) {
6478 _thriftId = thriftId;
6479 _fieldName = fieldName;
6480 }
6481
6482 public short getThriftFieldId() {
6483 return _thriftId;
6484 }
6485
6486 public String getFieldName() {
6487 return _fieldName;
6488 }
6489 }
6490
6491
6492 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6493 static {
6494 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6495 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
6496 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes")));
6497 metaDataMap = Collections.unmodifiableMap(tmpMap);
6498 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_args.class, metaDataMap);
6499 }
6500
6501 public isTableEnabled_args() {
6502 }
6503
6504 public isTableEnabled_args(
6505 ByteBuffer tableName)
6506 {
6507 this();
6508 this.tableName = tableName;
6509 }
6510
6511
6512
6513
6514 public isTableEnabled_args(isTableEnabled_args other) {
6515 if (other.isSetTableName()) {
6516 this.tableName = other.tableName;
6517 }
6518 }
6519
6520 public isTableEnabled_args deepCopy() {
6521 return new isTableEnabled_args(this);
6522 }
6523
6524 @Override
6525 public void clear() {
6526 this.tableName = null;
6527 }
6528
6529
6530
6531
6532 public byte[] getTableName() {
6533 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
6534 return tableName == null ? null : tableName.array();
6535 }
6536
6537 public ByteBuffer bufferForTableName() {
6538 return tableName;
6539 }
6540
6541
6542
6543
6544 public isTableEnabled_args setTableName(byte[] tableName) {
6545 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
6546 return this;
6547 }
6548
6549 public isTableEnabled_args setTableName(ByteBuffer tableName) {
6550 this.tableName = tableName;
6551 return this;
6552 }
6553
6554 public void unsetTableName() {
6555 this.tableName = null;
6556 }
6557
6558
6559 public boolean isSetTableName() {
6560 return this.tableName != null;
6561 }
6562
6563 public void setTableNameIsSet(boolean value) {
6564 if (!value) {
6565 this.tableName = null;
6566 }
6567 }
6568
6569 public void setFieldValue(_Fields field, Object value) {
6570 switch (field) {
6571 case TABLE_NAME:
6572 if (value == null) {
6573 unsetTableName();
6574 } else {
6575 setTableName((ByteBuffer)value);
6576 }
6577 break;
6578
6579 }
6580 }
6581
6582 public Object getFieldValue(_Fields field) {
6583 switch (field) {
6584 case TABLE_NAME:
6585 return getTableName();
6586
6587 }
6588 throw new IllegalStateException();
6589 }
6590
6591
6592 public boolean isSet(_Fields field) {
6593 if (field == null) {
6594 throw new IllegalArgumentException();
6595 }
6596
6597 switch (field) {
6598 case TABLE_NAME:
6599 return isSetTableName();
6600 }
6601 throw new IllegalStateException();
6602 }
6603
6604 @Override
6605 public boolean equals(Object that) {
6606 if (that == null)
6607 return false;
6608 if (that instanceof isTableEnabled_args)
6609 return this.equals((isTableEnabled_args)that);
6610 return false;
6611 }
6612
6613 public boolean equals(isTableEnabled_args that) {
6614 if (that == null)
6615 return false;
6616
6617 boolean this_present_tableName = true && this.isSetTableName();
6618 boolean that_present_tableName = true && that.isSetTableName();
6619 if (this_present_tableName || that_present_tableName) {
6620 if (!(this_present_tableName && that_present_tableName))
6621 return false;
6622 if (!this.tableName.equals(that.tableName))
6623 return false;
6624 }
6625
6626 return true;
6627 }
6628
6629 @Override
6630 public int hashCode() {
6631 HashCodeBuilder builder = new HashCodeBuilder();
6632
6633 boolean present_tableName = true && (isSetTableName());
6634 builder.append(present_tableName);
6635 if (present_tableName)
6636 builder.append(tableName);
6637
6638 return builder.toHashCode();
6639 }
6640
6641 public int compareTo(isTableEnabled_args other) {
6642 if (!getClass().equals(other.getClass())) {
6643 return getClass().getName().compareTo(other.getClass().getName());
6644 }
6645
6646 int lastComparison = 0;
6647 isTableEnabled_args typedOther = (isTableEnabled_args)other;
6648
6649 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
6650 if (lastComparison != 0) {
6651 return lastComparison;
6652 }
6653 if (isSetTableName()) {
6654 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
6655 if (lastComparison != 0) {
6656 return lastComparison;
6657 }
6658 }
6659 return 0;
6660 }
6661
6662 public _Fields fieldForId(int fieldId) {
6663 return _Fields.findByThriftId(fieldId);
6664 }
6665
6666 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6667 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6668 }
6669
6670 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6671 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6672 }
6673
6674 @Override
6675 public String toString() {
6676 StringBuilder sb = new StringBuilder("isTableEnabled_args(");
6677 boolean first = true;
6678
6679 sb.append("tableName:");
6680 if (this.tableName == null) {
6681 sb.append("null");
6682 } else {
6683 sb.append(this.tableName);
6684 }
6685 first = false;
6686 sb.append(")");
6687 return sb.toString();
6688 }
6689
6690 public void validate() throws org.apache.thrift.TException {
6691
6692
6693 }
6694
6695 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6696 try {
6697 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6698 } catch (org.apache.thrift.TException te) {
6699 throw new java.io.IOException(te);
6700 }
6701 }
6702
6703 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6704 try {
6705 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6706 } catch (org.apache.thrift.TException te) {
6707 throw new java.io.IOException(te);
6708 }
6709 }
6710
6711 private static class isTableEnabled_argsStandardSchemeFactory implements SchemeFactory {
6712 public isTableEnabled_argsStandardScheme getScheme() {
6713 return new isTableEnabled_argsStandardScheme();
6714 }
6715 }
6716
6717 private static class isTableEnabled_argsStandardScheme extends StandardScheme<isTableEnabled_args> {
6718
6719 public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_args struct) throws org.apache.thrift.TException {
6720 org.apache.thrift.protocol.TField schemeField;
6721 iprot.readStructBegin();
6722 while (true)
6723 {
6724 schemeField = iprot.readFieldBegin();
6725 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6726 break;
6727 }
6728 switch (schemeField.id) {
6729 case 1:
6730 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6731 struct.tableName = iprot.readBinary();
6732 struct.setTableNameIsSet(true);
6733 } else {
6734 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6735 }
6736 break;
6737 default:
6738 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6739 }
6740 iprot.readFieldEnd();
6741 }
6742 iprot.readStructEnd();
6743
6744
6745 struct.validate();
6746 }
6747
6748 public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_args struct) throws org.apache.thrift.TException {
6749 struct.validate();
6750
6751 oprot.writeStructBegin(STRUCT_DESC);
6752 if (struct.tableName != null) {
6753 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
6754 oprot.writeBinary(struct.tableName);
6755 oprot.writeFieldEnd();
6756 }
6757 oprot.writeFieldStop();
6758 oprot.writeStructEnd();
6759 }
6760
6761 }
6762
6763 private static class isTableEnabled_argsTupleSchemeFactory implements SchemeFactory {
6764 public isTableEnabled_argsTupleScheme getScheme() {
6765 return new isTableEnabled_argsTupleScheme();
6766 }
6767 }
6768
6769 private static class isTableEnabled_argsTupleScheme extends TupleScheme<isTableEnabled_args> {
6770
6771 @Override
6772 public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException {
6773 TTupleProtocol oprot = (TTupleProtocol) prot;
6774 BitSet optionals = new BitSet();
6775 if (struct.isSetTableName()) {
6776 optionals.set(0);
6777 }
6778 oprot.writeBitSet(optionals, 1);
6779 if (struct.isSetTableName()) {
6780 oprot.writeBinary(struct.tableName);
6781 }
6782 }
6783
6784 @Override
6785 public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_args struct) throws org.apache.thrift.TException {
6786 TTupleProtocol iprot = (TTupleProtocol) prot;
6787 BitSet incoming = iprot.readBitSet(1);
6788 if (incoming.get(0)) {
6789 struct.tableName = iprot.readBinary();
6790 struct.setTableNameIsSet(true);
6791 }
6792 }
6793 }
6794
6795 }
6796
6797 public static class isTableEnabled_result implements org.apache.thrift.TBase<isTableEnabled_result, isTableEnabled_result._Fields>, java.io.Serializable, Cloneable {
6798 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isTableEnabled_result");
6799
6800 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
6801 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6802
6803 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6804 static {
6805 schemes.put(StandardScheme.class, new isTableEnabled_resultStandardSchemeFactory());
6806 schemes.put(TupleScheme.class, new isTableEnabled_resultTupleSchemeFactory());
6807 }
6808
6809 public boolean success;
6810 public IOError io;
6811
6812
6813 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6814 SUCCESS((short)0, "success"),
6815 IO((short)1, "io");
6816
6817 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6818
6819 static {
6820 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6821 byName.put(field.getFieldName(), field);
6822 }
6823 }
6824
6825
6826
6827
6828 public static _Fields findByThriftId(int fieldId) {
6829 switch(fieldId) {
6830 case 0:
6831 return SUCCESS;
6832 case 1:
6833 return IO;
6834 default:
6835 return null;
6836 }
6837 }
6838
6839
6840
6841
6842
6843 public static _Fields findByThriftIdOrThrow(int fieldId) {
6844 _Fields fields = findByThriftId(fieldId);
6845 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6846 return fields;
6847 }
6848
6849
6850
6851
6852 public static _Fields findByName(String name) {
6853 return byName.get(name);
6854 }
6855
6856 private final short _thriftId;
6857 private final String _fieldName;
6858
6859 _Fields(short thriftId, String fieldName) {
6860 _thriftId = thriftId;
6861 _fieldName = fieldName;
6862 }
6863
6864 public short getThriftFieldId() {
6865 return _thriftId;
6866 }
6867
6868 public String getFieldName() {
6869 return _fieldName;
6870 }
6871 }
6872
6873
6874 private static final int __SUCCESS_ISSET_ID = 0;
6875 private byte __isset_bitfield = 0;
6876 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6877 static {
6878 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6879 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6880 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6881 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
6882 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6883 metaDataMap = Collections.unmodifiableMap(tmpMap);
6884 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isTableEnabled_result.class, metaDataMap);
6885 }
6886
6887 public isTableEnabled_result() {
6888 }
6889
6890 public isTableEnabled_result(
6891 boolean success,
6892 IOError io)
6893 {
6894 this();
6895 this.success = success;
6896 setSuccessIsSet(true);
6897 this.io = io;
6898 }
6899
6900
6901
6902
6903 public isTableEnabled_result(isTableEnabled_result other) {
6904 __isset_bitfield = other.__isset_bitfield;
6905 this.success = other.success;
6906 if (other.isSetIo()) {
6907 this.io = new IOError(other.io);
6908 }
6909 }
6910
6911 public isTableEnabled_result deepCopy() {
6912 return new isTableEnabled_result(this);
6913 }
6914
6915 @Override
6916 public void clear() {
6917 setSuccessIsSet(false);
6918 this.success = false;
6919 this.io = null;
6920 }
6921
6922 public boolean isSuccess() {
6923 return this.success;
6924 }
6925
6926 public isTableEnabled_result setSuccess(boolean success) {
6927 this.success = success;
6928 setSuccessIsSet(true);
6929 return this;
6930 }
6931
6932 public void unsetSuccess() {
6933 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6934 }
6935
6936
6937 public boolean isSetSuccess() {
6938 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6939 }
6940
6941 public void setSuccessIsSet(boolean value) {
6942 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6943 }
6944
6945 public IOError getIo() {
6946 return this.io;
6947 }
6948
6949 public isTableEnabled_result setIo(IOError io) {
6950 this.io = io;
6951 return this;
6952 }
6953
6954 public void unsetIo() {
6955 this.io = null;
6956 }
6957
6958
6959 public boolean isSetIo() {
6960 return this.io != null;
6961 }
6962
6963 public void setIoIsSet(boolean value) {
6964 if (!value) {
6965 this.io = null;
6966 }
6967 }
6968
6969 public void setFieldValue(_Fields field, Object value) {
6970 switch (field) {
6971 case SUCCESS:
6972 if (value == null) {
6973 unsetSuccess();
6974 } else {
6975 setSuccess((Boolean)value);
6976 }
6977 break;
6978
6979 case IO:
6980 if (value == null) {
6981 unsetIo();
6982 } else {
6983 setIo((IOError)value);
6984 }
6985 break;
6986
6987 }
6988 }
6989
6990 public Object getFieldValue(_Fields field) {
6991 switch (field) {
6992 case SUCCESS:
6993 return Boolean.valueOf(isSuccess());
6994
6995 case IO:
6996 return getIo();
6997
6998 }
6999 throw new IllegalStateException();
7000 }
7001
7002
7003 public boolean isSet(_Fields field) {
7004 if (field == null) {
7005 throw new IllegalArgumentException();
7006 }
7007
7008 switch (field) {
7009 case SUCCESS:
7010 return isSetSuccess();
7011 case IO:
7012 return isSetIo();
7013 }
7014 throw new IllegalStateException();
7015 }
7016
7017 @Override
7018 public boolean equals(Object that) {
7019 if (that == null)
7020 return false;
7021 if (that instanceof isTableEnabled_result)
7022 return this.equals((isTableEnabled_result)that);
7023 return false;
7024 }
7025
7026 public boolean equals(isTableEnabled_result that) {
7027 if (that == null)
7028 return false;
7029
7030 boolean this_present_success = true;
7031 boolean that_present_success = true;
7032 if (this_present_success || that_present_success) {
7033 if (!(this_present_success && that_present_success))
7034 return false;
7035 if (this.success != that.success)
7036 return false;
7037 }
7038
7039 boolean this_present_io = true && this.isSetIo();
7040 boolean that_present_io = true && that.isSetIo();
7041 if (this_present_io || that_present_io) {
7042 if (!(this_present_io && that_present_io))
7043 return false;
7044 if (!this.io.equals(that.io))
7045 return false;
7046 }
7047
7048 return true;
7049 }
7050
7051 @Override
7052 public int hashCode() {
7053 HashCodeBuilder builder = new HashCodeBuilder();
7054
7055 boolean present_success = true;
7056 builder.append(present_success);
7057 if (present_success)
7058 builder.append(success);
7059
7060 boolean present_io = true && (isSetIo());
7061 builder.append(present_io);
7062 if (present_io)
7063 builder.append(io);
7064
7065 return builder.toHashCode();
7066 }
7067
7068 public int compareTo(isTableEnabled_result other) {
7069 if (!getClass().equals(other.getClass())) {
7070 return getClass().getName().compareTo(other.getClass().getName());
7071 }
7072
7073 int lastComparison = 0;
7074 isTableEnabled_result typedOther = (isTableEnabled_result)other;
7075
7076 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7077 if (lastComparison != 0) {
7078 return lastComparison;
7079 }
7080 if (isSetSuccess()) {
7081 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7082 if (lastComparison != 0) {
7083 return lastComparison;
7084 }
7085 }
7086 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
7087 if (lastComparison != 0) {
7088 return lastComparison;
7089 }
7090 if (isSetIo()) {
7091 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
7092 if (lastComparison != 0) {
7093 return lastComparison;
7094 }
7095 }
7096 return 0;
7097 }
7098
7099 public _Fields fieldForId(int fieldId) {
7100 return _Fields.findByThriftId(fieldId);
7101 }
7102
7103 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7104 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7105 }
7106
7107 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7108 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7109 }
7110
7111 @Override
7112 public String toString() {
7113 StringBuilder sb = new StringBuilder("isTableEnabled_result(");
7114 boolean first = true;
7115
7116 sb.append("success:");
7117 sb.append(this.success);
7118 first = false;
7119 if (!first) sb.append(", ");
7120 sb.append("io:");
7121 if (this.io == null) {
7122 sb.append("null");
7123 } else {
7124 sb.append(this.io);
7125 }
7126 first = false;
7127 sb.append(")");
7128 return sb.toString();
7129 }
7130
7131 public void validate() throws org.apache.thrift.TException {
7132
7133
7134 }
7135
7136 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7137 try {
7138 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7139 } catch (org.apache.thrift.TException te) {
7140 throw new java.io.IOException(te);
7141 }
7142 }
7143
7144 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7145 try {
7146
7147 __isset_bitfield = 0;
7148 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7149 } catch (org.apache.thrift.TException te) {
7150 throw new java.io.IOException(te);
7151 }
7152 }
7153
7154 private static class isTableEnabled_resultStandardSchemeFactory implements SchemeFactory {
7155 public isTableEnabled_resultStandardScheme getScheme() {
7156 return new isTableEnabled_resultStandardScheme();
7157 }
7158 }
7159
7160 private static class isTableEnabled_resultStandardScheme extends StandardScheme<isTableEnabled_result> {
7161
7162 public void read(org.apache.thrift.protocol.TProtocol iprot, isTableEnabled_result struct) throws org.apache.thrift.TException {
7163 org.apache.thrift.protocol.TField schemeField;
7164 iprot.readStructBegin();
7165 while (true)
7166 {
7167 schemeField = iprot.readFieldBegin();
7168 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7169 break;
7170 }
7171 switch (schemeField.id) {
7172 case 0:
7173 if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
7174 struct.success = iprot.readBool();
7175 struct.setSuccessIsSet(true);
7176 } else {
7177 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7178 }
7179 break;
7180 case 1:
7181 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7182 struct.io = new IOError();
7183 struct.io.read(iprot);
7184 struct.setIoIsSet(true);
7185 } else {
7186 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7187 }
7188 break;
7189 default:
7190 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7191 }
7192 iprot.readFieldEnd();
7193 }
7194 iprot.readStructEnd();
7195
7196
7197 struct.validate();
7198 }
7199
7200 public void write(org.apache.thrift.protocol.TProtocol oprot, isTableEnabled_result struct) throws org.apache.thrift.TException {
7201 struct.validate();
7202
7203 oprot.writeStructBegin(STRUCT_DESC);
7204 if (struct.isSetSuccess()) {
7205 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7206 oprot.writeBool(struct.success);
7207 oprot.writeFieldEnd();
7208 }
7209 if (struct.io != null) {
7210 oprot.writeFieldBegin(IO_FIELD_DESC);
7211 struct.io.write(oprot);
7212 oprot.writeFieldEnd();
7213 }
7214 oprot.writeFieldStop();
7215 oprot.writeStructEnd();
7216 }
7217
7218 }
7219
7220 private static class isTableEnabled_resultTupleSchemeFactory implements SchemeFactory {
7221 public isTableEnabled_resultTupleScheme getScheme() {
7222 return new isTableEnabled_resultTupleScheme();
7223 }
7224 }
7225
7226 private static class isTableEnabled_resultTupleScheme extends TupleScheme<isTableEnabled_result> {
7227
7228 @Override
7229 public void write(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException {
7230 TTupleProtocol oprot = (TTupleProtocol) prot;
7231 BitSet optionals = new BitSet();
7232 if (struct.isSetSuccess()) {
7233 optionals.set(0);
7234 }
7235 if (struct.isSetIo()) {
7236 optionals.set(1);
7237 }
7238 oprot.writeBitSet(optionals, 2);
7239 if (struct.isSetSuccess()) {
7240 oprot.writeBool(struct.success);
7241 }
7242 if (struct.isSetIo()) {
7243 struct.io.write(oprot);
7244 }
7245 }
7246
7247 @Override
7248 public void read(org.apache.thrift.protocol.TProtocol prot, isTableEnabled_result struct) throws org.apache.thrift.TException {
7249 TTupleProtocol iprot = (TTupleProtocol) prot;
7250 BitSet incoming = iprot.readBitSet(2);
7251 if (incoming.get(0)) {
7252 struct.success = iprot.readBool();
7253 struct.setSuccessIsSet(true);
7254 }
7255 if (incoming.get(1)) {
7256 struct.io = new IOError();
7257 struct.io.read(iprot);
7258 struct.setIoIsSet(true);
7259 }
7260 }
7261 }
7262
7263 }
7264
7265 public static class compact_args implements org.apache.thrift.TBase<compact_args, compact_args._Fields>, java.io.Serializable, Cloneable {
7266 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_args");
7267
7268 private static final org.apache.thrift.protocol.TField TABLE_NAME_OR_REGION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableNameOrRegionName", org.apache.thrift.protocol.TType.STRING, (short)1);
7269
7270 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7271 static {
7272 schemes.put(StandardScheme.class, new compact_argsStandardSchemeFactory());
7273 schemes.put(TupleScheme.class, new compact_argsTupleSchemeFactory());
7274 }
7275
7276 public ByteBuffer tableNameOrRegionName;
7277
7278
7279 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7280 TABLE_NAME_OR_REGION_NAME((short)1, "tableNameOrRegionName");
7281
7282 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7283
7284 static {
7285 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7286 byName.put(field.getFieldName(), field);
7287 }
7288 }
7289
7290
7291
7292
7293 public static _Fields findByThriftId(int fieldId) {
7294 switch(fieldId) {
7295 case 1:
7296 return TABLE_NAME_OR_REGION_NAME;
7297 default:
7298 return null;
7299 }
7300 }
7301
7302
7303
7304
7305
7306 public static _Fields findByThriftIdOrThrow(int fieldId) {
7307 _Fields fields = findByThriftId(fieldId);
7308 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7309 return fields;
7310 }
7311
7312
7313
7314
7315 public static _Fields findByName(String name) {
7316 return byName.get(name);
7317 }
7318
7319 private final short _thriftId;
7320 private final String _fieldName;
7321
7322 _Fields(short thriftId, String fieldName) {
7323 _thriftId = thriftId;
7324 _fieldName = fieldName;
7325 }
7326
7327 public short getThriftFieldId() {
7328 return _thriftId;
7329 }
7330
7331 public String getFieldName() {
7332 return _fieldName;
7333 }
7334 }
7335
7336
7337 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7338 static {
7339 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7340 tmpMap.put(_Fields.TABLE_NAME_OR_REGION_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableNameOrRegionName", org.apache.thrift.TFieldRequirementType.DEFAULT,
7341 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes")));
7342 metaDataMap = Collections.unmodifiableMap(tmpMap);
7343 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_args.class, metaDataMap);
7344 }
7345
7346 public compact_args() {
7347 }
7348
7349 public compact_args(
7350 ByteBuffer tableNameOrRegionName)
7351 {
7352 this();
7353 this.tableNameOrRegionName = tableNameOrRegionName;
7354 }
7355
7356
7357
7358
7359 public compact_args(compact_args other) {
7360 if (other.isSetTableNameOrRegionName()) {
7361 this.tableNameOrRegionName = other.tableNameOrRegionName;
7362 }
7363 }
7364
7365 public compact_args deepCopy() {
7366 return new compact_args(this);
7367 }
7368
7369 @Override
7370 public void clear() {
7371 this.tableNameOrRegionName = null;
7372 }
7373
7374 public byte[] getTableNameOrRegionName() {
7375 setTableNameOrRegionName(org.apache.thrift.TBaseHelper.rightSize(tableNameOrRegionName));
7376 return tableNameOrRegionName == null ? null : tableNameOrRegionName.array();
7377 }
7378
7379 public ByteBuffer bufferForTableNameOrRegionName() {
7380 return tableNameOrRegionName;
7381 }
7382
7383 public compact_args setTableNameOrRegionName(byte[] tableNameOrRegionName) {
7384 setTableNameOrRegionName(tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableNameOrRegionName));
7385 return this;
7386 }
7387
7388 public compact_args setTableNameOrRegionName(ByteBuffer tableNameOrRegionName) {
7389 this.tableNameOrRegionName = tableNameOrRegionName;
7390 return this;
7391 }
7392
7393 public void unsetTableNameOrRegionName() {
7394 this.tableNameOrRegionName = null;
7395 }
7396
7397
7398 public boolean isSetTableNameOrRegionName() {
7399 return this.tableNameOrRegionName != null;
7400 }
7401
7402 public void setTableNameOrRegionNameIsSet(boolean value) {
7403 if (!value) {
7404 this.tableNameOrRegionName = null;
7405 }
7406 }
7407
7408 public void setFieldValue(_Fields field, Object value) {
7409 switch (field) {
7410 case TABLE_NAME_OR_REGION_NAME:
7411 if (value == null) {
7412 unsetTableNameOrRegionName();
7413 } else {
7414 setTableNameOrRegionName((ByteBuffer)value);
7415 }
7416 break;
7417
7418 }
7419 }
7420
7421 public Object getFieldValue(_Fields field) {
7422 switch (field) {
7423 case TABLE_NAME_OR_REGION_NAME:
7424 return getTableNameOrRegionName();
7425
7426 }
7427 throw new IllegalStateException();
7428 }
7429
7430
7431 public boolean isSet(_Fields field) {
7432 if (field == null) {
7433 throw new IllegalArgumentException();
7434 }
7435
7436 switch (field) {
7437 case TABLE_NAME_OR_REGION_NAME:
7438 return isSetTableNameOrRegionName();
7439 }
7440 throw new IllegalStateException();
7441 }
7442
7443 @Override
7444 public boolean equals(Object that) {
7445 if (that == null)
7446 return false;
7447 if (that instanceof compact_args)
7448 return this.equals((compact_args)that);
7449 return false;
7450 }
7451
7452 public boolean equals(compact_args that) {
7453 if (that == null)
7454 return false;
7455
7456 boolean this_present_tableNameOrRegionName = true && this.isSetTableNameOrRegionName();
7457 boolean that_present_tableNameOrRegionName = true && that.isSetTableNameOrRegionName();
7458 if (this_present_tableNameOrRegionName || that_present_tableNameOrRegionName) {
7459 if (!(this_present_tableNameOrRegionName && that_present_tableNameOrRegionName))
7460 return false;
7461 if (!this.tableNameOrRegionName.equals(that.tableNameOrRegionName))
7462 return false;
7463 }
7464
7465 return true;
7466 }
7467
7468 @Override
7469 public int hashCode() {
7470 HashCodeBuilder builder = new HashCodeBuilder();
7471
7472 boolean present_tableNameOrRegionName = true && (isSetTableNameOrRegionName());
7473 builder.append(present_tableNameOrRegionName);
7474 if (present_tableNameOrRegionName)
7475 builder.append(tableNameOrRegionName);
7476
7477 return builder.toHashCode();
7478 }
7479
7480 public int compareTo(compact_args other) {
7481 if (!getClass().equals(other.getClass())) {
7482 return getClass().getName().compareTo(other.getClass().getName());
7483 }
7484
7485 int lastComparison = 0;
7486 compact_args typedOther = (compact_args)other;
7487
7488 lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(typedOther.isSetTableNameOrRegionName());
7489 if (lastComparison != 0) {
7490 return lastComparison;
7491 }
7492 if (isSetTableNameOrRegionName()) {
7493 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNameOrRegionName, typedOther.tableNameOrRegionName);
7494 if (lastComparison != 0) {
7495 return lastComparison;
7496 }
7497 }
7498 return 0;
7499 }
7500
7501 public _Fields fieldForId(int fieldId) {
7502 return _Fields.findByThriftId(fieldId);
7503 }
7504
7505 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7506 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7507 }
7508
7509 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7510 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7511 }
7512
7513 @Override
7514 public String toString() {
7515 StringBuilder sb = new StringBuilder("compact_args(");
7516 boolean first = true;
7517
7518 sb.append("tableNameOrRegionName:");
7519 if (this.tableNameOrRegionName == null) {
7520 sb.append("null");
7521 } else {
7522 sb.append(this.tableNameOrRegionName);
7523 }
7524 first = false;
7525 sb.append(")");
7526 return sb.toString();
7527 }
7528
7529 public void validate() throws org.apache.thrift.TException {
7530
7531
7532 }
7533
7534 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7535 try {
7536 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7537 } catch (org.apache.thrift.TException te) {
7538 throw new java.io.IOException(te);
7539 }
7540 }
7541
7542 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7543 try {
7544 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7545 } catch (org.apache.thrift.TException te) {
7546 throw new java.io.IOException(te);
7547 }
7548 }
7549
7550 private static class compact_argsStandardSchemeFactory implements SchemeFactory {
7551 public compact_argsStandardScheme getScheme() {
7552 return new compact_argsStandardScheme();
7553 }
7554 }
7555
7556 private static class compact_argsStandardScheme extends StandardScheme<compact_args> {
7557
7558 public void read(org.apache.thrift.protocol.TProtocol iprot, compact_args struct) throws org.apache.thrift.TException {
7559 org.apache.thrift.protocol.TField schemeField;
7560 iprot.readStructBegin();
7561 while (true)
7562 {
7563 schemeField = iprot.readFieldBegin();
7564 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7565 break;
7566 }
7567 switch (schemeField.id) {
7568 case 1:
7569 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7570 struct.tableNameOrRegionName = iprot.readBinary();
7571 struct.setTableNameOrRegionNameIsSet(true);
7572 } else {
7573 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7574 }
7575 break;
7576 default:
7577 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7578 }
7579 iprot.readFieldEnd();
7580 }
7581 iprot.readStructEnd();
7582
7583
7584 struct.validate();
7585 }
7586
7587 public void write(org.apache.thrift.protocol.TProtocol oprot, compact_args struct) throws org.apache.thrift.TException {
7588 struct.validate();
7589
7590 oprot.writeStructBegin(STRUCT_DESC);
7591 if (struct.tableNameOrRegionName != null) {
7592 oprot.writeFieldBegin(TABLE_NAME_OR_REGION_NAME_FIELD_DESC);
7593 oprot.writeBinary(struct.tableNameOrRegionName);
7594 oprot.writeFieldEnd();
7595 }
7596 oprot.writeFieldStop();
7597 oprot.writeStructEnd();
7598 }
7599
7600 }
7601
7602 private static class compact_argsTupleSchemeFactory implements SchemeFactory {
7603 public compact_argsTupleScheme getScheme() {
7604 return new compact_argsTupleScheme();
7605 }
7606 }
7607
7608 private static class compact_argsTupleScheme extends TupleScheme<compact_args> {
7609
7610 @Override
7611 public void write(org.apache.thrift.protocol.TProtocol prot, compact_args struct) throws org.apache.thrift.TException {
7612 TTupleProtocol oprot = (TTupleProtocol) prot;
7613 BitSet optionals = new BitSet();
7614 if (struct.isSetTableNameOrRegionName()) {
7615 optionals.set(0);
7616 }
7617 oprot.writeBitSet(optionals, 1);
7618 if (struct.isSetTableNameOrRegionName()) {
7619 oprot.writeBinary(struct.tableNameOrRegionName);
7620 }
7621 }
7622
7623 @Override
7624 public void read(org.apache.thrift.protocol.TProtocol prot, compact_args struct) throws org.apache.thrift.TException {
7625 TTupleProtocol iprot = (TTupleProtocol) prot;
7626 BitSet incoming = iprot.readBitSet(1);
7627 if (incoming.get(0)) {
7628 struct.tableNameOrRegionName = iprot.readBinary();
7629 struct.setTableNameOrRegionNameIsSet(true);
7630 }
7631 }
7632 }
7633
7634 }
7635
7636 public static class compact_result implements org.apache.thrift.TBase<compact_result, compact_result._Fields>, java.io.Serializable, Cloneable {
7637 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_result");
7638
7639 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7640
7641 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7642 static {
7643 schemes.put(StandardScheme.class, new compact_resultStandardSchemeFactory());
7644 schemes.put(TupleScheme.class, new compact_resultTupleSchemeFactory());
7645 }
7646
7647 public IOError io;
7648
7649
7650 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7651 IO((short)1, "io");
7652
7653 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7654
7655 static {
7656 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7657 byName.put(field.getFieldName(), field);
7658 }
7659 }
7660
7661
7662
7663
7664 public static _Fields findByThriftId(int fieldId) {
7665 switch(fieldId) {
7666 case 1:
7667 return IO;
7668 default:
7669 return null;
7670 }
7671 }
7672
7673
7674
7675
7676
7677 public static _Fields findByThriftIdOrThrow(int fieldId) {
7678 _Fields fields = findByThriftId(fieldId);
7679 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7680 return fields;
7681 }
7682
7683
7684
7685
7686 public static _Fields findByName(String name) {
7687 return byName.get(name);
7688 }
7689
7690 private final short _thriftId;
7691 private final String _fieldName;
7692
7693 _Fields(short thriftId, String fieldName) {
7694 _thriftId = thriftId;
7695 _fieldName = fieldName;
7696 }
7697
7698 public short getThriftFieldId() {
7699 return _thriftId;
7700 }
7701
7702 public String getFieldName() {
7703 return _fieldName;
7704 }
7705 }
7706
7707
7708 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7709 static {
7710 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7711 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
7712 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7713 metaDataMap = Collections.unmodifiableMap(tmpMap);
7714 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(compact_result.class, metaDataMap);
7715 }
7716
7717 public compact_result() {
7718 }
7719
7720 public compact_result(
7721 IOError io)
7722 {
7723 this();
7724 this.io = io;
7725 }
7726
7727
7728
7729
7730 public compact_result(compact_result other) {
7731 if (other.isSetIo()) {
7732 this.io = new IOError(other.io);
7733 }
7734 }
7735
7736 public compact_result deepCopy() {
7737 return new compact_result(this);
7738 }
7739
7740 @Override
7741 public void clear() {
7742 this.io = null;
7743 }
7744
7745 public IOError getIo() {
7746 return this.io;
7747 }
7748
7749 public compact_result setIo(IOError io) {
7750 this.io = io;
7751 return this;
7752 }
7753
7754 public void unsetIo() {
7755 this.io = null;
7756 }
7757
7758
7759 public boolean isSetIo() {
7760 return this.io != null;
7761 }
7762
7763 public void setIoIsSet(boolean value) {
7764 if (!value) {
7765 this.io = null;
7766 }
7767 }
7768
7769 public void setFieldValue(_Fields field, Object value) {
7770 switch (field) {
7771 case IO:
7772 if (value == null) {
7773 unsetIo();
7774 } else {
7775 setIo((IOError)value);
7776 }
7777 break;
7778
7779 }
7780 }
7781
7782 public Object getFieldValue(_Fields field) {
7783 switch (field) {
7784 case IO:
7785 return getIo();
7786
7787 }
7788 throw new IllegalStateException();
7789 }
7790
7791
7792 public boolean isSet(_Fields field) {
7793 if (field == null) {
7794 throw new IllegalArgumentException();
7795 }
7796
7797 switch (field) {
7798 case IO:
7799 return isSetIo();
7800 }
7801 throw new IllegalStateException();
7802 }
7803
7804 @Override
7805 public boolean equals(Object that) {
7806 if (that == null)
7807 return false;
7808 if (that instanceof compact_result)
7809 return this.equals((compact_result)that);
7810 return false;
7811 }
7812
7813 public boolean equals(compact_result that) {
7814 if (that == null)
7815 return false;
7816
7817 boolean this_present_io = true && this.isSetIo();
7818 boolean that_present_io = true && that.isSetIo();
7819 if (this_present_io || that_present_io) {
7820 if (!(this_present_io && that_present_io))
7821 return false;
7822 if (!this.io.equals(that.io))
7823 return false;
7824 }
7825
7826 return true;
7827 }
7828
7829 @Override
7830 public int hashCode() {
7831 HashCodeBuilder builder = new HashCodeBuilder();
7832
7833 boolean present_io = true && (isSetIo());
7834 builder.append(present_io);
7835 if (present_io)
7836 builder.append(io);
7837
7838 return builder.toHashCode();
7839 }
7840
7841 public int compareTo(compact_result other) {
7842 if (!getClass().equals(other.getClass())) {
7843 return getClass().getName().compareTo(other.getClass().getName());
7844 }
7845
7846 int lastComparison = 0;
7847 compact_result typedOther = (compact_result)other;
7848
7849 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
7850 if (lastComparison != 0) {
7851 return lastComparison;
7852 }
7853 if (isSetIo()) {
7854 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
7855 if (lastComparison != 0) {
7856 return lastComparison;
7857 }
7858 }
7859 return 0;
7860 }
7861
7862 public _Fields fieldForId(int fieldId) {
7863 return _Fields.findByThriftId(fieldId);
7864 }
7865
7866 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7867 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7868 }
7869
7870 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7871 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7872 }
7873
7874 @Override
7875 public String toString() {
7876 StringBuilder sb = new StringBuilder("compact_result(");
7877 boolean first = true;
7878
7879 sb.append("io:");
7880 if (this.io == null) {
7881 sb.append("null");
7882 } else {
7883 sb.append(this.io);
7884 }
7885 first = false;
7886 sb.append(")");
7887 return sb.toString();
7888 }
7889
7890 public void validate() throws org.apache.thrift.TException {
7891
7892
7893 }
7894
7895 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7896 try {
7897 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7898 } catch (org.apache.thrift.TException te) {
7899 throw new java.io.IOException(te);
7900 }
7901 }
7902
7903 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7904 try {
7905 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7906 } catch (org.apache.thrift.TException te) {
7907 throw new java.io.IOException(te);
7908 }
7909 }
7910
7911 private static class compact_resultStandardSchemeFactory implements SchemeFactory {
7912 public compact_resultStandardScheme getScheme() {
7913 return new compact_resultStandardScheme();
7914 }
7915 }
7916
7917 private static class compact_resultStandardScheme extends StandardScheme<compact_result> {
7918
7919 public void read(org.apache.thrift.protocol.TProtocol iprot, compact_result struct) throws org.apache.thrift.TException {
7920 org.apache.thrift.protocol.TField schemeField;
7921 iprot.readStructBegin();
7922 while (true)
7923 {
7924 schemeField = iprot.readFieldBegin();
7925 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7926 break;
7927 }
7928 switch (schemeField.id) {
7929 case 1:
7930 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
7931 struct.io = new IOError();
7932 struct.io.read(iprot);
7933 struct.setIoIsSet(true);
7934 } else {
7935 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7936 }
7937 break;
7938 default:
7939 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7940 }
7941 iprot.readFieldEnd();
7942 }
7943 iprot.readStructEnd();
7944
7945
7946 struct.validate();
7947 }
7948
7949 public void write(org.apache.thrift.protocol.TProtocol oprot, compact_result struct) throws org.apache.thrift.TException {
7950 struct.validate();
7951
7952 oprot.writeStructBegin(STRUCT_DESC);
7953 if (struct.io != null) {
7954 oprot.writeFieldBegin(IO_FIELD_DESC);
7955 struct.io.write(oprot);
7956 oprot.writeFieldEnd();
7957 }
7958 oprot.writeFieldStop();
7959 oprot.writeStructEnd();
7960 }
7961
7962 }
7963
7964 private static class compact_resultTupleSchemeFactory implements SchemeFactory {
7965 public compact_resultTupleScheme getScheme() {
7966 return new compact_resultTupleScheme();
7967 }
7968 }
7969
7970 private static class compact_resultTupleScheme extends TupleScheme<compact_result> {
7971
7972 @Override
7973 public void write(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException {
7974 TTupleProtocol oprot = (TTupleProtocol) prot;
7975 BitSet optionals = new BitSet();
7976 if (struct.isSetIo()) {
7977 optionals.set(0);
7978 }
7979 oprot.writeBitSet(optionals, 1);
7980 if (struct.isSetIo()) {
7981 struct.io.write(oprot);
7982 }
7983 }
7984
7985 @Override
7986 public void read(org.apache.thrift.protocol.TProtocol prot, compact_result struct) throws org.apache.thrift.TException {
7987 TTupleProtocol iprot = (TTupleProtocol) prot;
7988 BitSet incoming = iprot.readBitSet(1);
7989 if (incoming.get(0)) {
7990 struct.io = new IOError();
7991 struct.io.read(iprot);
7992 struct.setIoIsSet(true);
7993 }
7994 }
7995 }
7996
7997 }
7998
7999 public static class majorCompact_args implements org.apache.thrift.TBase<majorCompact_args, majorCompact_args._Fields>, java.io.Serializable, Cloneable {
8000 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("majorCompact_args");
8001
8002 private static final org.apache.thrift.protocol.TField TABLE_NAME_OR_REGION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableNameOrRegionName", org.apache.thrift.protocol.TType.STRING, (short)1);
8003
8004 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8005 static {
8006 schemes.put(StandardScheme.class, new majorCompact_argsStandardSchemeFactory());
8007 schemes.put(TupleScheme.class, new majorCompact_argsTupleSchemeFactory());
8008 }
8009
8010 public ByteBuffer tableNameOrRegionName;
8011
8012
8013 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8014 TABLE_NAME_OR_REGION_NAME((short)1, "tableNameOrRegionName");
8015
8016 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8017
8018 static {
8019 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8020 byName.put(field.getFieldName(), field);
8021 }
8022 }
8023
8024
8025
8026
8027 public static _Fields findByThriftId(int fieldId) {
8028 switch(fieldId) {
8029 case 1:
8030 return TABLE_NAME_OR_REGION_NAME;
8031 default:
8032 return null;
8033 }
8034 }
8035
8036
8037
8038
8039
8040 public static _Fields findByThriftIdOrThrow(int fieldId) {
8041 _Fields fields = findByThriftId(fieldId);
8042 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8043 return fields;
8044 }
8045
8046
8047
8048
8049 public static _Fields findByName(String name) {
8050 return byName.get(name);
8051 }
8052
8053 private final short _thriftId;
8054 private final String _fieldName;
8055
8056 _Fields(short thriftId, String fieldName) {
8057 _thriftId = thriftId;
8058 _fieldName = fieldName;
8059 }
8060
8061 public short getThriftFieldId() {
8062 return _thriftId;
8063 }
8064
8065 public String getFieldName() {
8066 return _fieldName;
8067 }
8068 }
8069
8070
8071 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8072 static {
8073 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8074 tmpMap.put(_Fields.TABLE_NAME_OR_REGION_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableNameOrRegionName", org.apache.thrift.TFieldRequirementType.DEFAULT,
8075 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Bytes")));
8076 metaDataMap = Collections.unmodifiableMap(tmpMap);
8077 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(majorCompact_args.class, metaDataMap);
8078 }
8079
8080 public majorCompact_args() {
8081 }
8082
8083 public majorCompact_args(
8084 ByteBuffer tableNameOrRegionName)
8085 {
8086 this();
8087 this.tableNameOrRegionName = tableNameOrRegionName;
8088 }
8089
8090
8091
8092
8093 public majorCompact_args(majorCompact_args other) {
8094 if (other.isSetTableNameOrRegionName()) {
8095 this.tableNameOrRegionName = other.tableNameOrRegionName;
8096 }
8097 }
8098
8099 public majorCompact_args deepCopy() {
8100 return new majorCompact_args(this);
8101 }
8102
8103 @Override
8104 public void clear() {
8105 this.tableNameOrRegionName = null;
8106 }
8107
8108 public byte[] getTableNameOrRegionName() {
8109 setTableNameOrRegionName(org.apache.thrift.TBaseHelper.rightSize(tableNameOrRegionName));
8110 return tableNameOrRegionName == null ? null : tableNameOrRegionName.array();
8111 }
8112
8113 public ByteBuffer bufferForTableNameOrRegionName() {
8114 return tableNameOrRegionName;
8115 }
8116
8117 public majorCompact_args setTableNameOrRegionName(byte[] tableNameOrRegionName) {
8118 setTableNameOrRegionName(tableNameOrRegionName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableNameOrRegionName));
8119 return this;
8120 }
8121
8122 public majorCompact_args setTableNameOrRegionName(ByteBuffer tableNameOrRegionName) {
8123 this.tableNameOrRegionName = tableNameOrRegionName;
8124 return this;
8125 }
8126
8127 public void unsetTableNameOrRegionName() {
8128 this.tableNameOrRegionName = null;
8129 }
8130
8131
8132 public boolean isSetTableNameOrRegionName() {
8133 return this.tableNameOrRegionName != null;
8134 }
8135
8136 public void setTableNameOrRegionNameIsSet(boolean value) {
8137 if (!value) {
8138 this.tableNameOrRegionName = null;
8139 }
8140 }
8141
8142 public void setFieldValue(_Fields field, Object value) {
8143 switch (field) {
8144 case TABLE_NAME_OR_REGION_NAME:
8145 if (value == null) {
8146 unsetTableNameOrRegionName();
8147 } else {
8148 setTableNameOrRegionName((ByteBuffer)value);
8149 }
8150 break;
8151
8152 }
8153 }
8154
8155 public Object getFieldValue(_Fields field) {
8156 switch (field) {
8157 case TABLE_NAME_OR_REGION_NAME:
8158 return getTableNameOrRegionName();
8159
8160 }
8161 throw new IllegalStateException();
8162 }
8163
8164
8165 public boolean isSet(_Fields field) {
8166 if (field == null) {
8167 throw new IllegalArgumentException();
8168 }
8169
8170 switch (field) {
8171 case TABLE_NAME_OR_REGION_NAME:
8172 return isSetTableNameOrRegionName();
8173 }
8174 throw new IllegalStateException();
8175 }
8176
8177 @Override
8178 public boolean equals(Object that) {
8179 if (that == null)
8180 return false;
8181 if (that instanceof majorCompact_args)
8182 return this.equals((majorCompact_args)that);
8183 return false;
8184 }
8185
8186 public boolean equals(majorCompact_args that) {
8187 if (that == null)
8188 return false;
8189
8190 boolean this_present_tableNameOrRegionName = true && this.isSetTableNameOrRegionName();
8191 boolean that_present_tableNameOrRegionName = true && that.isSetTableNameOrRegionName();
8192 if (this_present_tableNameOrRegionName || that_present_tableNameOrRegionName) {
8193 if (!(this_present_tableNameOrRegionName && that_present_tableNameOrRegionName))
8194 return false;
8195 if (!this.tableNameOrRegionName.equals(that.tableNameOrRegionName))
8196 return false;
8197 }
8198
8199 return true;
8200 }
8201
8202 @Override
8203 public int hashCode() {
8204 HashCodeBuilder builder = new HashCodeBuilder();
8205
8206 boolean present_tableNameOrRegionName = true && (isSetTableNameOrRegionName());
8207 builder.append(present_tableNameOrRegionName);
8208 if (present_tableNameOrRegionName)
8209 builder.append(tableNameOrRegionName);
8210
8211 return builder.toHashCode();
8212 }
8213
8214 public int compareTo(majorCompact_args other) {
8215 if (!getClass().equals(other.getClass())) {
8216 return getClass().getName().compareTo(other.getClass().getName());
8217 }
8218
8219 int lastComparison = 0;
8220 majorCompact_args typedOther = (majorCompact_args)other;
8221
8222 lastComparison = Boolean.valueOf(isSetTableNameOrRegionName()).compareTo(typedOther.isSetTableNameOrRegionName());
8223 if (lastComparison != 0) {
8224 return lastComparison;
8225 }
8226 if (isSetTableNameOrRegionName()) {
8227 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableNameOrRegionName, typedOther.tableNameOrRegionName);
8228 if (lastComparison != 0) {
8229 return lastComparison;
8230 }
8231 }
8232 return 0;
8233 }
8234
8235 public _Fields fieldForId(int fieldId) {
8236 return _Fields.findByThriftId(fieldId);
8237 }
8238
8239 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8240 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8241 }
8242
8243 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8244 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8245 }
8246
8247 @Override
8248 public String toString() {
8249 StringBuilder sb = new StringBuilder("majorCompact_args(");
8250 boolean first = true;
8251
8252 sb.append("tableNameOrRegionName:");
8253 if (this.tableNameOrRegionName == null) {
8254 sb.append("null");
8255 } else {
8256 sb.append(this.tableNameOrRegionName);
8257 }
8258 first = false;
8259 sb.append(")");
8260 return sb.toString();
8261 }
8262
8263 public void validate() throws org.apache.thrift.TException {
8264
8265
8266 }
8267
8268 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8269 try {
8270 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8271 } catch (org.apache.thrift.TException te) {
8272 throw new java.io.IOException(te);
8273 }
8274 }
8275
8276 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8277 try {
8278 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8279 } catch (org.apache.thrift.TException te) {
8280 throw new java.io.IOException(te);
8281 }
8282 }
8283
8284 private static class majorCompact_argsStandardSchemeFactory implements SchemeFactory {
8285 public majorCompact_argsStandardScheme getScheme() {
8286 return new majorCompact_argsStandardScheme();
8287 }
8288 }
8289
8290 private static class majorCompact_argsStandardScheme extends StandardScheme<majorCompact_args> {
8291
8292 public void read(org.apache.thrift.protocol.TProtocol iprot, majorCompact_args struct) throws org.apache.thrift.TException {
8293 org.apache.thrift.protocol.TField schemeField;
8294 iprot.readStructBegin();
8295 while (true)
8296 {
8297 schemeField = iprot.readFieldBegin();
8298 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8299 break;
8300 }
8301 switch (schemeField.id) {
8302 case 1:
8303 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8304 struct.tableNameOrRegionName = iprot.readBinary();
8305 struct.setTableNameOrRegionNameIsSet(true);
8306 } else {
8307 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8308 }
8309 break;
8310 default:
8311 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8312 }
8313 iprot.readFieldEnd();
8314 }
8315 iprot.readStructEnd();
8316
8317
8318 struct.validate();
8319 }
8320
8321 public void write(org.apache.thrift.protocol.TProtocol oprot, majorCompact_args struct) throws org.apache.thrift.TException {
8322 struct.validate();
8323
8324 oprot.writeStructBegin(STRUCT_DESC);
8325 if (struct.tableNameOrRegionName != null) {
8326 oprot.writeFieldBegin(TABLE_NAME_OR_REGION_NAME_FIELD_DESC);
8327 oprot.writeBinary(struct.tableNameOrRegionName);
8328 oprot.writeFieldEnd();
8329 }
8330 oprot.writeFieldStop();
8331 oprot.writeStructEnd();
8332 }
8333
8334 }
8335
8336 private static class majorCompact_argsTupleSchemeFactory implements SchemeFactory {
8337 public majorCompact_argsTupleScheme getScheme() {
8338 return new majorCompact_argsTupleScheme();
8339 }
8340 }
8341
8342 private static class majorCompact_argsTupleScheme extends TupleScheme<majorCompact_args> {
8343
8344 @Override
8345 public void write(org.apache.thrift.protocol.TProtocol prot, majorCompact_args struct) throws org.apache.thrift.TException {
8346 TTupleProtocol oprot = (TTupleProtocol) prot;
8347 BitSet optionals = new BitSet();
8348 if (struct.isSetTableNameOrRegionName()) {
8349 optionals.set(0);
8350 }
8351 oprot.writeBitSet(optionals, 1);
8352 if (struct.isSetTableNameOrRegionName()) {
8353 oprot.writeBinary(struct.tableNameOrRegionName);
8354 }
8355 }
8356
8357 @Override
8358 public void read(org.apache.thrift.protocol.TProtocol prot, majorCompact_args struct) throws org.apache.thrift.TException {
8359 TTupleProtocol iprot = (TTupleProtocol) prot;
8360 BitSet incoming = iprot.readBitSet(1);
8361 if (incoming.get(0)) {
8362 struct.tableNameOrRegionName = iprot.readBinary();
8363 struct.setTableNameOrRegionNameIsSet(true);
8364 }
8365 }
8366 }
8367
8368 }
8369
8370 public static class majorCompact_result implements org.apache.thrift.TBase<majorCompact_result, majorCompact_result._Fields>, java.io.Serializable, Cloneable {
8371 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("majorCompact_result");
8372
8373 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8374
8375 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8376 static {
8377 schemes.put(StandardScheme.class, new majorCompact_resultStandardSchemeFactory());
8378 schemes.put(TupleScheme.class, new majorCompact_resultTupleSchemeFactory());
8379 }
8380
8381 public IOError io;
8382
8383
8384 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8385 IO((short)1, "io");
8386
8387 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8388
8389 static {
8390 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8391 byName.put(field.getFieldName(), field);
8392 }
8393 }
8394
8395
8396
8397
8398 public static _Fields findByThriftId(int fieldId) {
8399 switch(fieldId) {
8400 case 1:
8401 return IO;
8402 default:
8403 return null;
8404 }
8405 }
8406
8407
8408
8409
8410
8411 public static _Fields findByThriftIdOrThrow(int fieldId) {
8412 _Fields fields = findByThriftId(fieldId);
8413 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8414 return fields;
8415 }
8416
8417
8418
8419
8420 public static _Fields findByName(String name) {
8421 return byName.get(name);
8422 }
8423
8424 private final short _thriftId;
8425 private final String _fieldName;
8426
8427 _Fields(short thriftId, String fieldName) {
8428 _thriftId = thriftId;
8429 _fieldName = fieldName;
8430 }
8431
8432 public short getThriftFieldId() {
8433 return _thriftId;
8434 }
8435
8436 public String getFieldName() {
8437 return _fieldName;
8438 }
8439 }
8440
8441
8442 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8443 static {
8444 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8445 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
8446 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8447 metaDataMap = Collections.unmodifiableMap(tmpMap);
8448 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(majorCompact_result.class, metaDataMap);
8449 }
8450
8451 public majorCompact_result() {
8452 }
8453
8454 public majorCompact_result(
8455 IOError io)
8456 {
8457 this();
8458 this.io = io;
8459 }
8460
8461
8462
8463
8464 public majorCompact_result(majorCompact_result other) {
8465 if (other.isSetIo()) {
8466 this.io = new IOError(other.io);
8467 }
8468 }
8469
8470 public majorCompact_result deepCopy() {
8471 return new majorCompact_result(this);
8472 }
8473
8474 @Override
8475 public void clear() {
8476 this.io = null;
8477 }
8478
8479 public IOError getIo() {
8480 return this.io;
8481 }
8482
8483 public majorCompact_result setIo(IOError io) {
8484 this.io = io;
8485 return this;
8486 }
8487
8488 public void unsetIo() {
8489 this.io = null;
8490 }
8491
8492
8493 public boolean isSetIo() {
8494 return this.io != null;
8495 }
8496
8497 public void setIoIsSet(boolean value) {
8498 if (!value) {
8499 this.io = null;
8500 }
8501 }
8502
8503 public void setFieldValue(_Fields field, Object value) {
8504 switch (field) {
8505 case IO:
8506 if (value == null) {
8507 unsetIo();
8508 } else {
8509 setIo((IOError)value);
8510 }
8511 break;
8512
8513 }
8514 }
8515
8516 public Object getFieldValue(_Fields field) {
8517 switch (field) {
8518 case IO:
8519 return getIo();
8520
8521 }
8522 throw new IllegalStateException();
8523 }
8524
8525
8526 public boolean isSet(_Fields field) {
8527 if (field == null) {
8528 throw new IllegalArgumentException();
8529 }
8530
8531 switch (field) {
8532 case IO:
8533 return isSetIo();
8534 }
8535 throw new IllegalStateException();
8536 }
8537
8538 @Override
8539 public boolean equals(Object that) {
8540 if (that == null)
8541 return false;
8542 if (that instanceof majorCompact_result)
8543 return this.equals((majorCompact_result)that);
8544 return false;
8545 }
8546
8547 public boolean equals(majorCompact_result that) {
8548 if (that == null)
8549 return false;
8550
8551 boolean this_present_io = true && this.isSetIo();
8552 boolean that_present_io = true && that.isSetIo();
8553 if (this_present_io || that_present_io) {
8554 if (!(this_present_io && that_present_io))
8555 return false;
8556 if (!this.io.equals(that.io))
8557 return false;
8558 }
8559
8560 return true;
8561 }
8562
8563 @Override
8564 public int hashCode() {
8565 HashCodeBuilder builder = new HashCodeBuilder();
8566
8567 boolean present_io = true && (isSetIo());
8568 builder.append(present_io);
8569 if (present_io)
8570 builder.append(io);
8571
8572 return builder.toHashCode();
8573 }
8574
8575 public int compareTo(majorCompact_result other) {
8576 if (!getClass().equals(other.getClass())) {
8577 return getClass().getName().compareTo(other.getClass().getName());
8578 }
8579
8580 int lastComparison = 0;
8581 majorCompact_result typedOther = (majorCompact_result)other;
8582
8583 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
8584 if (lastComparison != 0) {
8585 return lastComparison;
8586 }
8587 if (isSetIo()) {
8588 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
8589 if (lastComparison != 0) {
8590 return lastComparison;
8591 }
8592 }
8593 return 0;
8594 }
8595
8596 public _Fields fieldForId(int fieldId) {
8597 return _Fields.findByThriftId(fieldId);
8598 }
8599
8600 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8601 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8602 }
8603
8604 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8605 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8606 }
8607
8608 @Override
8609 public String toString() {
8610 StringBuilder sb = new StringBuilder("majorCompact_result(");
8611 boolean first = true;
8612
8613 sb.append("io:");
8614 if (this.io == null) {
8615 sb.append("null");
8616 } else {
8617 sb.append(this.io);
8618 }
8619 first = false;
8620 sb.append(")");
8621 return sb.toString();
8622 }
8623
8624 public void validate() throws org.apache.thrift.TException {
8625
8626
8627 }
8628
8629 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8630 try {
8631 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8632 } catch (org.apache.thrift.TException te) {
8633 throw new java.io.IOException(te);
8634 }
8635 }
8636
8637 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8638 try {
8639 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8640 } catch (org.apache.thrift.TException te) {
8641 throw new java.io.IOException(te);
8642 }
8643 }
8644
8645 private static class majorCompact_resultStandardSchemeFactory implements SchemeFactory {
8646 public majorCompact_resultStandardScheme getScheme() {
8647 return new majorCompact_resultStandardScheme();
8648 }
8649 }
8650
8651 private static class majorCompact_resultStandardScheme extends StandardScheme<majorCompact_result> {
8652
8653 public void read(org.apache.thrift.protocol.TProtocol iprot, majorCompact_result struct) throws org.apache.thrift.TException {
8654 org.apache.thrift.protocol.TField schemeField;
8655 iprot.readStructBegin();
8656 while (true)
8657 {
8658 schemeField = iprot.readFieldBegin();
8659 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8660 break;
8661 }
8662 switch (schemeField.id) {
8663 case 1:
8664 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
8665 struct.io = new IOError();
8666 struct.io.read(iprot);
8667 struct.setIoIsSet(true);
8668 } else {
8669 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8670 }
8671 break;
8672 default:
8673 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8674 }
8675 iprot.readFieldEnd();
8676 }
8677 iprot.readStructEnd();
8678
8679
8680 struct.validate();
8681 }
8682
8683 public void write(org.apache.thrift.protocol.TProtocol oprot, majorCompact_result struct) throws org.apache.thrift.TException {
8684 struct.validate();
8685
8686 oprot.writeStructBegin(STRUCT_DESC);
8687 if (struct.io != null) {
8688 oprot.writeFieldBegin(IO_FIELD_DESC);
8689 struct.io.write(oprot);
8690 oprot.writeFieldEnd();
8691 }
8692 oprot.writeFieldStop();
8693 oprot.writeStructEnd();
8694 }
8695
8696 }
8697
8698 private static class majorCompact_resultTupleSchemeFactory implements SchemeFactory {
8699 public majorCompact_resultTupleScheme getScheme() {
8700 return new majorCompact_resultTupleScheme();
8701 }
8702 }
8703
8704 private static class majorCompact_resultTupleScheme extends TupleScheme<majorCompact_result> {
8705
8706 @Override
8707 public void write(org.apache.thrift.protocol.TProtocol prot, majorCompact_result struct) throws org.apache.thrift.TException {
8708 TTupleProtocol oprot = (TTupleProtocol) prot;
8709 BitSet optionals = new BitSet();
8710 if (struct.isSetIo()) {
8711 optionals.set(0);
8712 }
8713 oprot.writeBitSet(optionals, 1);
8714 if (struct.isSetIo()) {
8715 struct.io.write(oprot);
8716 }
8717 }
8718
8719 @Override
8720 public void read(org.apache.thrift.protocol.TProtocol prot, majorCompact_result struct) throws org.apache.thrift.TException {
8721 TTupleProtocol iprot = (TTupleProtocol) prot;
8722 BitSet incoming = iprot.readBitSet(1);
8723 if (incoming.get(0)) {
8724 struct.io = new IOError();
8725 struct.io.read(iprot);
8726 struct.setIoIsSet(true);
8727 }
8728 }
8729 }
8730
8731 }
8732
8733 public static class getTableNames_args implements org.apache.thrift.TBase<getTableNames_args, getTableNames_args._Fields>, java.io.Serializable, Cloneable {
8734 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableNames_args");
8735
8736
8737 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8738 static {
8739 schemes.put(StandardScheme.class, new getTableNames_argsStandardSchemeFactory());
8740 schemes.put(TupleScheme.class, new getTableNames_argsTupleSchemeFactory());
8741 }
8742
8743
8744
8745 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8746 ;
8747
8748 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8749
8750 static {
8751 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8752 byName.put(field.getFieldName(), field);
8753 }
8754 }
8755
8756
8757
8758
8759 public static _Fields findByThriftId(int fieldId) {
8760 switch(fieldId) {
8761 default:
8762 return null;
8763 }
8764 }
8765
8766
8767
8768
8769
8770 public static _Fields findByThriftIdOrThrow(int fieldId) {
8771 _Fields fields = findByThriftId(fieldId);
8772 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8773 return fields;
8774 }
8775
8776
8777
8778
8779 public static _Fields findByName(String name) {
8780 return byName.get(name);
8781 }
8782
8783 private final short _thriftId;
8784 private final String _fieldName;
8785
8786 _Fields(short thriftId, String fieldName) {
8787 _thriftId = thriftId;
8788 _fieldName = fieldName;
8789 }
8790
8791 public short getThriftFieldId() {
8792 return _thriftId;
8793 }
8794
8795 public String getFieldName() {
8796 return _fieldName;
8797 }
8798 }
8799 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8800 static {
8801 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8802 metaDataMap = Collections.unmodifiableMap(tmpMap);
8803 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableNames_args.class, metaDataMap);
8804 }
8805
8806 public getTableNames_args() {
8807 }
8808
8809
8810
8811
8812 public getTableNames_args(getTableNames_args other) {
8813 }
8814
8815 public getTableNames_args deepCopy() {
8816 return new getTableNames_args(this);
8817 }
8818
8819 @Override
8820 public void clear() {
8821 }
8822
8823 public void setFieldValue(_Fields field, Object value) {
8824 switch (field) {
8825 }
8826 }
8827
8828 public Object getFieldValue(_Fields field) {
8829 switch (field) {
8830 }
8831 throw new IllegalStateException();
8832 }
8833
8834
8835 public boolean isSet(_Fields field) {
8836 if (field == null) {
8837 throw new IllegalArgumentException();
8838 }
8839
8840 switch (field) {
8841 }
8842 throw new IllegalStateException();
8843 }
8844
8845 @Override
8846 public boolean equals(Object that) {
8847 if (that == null)
8848 return false;
8849 if (that instanceof getTableNames_args)
8850 return this.equals((getTableNames_args)that);
8851 return false;
8852 }
8853
8854 public boolean equals(getTableNames_args that) {
8855 if (that == null)
8856 return false;
8857
8858 return true;
8859 }
8860
8861 @Override
8862 public int hashCode() {
8863 HashCodeBuilder builder = new HashCodeBuilder();
8864
8865 return builder.toHashCode();
8866 }
8867
8868 public int compareTo(getTableNames_args other) {
8869 if (!getClass().equals(other.getClass())) {
8870 return getClass().getName().compareTo(other.getClass().getName());
8871 }
8872
8873 int lastComparison = 0;
8874 getTableNames_args typedOther = (getTableNames_args)other;
8875
8876 return 0;
8877 }
8878
8879 public _Fields fieldForId(int fieldId) {
8880 return _Fields.findByThriftId(fieldId);
8881 }
8882
8883 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8884 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8885 }
8886
8887 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8888 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8889 }
8890
8891 @Override
8892 public String toString() {
8893 StringBuilder sb = new StringBuilder("getTableNames_args(");
8894 boolean first = true;
8895
8896 sb.append(")");
8897 return sb.toString();
8898 }
8899
8900 public void validate() throws org.apache.thrift.TException {
8901
8902
8903 }
8904
8905 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8906 try {
8907 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8908 } catch (org.apache.thrift.TException te) {
8909 throw new java.io.IOException(te);
8910 }
8911 }
8912
8913 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8914 try {
8915 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8916 } catch (org.apache.thrift.TException te) {
8917 throw new java.io.IOException(te);
8918 }
8919 }
8920
8921 private static class getTableNames_argsStandardSchemeFactory implements SchemeFactory {
8922 public getTableNames_argsStandardScheme getScheme() {
8923 return new getTableNames_argsStandardScheme();
8924 }
8925 }
8926
8927 private static class getTableNames_argsStandardScheme extends StandardScheme<getTableNames_args> {
8928
8929 public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNames_args struct) throws org.apache.thrift.TException {
8930 org.apache.thrift.protocol.TField schemeField;
8931 iprot.readStructBegin();
8932 while (true)
8933 {
8934 schemeField = iprot.readFieldBegin();
8935 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8936 break;
8937 }
8938 switch (schemeField.id) {
8939 default:
8940 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8941 }
8942 iprot.readFieldEnd();
8943 }
8944 iprot.readStructEnd();
8945
8946
8947 struct.validate();
8948 }
8949
8950 public void write(org.apache.thrift.protocol.TProtocol oprot, getTableNames_args struct) throws org.apache.thrift.TException {
8951 struct.validate();
8952
8953 oprot.writeStructBegin(STRUCT_DESC);
8954 oprot.writeFieldStop();
8955 oprot.writeStructEnd();
8956 }
8957
8958 }
8959
8960 private static class getTableNames_argsTupleSchemeFactory implements SchemeFactory {
8961 public getTableNames_argsTupleScheme getScheme() {
8962 return new getTableNames_argsTupleScheme();
8963 }
8964 }
8965
8966 private static class getTableNames_argsTupleScheme extends TupleScheme<getTableNames_args> {
8967
8968 @Override
8969 public void write(org.apache.thrift.protocol.TProtocol prot, getTableNames_args struct) throws org.apache.thrift.TException {
8970 TTupleProtocol oprot = (TTupleProtocol) prot;
8971 }
8972
8973 @Override
8974 public void read(org.apache.thrift.protocol.TProtocol prot, getTableNames_args struct) throws org.apache.thrift.TException {
8975 TTupleProtocol iprot = (TTupleProtocol) prot;
8976 }
8977 }
8978
8979 }
8980
8981 public static class getTableNames_result implements org.apache.thrift.TBase<getTableNames_result, getTableNames_result._Fields>, java.io.Serializable, Cloneable {
8982 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableNames_result");
8983
8984 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
8985 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8986
8987 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8988 static {
8989 schemes.put(StandardScheme.class, new getTableNames_resultStandardSchemeFactory());
8990 schemes.put(TupleScheme.class, new getTableNames_resultTupleSchemeFactory());
8991 }
8992
8993 public List<ByteBuffer> success;
8994 public IOError io;
8995
8996
8997 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8998 SUCCESS((short)0, "success"),
8999 IO((short)1, "io");
9000
9001 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9002
9003 static {
9004 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9005 byName.put(field.getFieldName(), field);
9006 }
9007 }
9008
9009
9010
9011
9012 public static _Fields findByThriftId(int fieldId) {
9013 switch(fieldId) {
9014 case 0:
9015 return SUCCESS;
9016 case 1:
9017 return IO;
9018 default:
9019 return null;
9020 }
9021 }
9022
9023
9024
9025
9026
9027 public static _Fields findByThriftIdOrThrow(int fieldId) {
9028 _Fields fields = findByThriftId(fieldId);
9029 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9030 return fields;
9031 }
9032
9033
9034
9035
9036 public static _Fields findByName(String name) {
9037 return byName.get(name);
9038 }
9039
9040 private final short _thriftId;
9041 private final String _fieldName;
9042
9043 _Fields(short thriftId, String fieldName) {
9044 _thriftId = thriftId;
9045 _fieldName = fieldName;
9046 }
9047
9048 public short getThriftFieldId() {
9049 return _thriftId;
9050 }
9051
9052 public String getFieldName() {
9053 return _fieldName;
9054 }
9055 }
9056
9057
9058 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9059 static {
9060 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9061 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9062 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
9063 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
9064 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
9065 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9066 metaDataMap = Collections.unmodifiableMap(tmpMap);
9067 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableNames_result.class, metaDataMap);
9068 }
9069
9070 public getTableNames_result() {
9071 }
9072
9073 public getTableNames_result(
9074 List<ByteBuffer> success,
9075 IOError io)
9076 {
9077 this();
9078 this.success = success;
9079 this.io = io;
9080 }
9081
9082
9083
9084
9085 public getTableNames_result(getTableNames_result other) {
9086 if (other.isSetSuccess()) {
9087 List<ByteBuffer> __this__success = new ArrayList<ByteBuffer>();
9088 for (ByteBuffer other_element : other.success) {
9089 __this__success.add(other_element);
9090 }
9091 this.success = __this__success;
9092 }
9093 if (other.isSetIo()) {
9094 this.io = new IOError(other.io);
9095 }
9096 }
9097
9098 public getTableNames_result deepCopy() {
9099 return new getTableNames_result(this);
9100 }
9101
9102 @Override
9103 public void clear() {
9104 this.success = null;
9105 this.io = null;
9106 }
9107
9108 public int getSuccessSize() {
9109 return (this.success == null) ? 0 : this.success.size();
9110 }
9111
9112 public java.util.Iterator<ByteBuffer> getSuccessIterator() {
9113 return (this.success == null) ? null : this.success.iterator();
9114 }
9115
9116 public void addToSuccess(ByteBuffer elem) {
9117 if (this.success == null) {
9118 this.success = new ArrayList<ByteBuffer>();
9119 }
9120 this.success.add(elem);
9121 }
9122
9123 public List<ByteBuffer> getSuccess() {
9124 return this.success;
9125 }
9126
9127 public getTableNames_result setSuccess(List<ByteBuffer> success) {
9128 this.success = success;
9129 return this;
9130 }
9131
9132 public void unsetSuccess() {
9133 this.success = null;
9134 }
9135
9136
9137 public boolean isSetSuccess() {
9138 return this.success != null;
9139 }
9140
9141 public void setSuccessIsSet(boolean value) {
9142 if (!value) {
9143 this.success = null;
9144 }
9145 }
9146
9147 public IOError getIo() {
9148 return this.io;
9149 }
9150
9151 public getTableNames_result setIo(IOError io) {
9152 this.io = io;
9153 return this;
9154 }
9155
9156 public void unsetIo() {
9157 this.io = null;
9158 }
9159
9160
9161 public boolean isSetIo() {
9162 return this.io != null;
9163 }
9164
9165 public void setIoIsSet(boolean value) {
9166 if (!value) {
9167 this.io = null;
9168 }
9169 }
9170
9171 public void setFieldValue(_Fields field, Object value) {
9172 switch (field) {
9173 case SUCCESS:
9174 if (value == null) {
9175 unsetSuccess();
9176 } else {
9177 setSuccess((List<ByteBuffer>)value);
9178 }
9179 break;
9180
9181 case IO:
9182 if (value == null) {
9183 unsetIo();
9184 } else {
9185 setIo((IOError)value);
9186 }
9187 break;
9188
9189 }
9190 }
9191
9192 public Object getFieldValue(_Fields field) {
9193 switch (field) {
9194 case SUCCESS:
9195 return getSuccess();
9196
9197 case IO:
9198 return getIo();
9199
9200 }
9201 throw new IllegalStateException();
9202 }
9203
9204
9205 public boolean isSet(_Fields field) {
9206 if (field == null) {
9207 throw new IllegalArgumentException();
9208 }
9209
9210 switch (field) {
9211 case SUCCESS:
9212 return isSetSuccess();
9213 case IO:
9214 return isSetIo();
9215 }
9216 throw new IllegalStateException();
9217 }
9218
9219 @Override
9220 public boolean equals(Object that) {
9221 if (that == null)
9222 return false;
9223 if (that instanceof getTableNames_result)
9224 return this.equals((getTableNames_result)that);
9225 return false;
9226 }
9227
9228 public boolean equals(getTableNames_result that) {
9229 if (that == null)
9230 return false;
9231
9232 boolean this_present_success = true && this.isSetSuccess();
9233 boolean that_present_success = true && that.isSetSuccess();
9234 if (this_present_success || that_present_success) {
9235 if (!(this_present_success && that_present_success))
9236 return false;
9237 if (!this.success.equals(that.success))
9238 return false;
9239 }
9240
9241 boolean this_present_io = true && this.isSetIo();
9242 boolean that_present_io = true && that.isSetIo();
9243 if (this_present_io || that_present_io) {
9244 if (!(this_present_io && that_present_io))
9245 return false;
9246 if (!this.io.equals(that.io))
9247 return false;
9248 }
9249
9250 return true;
9251 }
9252
9253 @Override
9254 public int hashCode() {
9255 HashCodeBuilder builder = new HashCodeBuilder();
9256
9257 boolean present_success = true && (isSetSuccess());
9258 builder.append(present_success);
9259 if (present_success)
9260 builder.append(success);
9261
9262 boolean present_io = true && (isSetIo());
9263 builder.append(present_io);
9264 if (present_io)
9265 builder.append(io);
9266
9267 return builder.toHashCode();
9268 }
9269
9270 public int compareTo(getTableNames_result other) {
9271 if (!getClass().equals(other.getClass())) {
9272 return getClass().getName().compareTo(other.getClass().getName());
9273 }
9274
9275 int lastComparison = 0;
9276 getTableNames_result typedOther = (getTableNames_result)other;
9277
9278 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9279 if (lastComparison != 0) {
9280 return lastComparison;
9281 }
9282 if (isSetSuccess()) {
9283 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9284 if (lastComparison != 0) {
9285 return lastComparison;
9286 }
9287 }
9288 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
9289 if (lastComparison != 0) {
9290 return lastComparison;
9291 }
9292 if (isSetIo()) {
9293 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
9294 if (lastComparison != 0) {
9295 return lastComparison;
9296 }
9297 }
9298 return 0;
9299 }
9300
9301 public _Fields fieldForId(int fieldId) {
9302 return _Fields.findByThriftId(fieldId);
9303 }
9304
9305 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9306 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9307 }
9308
9309 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9310 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9311 }
9312
9313 @Override
9314 public String toString() {
9315 StringBuilder sb = new StringBuilder("getTableNames_result(");
9316 boolean first = true;
9317
9318 sb.append("success:");
9319 if (this.success == null) {
9320 sb.append("null");
9321 } else {
9322 sb.append(this.success);
9323 }
9324 first = false;
9325 if (!first) sb.append(", ");
9326 sb.append("io:");
9327 if (this.io == null) {
9328 sb.append("null");
9329 } else {
9330 sb.append(this.io);
9331 }
9332 first = false;
9333 sb.append(")");
9334 return sb.toString();
9335 }
9336
9337 public void validate() throws org.apache.thrift.TException {
9338
9339
9340 }
9341
9342 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9343 try {
9344 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9345 } catch (org.apache.thrift.TException te) {
9346 throw new java.io.IOException(te);
9347 }
9348 }
9349
9350 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9351 try {
9352 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9353 } catch (org.apache.thrift.TException te) {
9354 throw new java.io.IOException(te);
9355 }
9356 }
9357
9358 private static class getTableNames_resultStandardSchemeFactory implements SchemeFactory {
9359 public getTableNames_resultStandardScheme getScheme() {
9360 return new getTableNames_resultStandardScheme();
9361 }
9362 }
9363
9364 private static class getTableNames_resultStandardScheme extends StandardScheme<getTableNames_result> {
9365
9366 public void read(org.apache.thrift.protocol.TProtocol iprot, getTableNames_result struct) throws org.apache.thrift.TException {
9367 org.apache.thrift.protocol.TField schemeField;
9368 iprot.readStructBegin();
9369 while (true)
9370 {
9371 schemeField = iprot.readFieldBegin();
9372 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9373 break;
9374 }
9375 switch (schemeField.id) {
9376 case 0:
9377 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9378 {
9379 org.apache.thrift.protocol.TList _list50 = iprot.readListBegin();
9380 struct.success = new ArrayList<ByteBuffer>(_list50.size);
9381 for (int _i51 = 0; _i51 < _list50.size; ++_i51)
9382 {
9383 ByteBuffer _elem52;
9384 _elem52 = iprot.readBinary();
9385 struct.success.add(_elem52);
9386 }
9387 iprot.readListEnd();
9388 }
9389 struct.setSuccessIsSet(true);
9390 } else {
9391 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9392 }
9393 break;
9394 case 1:
9395 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
9396 struct.io = new IOError();
9397 struct.io.read(iprot);
9398 struct.setIoIsSet(true);
9399 } else {
9400 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9401 }
9402 break;
9403 default:
9404 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9405 }
9406 iprot.readFieldEnd();
9407 }
9408 iprot.readStructEnd();
9409
9410
9411 struct.validate();
9412 }
9413
9414 public void write(org.apache.thrift.protocol.TProtocol oprot, getTableNames_result struct) throws org.apache.thrift.TException {
9415 struct.validate();
9416
9417 oprot.writeStructBegin(STRUCT_DESC);
9418 if (struct.success != null) {
9419 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9420 {
9421 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size()));
9422 for (ByteBuffer _iter53 : struct.success)
9423 {
9424 oprot.writeBinary(_iter53);
9425 }
9426 oprot.writeListEnd();
9427 }
9428 oprot.writeFieldEnd();
9429 }
9430 if (struct.io != null) {
9431 oprot.writeFieldBegin(IO_FIELD_DESC);
9432 struct.io.write(oprot);
9433 oprot.writeFieldEnd();
9434 }
9435 oprot.writeFieldStop();
9436 oprot.writeStructEnd();
9437 }
9438
9439 }
9440
9441 private static class getTableNames_resultTupleSchemeFactory implements SchemeFactory {
9442 public getTableNames_resultTupleScheme getScheme() {
9443 return new getTableNames_resultTupleScheme();
9444 }
9445 }
9446
9447 private static class getTableNames_resultTupleScheme extends TupleScheme<getTableNames_result> {
9448
9449 @Override
9450 public void write(org.apache.thrift.protocol.TProtocol prot, getTableNames_result struct) throws org.apache.thrift.TException {
9451 TTupleProtocol oprot = (TTupleProtocol) prot;
9452 BitSet optionals = new BitSet();
9453 if (struct.isSetSuccess()) {
9454 optionals.set(0);
9455 }
9456 if (struct.isSetIo()) {
9457 optionals.set(1);
9458 }
9459 oprot.writeBitSet(optionals, 2);
9460 if (struct.isSetSuccess()) {
9461 {
9462 oprot.writeI32(struct.success.size());
9463 for (ByteBuffer _iter54 : struct.success)
9464 {
9465 oprot.writeBinary(_iter54);
9466 }
9467 }
9468 }
9469 if (struct.isSetIo()) {
9470 struct.io.write(oprot);
9471 }
9472 }
9473
9474 @Override
9475 public void read(org.apache.thrift.protocol.TProtocol prot, getTableNames_result struct) throws org.apache.thrift.TException {
9476 TTupleProtocol iprot = (TTupleProtocol) prot;
9477 BitSet incoming = iprot.readBitSet(2);
9478 if (incoming.get(0)) {
9479 {
9480 org.apache.thrift.protocol.TList _list55 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9481 struct.success = new ArrayList<ByteBuffer>(_list55.size);
9482 for (int _i56 = 0; _i56 < _list55.size; ++_i56)
9483 {
9484 ByteBuffer _elem57;
9485 _elem57 = iprot.readBinary();
9486 struct.success.add(_elem57);
9487 }
9488 }
9489 struct.setSuccessIsSet(true);
9490 }
9491 if (incoming.get(1)) {
9492 struct.io = new IOError();
9493 struct.io.read(iprot);
9494 struct.setIoIsSet(true);
9495 }
9496 }
9497 }
9498
9499 }
9500
9501 public static class getColumnDescriptors_args implements org.apache.thrift.TBase<getColumnDescriptors_args, getColumnDescriptors_args._Fields>, java.io.Serializable, Cloneable {
9502 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getColumnDescriptors_args");
9503
9504 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
9505
9506 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9507 static {
9508 schemes.put(StandardScheme.class, new getColumnDescriptors_argsStandardSchemeFactory());
9509 schemes.put(TupleScheme.class, new getColumnDescriptors_argsTupleSchemeFactory());
9510 }
9511
9512
9513
9514
9515 public ByteBuffer tableName;
9516
9517
9518 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9519
9520
9521
9522 TABLE_NAME((short)1, "tableName");
9523
9524 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9525
9526 static {
9527 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9528 byName.put(field.getFieldName(), field);
9529 }
9530 }
9531
9532
9533
9534
9535 public static _Fields findByThriftId(int fieldId) {
9536 switch(fieldId) {
9537 case 1:
9538 return TABLE_NAME;
9539 default:
9540 return null;
9541 }
9542 }
9543
9544
9545
9546
9547
9548 public static _Fields findByThriftIdOrThrow(int fieldId) {
9549 _Fields fields = findByThriftId(fieldId);
9550 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9551 return fields;
9552 }
9553
9554
9555
9556
9557 public static _Fields findByName(String name) {
9558 return byName.get(name);
9559 }
9560
9561 private final short _thriftId;
9562 private final String _fieldName;
9563
9564 _Fields(short thriftId, String fieldName) {
9565 _thriftId = thriftId;
9566 _fieldName = fieldName;
9567 }
9568
9569 public short getThriftFieldId() {
9570 return _thriftId;
9571 }
9572
9573 public String getFieldName() {
9574 return _fieldName;
9575 }
9576 }
9577
9578
9579 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9580 static {
9581 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9582 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
9583 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
9584 metaDataMap = Collections.unmodifiableMap(tmpMap);
9585 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getColumnDescriptors_args.class, metaDataMap);
9586 }
9587
9588 public getColumnDescriptors_args() {
9589 }
9590
9591 public getColumnDescriptors_args(
9592 ByteBuffer tableName)
9593 {
9594 this();
9595 this.tableName = tableName;
9596 }
9597
9598
9599
9600
9601 public getColumnDescriptors_args(getColumnDescriptors_args other) {
9602 if (other.isSetTableName()) {
9603 this.tableName = other.tableName;
9604 }
9605 }
9606
9607 public getColumnDescriptors_args deepCopy() {
9608 return new getColumnDescriptors_args(this);
9609 }
9610
9611 @Override
9612 public void clear() {
9613 this.tableName = null;
9614 }
9615
9616
9617
9618
9619 public byte[] getTableName() {
9620 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
9621 return tableName == null ? null : tableName.array();
9622 }
9623
9624 public ByteBuffer bufferForTableName() {
9625 return tableName;
9626 }
9627
9628
9629
9630
9631 public getColumnDescriptors_args setTableName(byte[] tableName) {
9632 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
9633 return this;
9634 }
9635
9636 public getColumnDescriptors_args setTableName(ByteBuffer tableName) {
9637 this.tableName = tableName;
9638 return this;
9639 }
9640
9641 public void unsetTableName() {
9642 this.tableName = null;
9643 }
9644
9645
9646 public boolean isSetTableName() {
9647 return this.tableName != null;
9648 }
9649
9650 public void setTableNameIsSet(boolean value) {
9651 if (!value) {
9652 this.tableName = null;
9653 }
9654 }
9655
9656 public void setFieldValue(_Fields field, Object value) {
9657 switch (field) {
9658 case TABLE_NAME:
9659 if (value == null) {
9660 unsetTableName();
9661 } else {
9662 setTableName((ByteBuffer)value);
9663 }
9664 break;
9665
9666 }
9667 }
9668
9669 public Object getFieldValue(_Fields field) {
9670 switch (field) {
9671 case TABLE_NAME:
9672 return getTableName();
9673
9674 }
9675 throw new IllegalStateException();
9676 }
9677
9678
9679 public boolean isSet(_Fields field) {
9680 if (field == null) {
9681 throw new IllegalArgumentException();
9682 }
9683
9684 switch (field) {
9685 case TABLE_NAME:
9686 return isSetTableName();
9687 }
9688 throw new IllegalStateException();
9689 }
9690
9691 @Override
9692 public boolean equals(Object that) {
9693 if (that == null)
9694 return false;
9695 if (that instanceof getColumnDescriptors_args)
9696 return this.equals((getColumnDescriptors_args)that);
9697 return false;
9698 }
9699
9700 public boolean equals(getColumnDescriptors_args that) {
9701 if (that == null)
9702 return false;
9703
9704 boolean this_present_tableName = true && this.isSetTableName();
9705 boolean that_present_tableName = true && that.isSetTableName();
9706 if (this_present_tableName || that_present_tableName) {
9707 if (!(this_present_tableName && that_present_tableName))
9708 return false;
9709 if (!this.tableName.equals(that.tableName))
9710 return false;
9711 }
9712
9713 return true;
9714 }
9715
9716 @Override
9717 public int hashCode() {
9718 HashCodeBuilder builder = new HashCodeBuilder();
9719
9720 boolean present_tableName = true && (isSetTableName());
9721 builder.append(present_tableName);
9722 if (present_tableName)
9723 builder.append(tableName);
9724
9725 return builder.toHashCode();
9726 }
9727
9728 public int compareTo(getColumnDescriptors_args other) {
9729 if (!getClass().equals(other.getClass())) {
9730 return getClass().getName().compareTo(other.getClass().getName());
9731 }
9732
9733 int lastComparison = 0;
9734 getColumnDescriptors_args typedOther = (getColumnDescriptors_args)other;
9735
9736 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
9737 if (lastComparison != 0) {
9738 return lastComparison;
9739 }
9740 if (isSetTableName()) {
9741 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
9742 if (lastComparison != 0) {
9743 return lastComparison;
9744 }
9745 }
9746 return 0;
9747 }
9748
9749 public _Fields fieldForId(int fieldId) {
9750 return _Fields.findByThriftId(fieldId);
9751 }
9752
9753 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9754 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9755 }
9756
9757 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9758 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9759 }
9760
9761 @Override
9762 public String toString() {
9763 StringBuilder sb = new StringBuilder("getColumnDescriptors_args(");
9764 boolean first = true;
9765
9766 sb.append("tableName:");
9767 if (this.tableName == null) {
9768 sb.append("null");
9769 } else {
9770 sb.append(this.tableName);
9771 }
9772 first = false;
9773 sb.append(")");
9774 return sb.toString();
9775 }
9776
9777 public void validate() throws org.apache.thrift.TException {
9778
9779
9780 }
9781
9782 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9783 try {
9784 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9785 } catch (org.apache.thrift.TException te) {
9786 throw new java.io.IOException(te);
9787 }
9788 }
9789
9790 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9791 try {
9792 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9793 } catch (org.apache.thrift.TException te) {
9794 throw new java.io.IOException(te);
9795 }
9796 }
9797
9798 private static class getColumnDescriptors_argsStandardSchemeFactory implements SchemeFactory {
9799 public getColumnDescriptors_argsStandardScheme getScheme() {
9800 return new getColumnDescriptors_argsStandardScheme();
9801 }
9802 }
9803
9804 private static class getColumnDescriptors_argsStandardScheme extends StandardScheme<getColumnDescriptors_args> {
9805
9806 public void read(org.apache.thrift.protocol.TProtocol iprot, getColumnDescriptors_args struct) throws org.apache.thrift.TException {
9807 org.apache.thrift.protocol.TField schemeField;
9808 iprot.readStructBegin();
9809 while (true)
9810 {
9811 schemeField = iprot.readFieldBegin();
9812 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9813 break;
9814 }
9815 switch (schemeField.id) {
9816 case 1:
9817 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9818 struct.tableName = iprot.readBinary();
9819 struct.setTableNameIsSet(true);
9820 } else {
9821 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9822 }
9823 break;
9824 default:
9825 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9826 }
9827 iprot.readFieldEnd();
9828 }
9829 iprot.readStructEnd();
9830
9831
9832 struct.validate();
9833 }
9834
9835 public void write(org.apache.thrift.protocol.TProtocol oprot, getColumnDescriptors_args struct) throws org.apache.thrift.TException {
9836 struct.validate();
9837
9838 oprot.writeStructBegin(STRUCT_DESC);
9839 if (struct.tableName != null) {
9840 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
9841 oprot.writeBinary(struct.tableName);
9842 oprot.writeFieldEnd();
9843 }
9844 oprot.writeFieldStop();
9845 oprot.writeStructEnd();
9846 }
9847
9848 }
9849
9850 private static class getColumnDescriptors_argsTupleSchemeFactory implements SchemeFactory {
9851 public getColumnDescriptors_argsTupleScheme getScheme() {
9852 return new getColumnDescriptors_argsTupleScheme();
9853 }
9854 }
9855
9856 private static class getColumnDescriptors_argsTupleScheme extends TupleScheme<getColumnDescriptors_args> {
9857
9858 @Override
9859 public void write(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_args struct) throws org.apache.thrift.TException {
9860 TTupleProtocol oprot = (TTupleProtocol) prot;
9861 BitSet optionals = new BitSet();
9862 if (struct.isSetTableName()) {
9863 optionals.set(0);
9864 }
9865 oprot.writeBitSet(optionals, 1);
9866 if (struct.isSetTableName()) {
9867 oprot.writeBinary(struct.tableName);
9868 }
9869 }
9870
9871 @Override
9872 public void read(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_args struct) throws org.apache.thrift.TException {
9873 TTupleProtocol iprot = (TTupleProtocol) prot;
9874 BitSet incoming = iprot.readBitSet(1);
9875 if (incoming.get(0)) {
9876 struct.tableName = iprot.readBinary();
9877 struct.setTableNameIsSet(true);
9878 }
9879 }
9880 }
9881
9882 }
9883
9884 public static class getColumnDescriptors_result implements org.apache.thrift.TBase<getColumnDescriptors_result, getColumnDescriptors_result._Fields>, java.io.Serializable, Cloneable {
9885 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getColumnDescriptors_result");
9886
9887 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
9888 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9889
9890 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9891 static {
9892 schemes.put(StandardScheme.class, new getColumnDescriptors_resultStandardSchemeFactory());
9893 schemes.put(TupleScheme.class, new getColumnDescriptors_resultTupleSchemeFactory());
9894 }
9895
9896 public Map<ByteBuffer,ColumnDescriptor> success;
9897 public IOError io;
9898
9899
9900 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9901 SUCCESS((short)0, "success"),
9902 IO((short)1, "io");
9903
9904 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9905
9906 static {
9907 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9908 byName.put(field.getFieldName(), field);
9909 }
9910 }
9911
9912
9913
9914
9915 public static _Fields findByThriftId(int fieldId) {
9916 switch(fieldId) {
9917 case 0:
9918 return SUCCESS;
9919 case 1:
9920 return IO;
9921 default:
9922 return null;
9923 }
9924 }
9925
9926
9927
9928
9929
9930 public static _Fields findByThriftIdOrThrow(int fieldId) {
9931 _Fields fields = findByThriftId(fieldId);
9932 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9933 return fields;
9934 }
9935
9936
9937
9938
9939 public static _Fields findByName(String name) {
9940 return byName.get(name);
9941 }
9942
9943 private final short _thriftId;
9944 private final String _fieldName;
9945
9946 _Fields(short thriftId, String fieldName) {
9947 _thriftId = thriftId;
9948 _fieldName = fieldName;
9949 }
9950
9951 public short getThriftFieldId() {
9952 return _thriftId;
9953 }
9954
9955 public String getFieldName() {
9956 return _fieldName;
9957 }
9958 }
9959
9960
9961 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9962 static {
9963 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9964 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9965 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
9966 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
9967 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnDescriptor.class))));
9968 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
9969 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9970 metaDataMap = Collections.unmodifiableMap(tmpMap);
9971 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getColumnDescriptors_result.class, metaDataMap);
9972 }
9973
9974 public getColumnDescriptors_result() {
9975 }
9976
9977 public getColumnDescriptors_result(
9978 Map<ByteBuffer,ColumnDescriptor> success,
9979 IOError io)
9980 {
9981 this();
9982 this.success = success;
9983 this.io = io;
9984 }
9985
9986
9987
9988
9989 public getColumnDescriptors_result(getColumnDescriptors_result other) {
9990 if (other.isSetSuccess()) {
9991 Map<ByteBuffer,ColumnDescriptor> __this__success = new HashMap<ByteBuffer,ColumnDescriptor>();
9992 for (Map.Entry<ByteBuffer, ColumnDescriptor> other_element : other.success.entrySet()) {
9993
9994 ByteBuffer other_element_key = other_element.getKey();
9995 ColumnDescriptor other_element_value = other_element.getValue();
9996
9997 ByteBuffer __this__success_copy_key = other_element_key;
9998
9999 ColumnDescriptor __this__success_copy_value = new ColumnDescriptor(other_element_value);
10000
10001 __this__success.put(__this__success_copy_key, __this__success_copy_value);
10002 }
10003 this.success = __this__success;
10004 }
10005 if (other.isSetIo()) {
10006 this.io = new IOError(other.io);
10007 }
10008 }
10009
10010 public getColumnDescriptors_result deepCopy() {
10011 return new getColumnDescriptors_result(this);
10012 }
10013
10014 @Override
10015 public void clear() {
10016 this.success = null;
10017 this.io = null;
10018 }
10019
10020 public int getSuccessSize() {
10021 return (this.success == null) ? 0 : this.success.size();
10022 }
10023
10024 public void putToSuccess(ByteBuffer key, ColumnDescriptor val) {
10025 if (this.success == null) {
10026 this.success = new HashMap<ByteBuffer,ColumnDescriptor>();
10027 }
10028 this.success.put(key, val);
10029 }
10030
10031 public Map<ByteBuffer,ColumnDescriptor> getSuccess() {
10032 return this.success;
10033 }
10034
10035 public getColumnDescriptors_result setSuccess(Map<ByteBuffer,ColumnDescriptor> success) {
10036 this.success = success;
10037 return this;
10038 }
10039
10040 public void unsetSuccess() {
10041 this.success = null;
10042 }
10043
10044
10045 public boolean isSetSuccess() {
10046 return this.success != null;
10047 }
10048
10049 public void setSuccessIsSet(boolean value) {
10050 if (!value) {
10051 this.success = null;
10052 }
10053 }
10054
10055 public IOError getIo() {
10056 return this.io;
10057 }
10058
10059 public getColumnDescriptors_result setIo(IOError io) {
10060 this.io = io;
10061 return this;
10062 }
10063
10064 public void unsetIo() {
10065 this.io = null;
10066 }
10067
10068
10069 public boolean isSetIo() {
10070 return this.io != null;
10071 }
10072
10073 public void setIoIsSet(boolean value) {
10074 if (!value) {
10075 this.io = null;
10076 }
10077 }
10078
10079 public void setFieldValue(_Fields field, Object value) {
10080 switch (field) {
10081 case SUCCESS:
10082 if (value == null) {
10083 unsetSuccess();
10084 } else {
10085 setSuccess((Map<ByteBuffer,ColumnDescriptor>)value);
10086 }
10087 break;
10088
10089 case IO:
10090 if (value == null) {
10091 unsetIo();
10092 } else {
10093 setIo((IOError)value);
10094 }
10095 break;
10096
10097 }
10098 }
10099
10100 public Object getFieldValue(_Fields field) {
10101 switch (field) {
10102 case SUCCESS:
10103 return getSuccess();
10104
10105 case IO:
10106 return getIo();
10107
10108 }
10109 throw new IllegalStateException();
10110 }
10111
10112
10113 public boolean isSet(_Fields field) {
10114 if (field == null) {
10115 throw new IllegalArgumentException();
10116 }
10117
10118 switch (field) {
10119 case SUCCESS:
10120 return isSetSuccess();
10121 case IO:
10122 return isSetIo();
10123 }
10124 throw new IllegalStateException();
10125 }
10126
10127 @Override
10128 public boolean equals(Object that) {
10129 if (that == null)
10130 return false;
10131 if (that instanceof getColumnDescriptors_result)
10132 return this.equals((getColumnDescriptors_result)that);
10133 return false;
10134 }
10135
10136 public boolean equals(getColumnDescriptors_result that) {
10137 if (that == null)
10138 return false;
10139
10140 boolean this_present_success = true && this.isSetSuccess();
10141 boolean that_present_success = true && that.isSetSuccess();
10142 if (this_present_success || that_present_success) {
10143 if (!(this_present_success && that_present_success))
10144 return false;
10145 if (!this.success.equals(that.success))
10146 return false;
10147 }
10148
10149 boolean this_present_io = true && this.isSetIo();
10150 boolean that_present_io = true && that.isSetIo();
10151 if (this_present_io || that_present_io) {
10152 if (!(this_present_io && that_present_io))
10153 return false;
10154 if (!this.io.equals(that.io))
10155 return false;
10156 }
10157
10158 return true;
10159 }
10160
10161 @Override
10162 public int hashCode() {
10163 HashCodeBuilder builder = new HashCodeBuilder();
10164
10165 boolean present_success = true && (isSetSuccess());
10166 builder.append(present_success);
10167 if (present_success)
10168 builder.append(success);
10169
10170 boolean present_io = true && (isSetIo());
10171 builder.append(present_io);
10172 if (present_io)
10173 builder.append(io);
10174
10175 return builder.toHashCode();
10176 }
10177
10178 public int compareTo(getColumnDescriptors_result other) {
10179 if (!getClass().equals(other.getClass())) {
10180 return getClass().getName().compareTo(other.getClass().getName());
10181 }
10182
10183 int lastComparison = 0;
10184 getColumnDescriptors_result typedOther = (getColumnDescriptors_result)other;
10185
10186 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10187 if (lastComparison != 0) {
10188 return lastComparison;
10189 }
10190 if (isSetSuccess()) {
10191 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10192 if (lastComparison != 0) {
10193 return lastComparison;
10194 }
10195 }
10196 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
10197 if (lastComparison != 0) {
10198 return lastComparison;
10199 }
10200 if (isSetIo()) {
10201 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
10202 if (lastComparison != 0) {
10203 return lastComparison;
10204 }
10205 }
10206 return 0;
10207 }
10208
10209 public _Fields fieldForId(int fieldId) {
10210 return _Fields.findByThriftId(fieldId);
10211 }
10212
10213 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10214 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10215 }
10216
10217 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10218 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10219 }
10220
10221 @Override
10222 public String toString() {
10223 StringBuilder sb = new StringBuilder("getColumnDescriptors_result(");
10224 boolean first = true;
10225
10226 sb.append("success:");
10227 if (this.success == null) {
10228 sb.append("null");
10229 } else {
10230 sb.append(this.success);
10231 }
10232 first = false;
10233 if (!first) sb.append(", ");
10234 sb.append("io:");
10235 if (this.io == null) {
10236 sb.append("null");
10237 } else {
10238 sb.append(this.io);
10239 }
10240 first = false;
10241 sb.append(")");
10242 return sb.toString();
10243 }
10244
10245 public void validate() throws org.apache.thrift.TException {
10246
10247
10248 }
10249
10250 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10251 try {
10252 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10253 } catch (org.apache.thrift.TException te) {
10254 throw new java.io.IOException(te);
10255 }
10256 }
10257
10258 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10259 try {
10260 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10261 } catch (org.apache.thrift.TException te) {
10262 throw new java.io.IOException(te);
10263 }
10264 }
10265
10266 private static class getColumnDescriptors_resultStandardSchemeFactory implements SchemeFactory {
10267 public getColumnDescriptors_resultStandardScheme getScheme() {
10268 return new getColumnDescriptors_resultStandardScheme();
10269 }
10270 }
10271
10272 private static class getColumnDescriptors_resultStandardScheme extends StandardScheme<getColumnDescriptors_result> {
10273
10274 public void read(org.apache.thrift.protocol.TProtocol iprot, getColumnDescriptors_result struct) throws org.apache.thrift.TException {
10275 org.apache.thrift.protocol.TField schemeField;
10276 iprot.readStructBegin();
10277 while (true)
10278 {
10279 schemeField = iprot.readFieldBegin();
10280 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10281 break;
10282 }
10283 switch (schemeField.id) {
10284 case 0:
10285 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
10286 {
10287 org.apache.thrift.protocol.TMap _map58 = iprot.readMapBegin();
10288 struct.success = new HashMap<ByteBuffer,ColumnDescriptor>(2*_map58.size);
10289 for (int _i59 = 0; _i59 < _map58.size; ++_i59)
10290 {
10291 ByteBuffer _key60;
10292 ColumnDescriptor _val61;
10293 _key60 = iprot.readBinary();
10294 _val61 = new ColumnDescriptor();
10295 _val61.read(iprot);
10296 struct.success.put(_key60, _val61);
10297 }
10298 iprot.readMapEnd();
10299 }
10300 struct.setSuccessIsSet(true);
10301 } else {
10302 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10303 }
10304 break;
10305 case 1:
10306 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
10307 struct.io = new IOError();
10308 struct.io.read(iprot);
10309 struct.setIoIsSet(true);
10310 } else {
10311 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10312 }
10313 break;
10314 default:
10315 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10316 }
10317 iprot.readFieldEnd();
10318 }
10319 iprot.readStructEnd();
10320
10321
10322 struct.validate();
10323 }
10324
10325 public void write(org.apache.thrift.protocol.TProtocol oprot, getColumnDescriptors_result struct) throws org.apache.thrift.TException {
10326 struct.validate();
10327
10328 oprot.writeStructBegin(STRUCT_DESC);
10329 if (struct.success != null) {
10330 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10331 {
10332 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
10333 for (Map.Entry<ByteBuffer, ColumnDescriptor> _iter62 : struct.success.entrySet())
10334 {
10335 oprot.writeBinary(_iter62.getKey());
10336 _iter62.getValue().write(oprot);
10337 }
10338 oprot.writeMapEnd();
10339 }
10340 oprot.writeFieldEnd();
10341 }
10342 if (struct.io != null) {
10343 oprot.writeFieldBegin(IO_FIELD_DESC);
10344 struct.io.write(oprot);
10345 oprot.writeFieldEnd();
10346 }
10347 oprot.writeFieldStop();
10348 oprot.writeStructEnd();
10349 }
10350
10351 }
10352
10353 private static class getColumnDescriptors_resultTupleSchemeFactory implements SchemeFactory {
10354 public getColumnDescriptors_resultTupleScheme getScheme() {
10355 return new getColumnDescriptors_resultTupleScheme();
10356 }
10357 }
10358
10359 private static class getColumnDescriptors_resultTupleScheme extends TupleScheme<getColumnDescriptors_result> {
10360
10361 @Override
10362 public void write(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_result struct) throws org.apache.thrift.TException {
10363 TTupleProtocol oprot = (TTupleProtocol) prot;
10364 BitSet optionals = new BitSet();
10365 if (struct.isSetSuccess()) {
10366 optionals.set(0);
10367 }
10368 if (struct.isSetIo()) {
10369 optionals.set(1);
10370 }
10371 oprot.writeBitSet(optionals, 2);
10372 if (struct.isSetSuccess()) {
10373 {
10374 oprot.writeI32(struct.success.size());
10375 for (Map.Entry<ByteBuffer, ColumnDescriptor> _iter63 : struct.success.entrySet())
10376 {
10377 oprot.writeBinary(_iter63.getKey());
10378 _iter63.getValue().write(oprot);
10379 }
10380 }
10381 }
10382 if (struct.isSetIo()) {
10383 struct.io.write(oprot);
10384 }
10385 }
10386
10387 @Override
10388 public void read(org.apache.thrift.protocol.TProtocol prot, getColumnDescriptors_result struct) throws org.apache.thrift.TException {
10389 TTupleProtocol iprot = (TTupleProtocol) prot;
10390 BitSet incoming = iprot.readBitSet(2);
10391 if (incoming.get(0)) {
10392 {
10393 org.apache.thrift.protocol.TMap _map64 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
10394 struct.success = new HashMap<ByteBuffer,ColumnDescriptor>(2*_map64.size);
10395 for (int _i65 = 0; _i65 < _map64.size; ++_i65)
10396 {
10397 ByteBuffer _key66;
10398 ColumnDescriptor _val67;
10399 _key66 = iprot.readBinary();
10400 _val67 = new ColumnDescriptor();
10401 _val67.read(iprot);
10402 struct.success.put(_key66, _val67);
10403 }
10404 }
10405 struct.setSuccessIsSet(true);
10406 }
10407 if (incoming.get(1)) {
10408 struct.io = new IOError();
10409 struct.io.read(iprot);
10410 struct.setIoIsSet(true);
10411 }
10412 }
10413 }
10414
10415 }
10416
10417 public static class getTableRegions_args implements org.apache.thrift.TBase<getTableRegions_args, getTableRegions_args._Fields>, java.io.Serializable, Cloneable {
10418 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableRegions_args");
10419
10420 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
10421
10422 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10423 static {
10424 schemes.put(StandardScheme.class, new getTableRegions_argsStandardSchemeFactory());
10425 schemes.put(TupleScheme.class, new getTableRegions_argsTupleSchemeFactory());
10426 }
10427
10428
10429
10430
10431 public ByteBuffer tableName;
10432
10433
10434 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10435
10436
10437
10438 TABLE_NAME((short)1, "tableName");
10439
10440 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10441
10442 static {
10443 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10444 byName.put(field.getFieldName(), field);
10445 }
10446 }
10447
10448
10449
10450
10451 public static _Fields findByThriftId(int fieldId) {
10452 switch(fieldId) {
10453 case 1:
10454 return TABLE_NAME;
10455 default:
10456 return null;
10457 }
10458 }
10459
10460
10461
10462
10463
10464 public static _Fields findByThriftIdOrThrow(int fieldId) {
10465 _Fields fields = findByThriftId(fieldId);
10466 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10467 return fields;
10468 }
10469
10470
10471
10472
10473 public static _Fields findByName(String name) {
10474 return byName.get(name);
10475 }
10476
10477 private final short _thriftId;
10478 private final String _fieldName;
10479
10480 _Fields(short thriftId, String fieldName) {
10481 _thriftId = thriftId;
10482 _fieldName = fieldName;
10483 }
10484
10485 public short getThriftFieldId() {
10486 return _thriftId;
10487 }
10488
10489 public String getFieldName() {
10490 return _fieldName;
10491 }
10492 }
10493
10494
10495 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10496 static {
10497 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10498 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
10499 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
10500 metaDataMap = Collections.unmodifiableMap(tmpMap);
10501 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableRegions_args.class, metaDataMap);
10502 }
10503
10504 public getTableRegions_args() {
10505 }
10506
10507 public getTableRegions_args(
10508 ByteBuffer tableName)
10509 {
10510 this();
10511 this.tableName = tableName;
10512 }
10513
10514
10515
10516
10517 public getTableRegions_args(getTableRegions_args other) {
10518 if (other.isSetTableName()) {
10519 this.tableName = other.tableName;
10520 }
10521 }
10522
10523 public getTableRegions_args deepCopy() {
10524 return new getTableRegions_args(this);
10525 }
10526
10527 @Override
10528 public void clear() {
10529 this.tableName = null;
10530 }
10531
10532
10533
10534
10535 public byte[] getTableName() {
10536 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
10537 return tableName == null ? null : tableName.array();
10538 }
10539
10540 public ByteBuffer bufferForTableName() {
10541 return tableName;
10542 }
10543
10544
10545
10546
10547 public getTableRegions_args setTableName(byte[] tableName) {
10548 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
10549 return this;
10550 }
10551
10552 public getTableRegions_args setTableName(ByteBuffer tableName) {
10553 this.tableName = tableName;
10554 return this;
10555 }
10556
10557 public void unsetTableName() {
10558 this.tableName = null;
10559 }
10560
10561
10562 public boolean isSetTableName() {
10563 return this.tableName != null;
10564 }
10565
10566 public void setTableNameIsSet(boolean value) {
10567 if (!value) {
10568 this.tableName = null;
10569 }
10570 }
10571
10572 public void setFieldValue(_Fields field, Object value) {
10573 switch (field) {
10574 case TABLE_NAME:
10575 if (value == null) {
10576 unsetTableName();
10577 } else {
10578 setTableName((ByteBuffer)value);
10579 }
10580 break;
10581
10582 }
10583 }
10584
10585 public Object getFieldValue(_Fields field) {
10586 switch (field) {
10587 case TABLE_NAME:
10588 return getTableName();
10589
10590 }
10591 throw new IllegalStateException();
10592 }
10593
10594
10595 public boolean isSet(_Fields field) {
10596 if (field == null) {
10597 throw new IllegalArgumentException();
10598 }
10599
10600 switch (field) {
10601 case TABLE_NAME:
10602 return isSetTableName();
10603 }
10604 throw new IllegalStateException();
10605 }
10606
10607 @Override
10608 public boolean equals(Object that) {
10609 if (that == null)
10610 return false;
10611 if (that instanceof getTableRegions_args)
10612 return this.equals((getTableRegions_args)that);
10613 return false;
10614 }
10615
10616 public boolean equals(getTableRegions_args that) {
10617 if (that == null)
10618 return false;
10619
10620 boolean this_present_tableName = true && this.isSetTableName();
10621 boolean that_present_tableName = true && that.isSetTableName();
10622 if (this_present_tableName || that_present_tableName) {
10623 if (!(this_present_tableName && that_present_tableName))
10624 return false;
10625 if (!this.tableName.equals(that.tableName))
10626 return false;
10627 }
10628
10629 return true;
10630 }
10631
10632 @Override
10633 public int hashCode() {
10634 HashCodeBuilder builder = new HashCodeBuilder();
10635
10636 boolean present_tableName = true && (isSetTableName());
10637 builder.append(present_tableName);
10638 if (present_tableName)
10639 builder.append(tableName);
10640
10641 return builder.toHashCode();
10642 }
10643
10644 public int compareTo(getTableRegions_args other) {
10645 if (!getClass().equals(other.getClass())) {
10646 return getClass().getName().compareTo(other.getClass().getName());
10647 }
10648
10649 int lastComparison = 0;
10650 getTableRegions_args typedOther = (getTableRegions_args)other;
10651
10652 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
10653 if (lastComparison != 0) {
10654 return lastComparison;
10655 }
10656 if (isSetTableName()) {
10657 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
10658 if (lastComparison != 0) {
10659 return lastComparison;
10660 }
10661 }
10662 return 0;
10663 }
10664
10665 public _Fields fieldForId(int fieldId) {
10666 return _Fields.findByThriftId(fieldId);
10667 }
10668
10669 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10670 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10671 }
10672
10673 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10674 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10675 }
10676
10677 @Override
10678 public String toString() {
10679 StringBuilder sb = new StringBuilder("getTableRegions_args(");
10680 boolean first = true;
10681
10682 sb.append("tableName:");
10683 if (this.tableName == null) {
10684 sb.append("null");
10685 } else {
10686 sb.append(this.tableName);
10687 }
10688 first = false;
10689 sb.append(")");
10690 return sb.toString();
10691 }
10692
10693 public void validate() throws org.apache.thrift.TException {
10694
10695
10696 }
10697
10698 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10699 try {
10700 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10701 } catch (org.apache.thrift.TException te) {
10702 throw new java.io.IOException(te);
10703 }
10704 }
10705
10706 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10707 try {
10708 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10709 } catch (org.apache.thrift.TException te) {
10710 throw new java.io.IOException(te);
10711 }
10712 }
10713
10714 private static class getTableRegions_argsStandardSchemeFactory implements SchemeFactory {
10715 public getTableRegions_argsStandardScheme getScheme() {
10716 return new getTableRegions_argsStandardScheme();
10717 }
10718 }
10719
10720 private static class getTableRegions_argsStandardScheme extends StandardScheme<getTableRegions_args> {
10721
10722 public void read(org.apache.thrift.protocol.TProtocol iprot, getTableRegions_args struct) throws org.apache.thrift.TException {
10723 org.apache.thrift.protocol.TField schemeField;
10724 iprot.readStructBegin();
10725 while (true)
10726 {
10727 schemeField = iprot.readFieldBegin();
10728 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10729 break;
10730 }
10731 switch (schemeField.id) {
10732 case 1:
10733 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10734 struct.tableName = iprot.readBinary();
10735 struct.setTableNameIsSet(true);
10736 } else {
10737 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10738 }
10739 break;
10740 default:
10741 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10742 }
10743 iprot.readFieldEnd();
10744 }
10745 iprot.readStructEnd();
10746
10747
10748 struct.validate();
10749 }
10750
10751 public void write(org.apache.thrift.protocol.TProtocol oprot, getTableRegions_args struct) throws org.apache.thrift.TException {
10752 struct.validate();
10753
10754 oprot.writeStructBegin(STRUCT_DESC);
10755 if (struct.tableName != null) {
10756 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
10757 oprot.writeBinary(struct.tableName);
10758 oprot.writeFieldEnd();
10759 }
10760 oprot.writeFieldStop();
10761 oprot.writeStructEnd();
10762 }
10763
10764 }
10765
10766 private static class getTableRegions_argsTupleSchemeFactory implements SchemeFactory {
10767 public getTableRegions_argsTupleScheme getScheme() {
10768 return new getTableRegions_argsTupleScheme();
10769 }
10770 }
10771
10772 private static class getTableRegions_argsTupleScheme extends TupleScheme<getTableRegions_args> {
10773
10774 @Override
10775 public void write(org.apache.thrift.protocol.TProtocol prot, getTableRegions_args struct) throws org.apache.thrift.TException {
10776 TTupleProtocol oprot = (TTupleProtocol) prot;
10777 BitSet optionals = new BitSet();
10778 if (struct.isSetTableName()) {
10779 optionals.set(0);
10780 }
10781 oprot.writeBitSet(optionals, 1);
10782 if (struct.isSetTableName()) {
10783 oprot.writeBinary(struct.tableName);
10784 }
10785 }
10786
10787 @Override
10788 public void read(org.apache.thrift.protocol.TProtocol prot, getTableRegions_args struct) throws org.apache.thrift.TException {
10789 TTupleProtocol iprot = (TTupleProtocol) prot;
10790 BitSet incoming = iprot.readBitSet(1);
10791 if (incoming.get(0)) {
10792 struct.tableName = iprot.readBinary();
10793 struct.setTableNameIsSet(true);
10794 }
10795 }
10796 }
10797
10798 }
10799
10800 public static class getTableRegions_result implements org.apache.thrift.TBase<getTableRegions_result, getTableRegions_result._Fields>, java.io.Serializable, Cloneable {
10801 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTableRegions_result");
10802
10803 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
10804 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10805
10806 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10807 static {
10808 schemes.put(StandardScheme.class, new getTableRegions_resultStandardSchemeFactory());
10809 schemes.put(TupleScheme.class, new getTableRegions_resultTupleSchemeFactory());
10810 }
10811
10812 public List<TRegionInfo> success;
10813 public IOError io;
10814
10815
10816 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10817 SUCCESS((short)0, "success"),
10818 IO((short)1, "io");
10819
10820 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10821
10822 static {
10823 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10824 byName.put(field.getFieldName(), field);
10825 }
10826 }
10827
10828
10829
10830
10831 public static _Fields findByThriftId(int fieldId) {
10832 switch(fieldId) {
10833 case 0:
10834 return SUCCESS;
10835 case 1:
10836 return IO;
10837 default:
10838 return null;
10839 }
10840 }
10841
10842
10843
10844
10845
10846 public static _Fields findByThriftIdOrThrow(int fieldId) {
10847 _Fields fields = findByThriftId(fieldId);
10848 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10849 return fields;
10850 }
10851
10852
10853
10854
10855 public static _Fields findByName(String name) {
10856 return byName.get(name);
10857 }
10858
10859 private final short _thriftId;
10860 private final String _fieldName;
10861
10862 _Fields(short thriftId, String fieldName) {
10863 _thriftId = thriftId;
10864 _fieldName = fieldName;
10865 }
10866
10867 public short getThriftFieldId() {
10868 return _thriftId;
10869 }
10870
10871 public String getFieldName() {
10872 return _fieldName;
10873 }
10874 }
10875
10876
10877 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10878 static {
10879 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10880 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10881 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
10882 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRegionInfo.class))));
10883 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
10884 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10885 metaDataMap = Collections.unmodifiableMap(tmpMap);
10886 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTableRegions_result.class, metaDataMap);
10887 }
10888
10889 public getTableRegions_result() {
10890 }
10891
10892 public getTableRegions_result(
10893 List<TRegionInfo> success,
10894 IOError io)
10895 {
10896 this();
10897 this.success = success;
10898 this.io = io;
10899 }
10900
10901
10902
10903
10904 public getTableRegions_result(getTableRegions_result other) {
10905 if (other.isSetSuccess()) {
10906 List<TRegionInfo> __this__success = new ArrayList<TRegionInfo>();
10907 for (TRegionInfo other_element : other.success) {
10908 __this__success.add(new TRegionInfo(other_element));
10909 }
10910 this.success = __this__success;
10911 }
10912 if (other.isSetIo()) {
10913 this.io = new IOError(other.io);
10914 }
10915 }
10916
10917 public getTableRegions_result deepCopy() {
10918 return new getTableRegions_result(this);
10919 }
10920
10921 @Override
10922 public void clear() {
10923 this.success = null;
10924 this.io = null;
10925 }
10926
10927 public int getSuccessSize() {
10928 return (this.success == null) ? 0 : this.success.size();
10929 }
10930
10931 public java.util.Iterator<TRegionInfo> getSuccessIterator() {
10932 return (this.success == null) ? null : this.success.iterator();
10933 }
10934
10935 public void addToSuccess(TRegionInfo elem) {
10936 if (this.success == null) {
10937 this.success = new ArrayList<TRegionInfo>();
10938 }
10939 this.success.add(elem);
10940 }
10941
10942 public List<TRegionInfo> getSuccess() {
10943 return this.success;
10944 }
10945
10946 public getTableRegions_result setSuccess(List<TRegionInfo> success) {
10947 this.success = success;
10948 return this;
10949 }
10950
10951 public void unsetSuccess() {
10952 this.success = null;
10953 }
10954
10955
10956 public boolean isSetSuccess() {
10957 return this.success != null;
10958 }
10959
10960 public void setSuccessIsSet(boolean value) {
10961 if (!value) {
10962 this.success = null;
10963 }
10964 }
10965
10966 public IOError getIo() {
10967 return this.io;
10968 }
10969
10970 public getTableRegions_result setIo(IOError io) {
10971 this.io = io;
10972 return this;
10973 }
10974
10975 public void unsetIo() {
10976 this.io = null;
10977 }
10978
10979
10980 public boolean isSetIo() {
10981 return this.io != null;
10982 }
10983
10984 public void setIoIsSet(boolean value) {
10985 if (!value) {
10986 this.io = null;
10987 }
10988 }
10989
10990 public void setFieldValue(_Fields field, Object value) {
10991 switch (field) {
10992 case SUCCESS:
10993 if (value == null) {
10994 unsetSuccess();
10995 } else {
10996 setSuccess((List<TRegionInfo>)value);
10997 }
10998 break;
10999
11000 case IO:
11001 if (value == null) {
11002 unsetIo();
11003 } else {
11004 setIo((IOError)value);
11005 }
11006 break;
11007
11008 }
11009 }
11010
11011 public Object getFieldValue(_Fields field) {
11012 switch (field) {
11013 case SUCCESS:
11014 return getSuccess();
11015
11016 case IO:
11017 return getIo();
11018
11019 }
11020 throw new IllegalStateException();
11021 }
11022
11023
11024 public boolean isSet(_Fields field) {
11025 if (field == null) {
11026 throw new IllegalArgumentException();
11027 }
11028
11029 switch (field) {
11030 case SUCCESS:
11031 return isSetSuccess();
11032 case IO:
11033 return isSetIo();
11034 }
11035 throw new IllegalStateException();
11036 }
11037
11038 @Override
11039 public boolean equals(Object that) {
11040 if (that == null)
11041 return false;
11042 if (that instanceof getTableRegions_result)
11043 return this.equals((getTableRegions_result)that);
11044 return false;
11045 }
11046
11047 public boolean equals(getTableRegions_result that) {
11048 if (that == null)
11049 return false;
11050
11051 boolean this_present_success = true && this.isSetSuccess();
11052 boolean that_present_success = true && that.isSetSuccess();
11053 if (this_present_success || that_present_success) {
11054 if (!(this_present_success && that_present_success))
11055 return false;
11056 if (!this.success.equals(that.success))
11057 return false;
11058 }
11059
11060 boolean this_present_io = true && this.isSetIo();
11061 boolean that_present_io = true && that.isSetIo();
11062 if (this_present_io || that_present_io) {
11063 if (!(this_present_io && that_present_io))
11064 return false;
11065 if (!this.io.equals(that.io))
11066 return false;
11067 }
11068
11069 return true;
11070 }
11071
11072 @Override
11073 public int hashCode() {
11074 HashCodeBuilder builder = new HashCodeBuilder();
11075
11076 boolean present_success = true && (isSetSuccess());
11077 builder.append(present_success);
11078 if (present_success)
11079 builder.append(success);
11080
11081 boolean present_io = true && (isSetIo());
11082 builder.append(present_io);
11083 if (present_io)
11084 builder.append(io);
11085
11086 return builder.toHashCode();
11087 }
11088
11089 public int compareTo(getTableRegions_result other) {
11090 if (!getClass().equals(other.getClass())) {
11091 return getClass().getName().compareTo(other.getClass().getName());
11092 }
11093
11094 int lastComparison = 0;
11095 getTableRegions_result typedOther = (getTableRegions_result)other;
11096
11097 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11098 if (lastComparison != 0) {
11099 return lastComparison;
11100 }
11101 if (isSetSuccess()) {
11102 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11103 if (lastComparison != 0) {
11104 return lastComparison;
11105 }
11106 }
11107 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
11108 if (lastComparison != 0) {
11109 return lastComparison;
11110 }
11111 if (isSetIo()) {
11112 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
11113 if (lastComparison != 0) {
11114 return lastComparison;
11115 }
11116 }
11117 return 0;
11118 }
11119
11120 public _Fields fieldForId(int fieldId) {
11121 return _Fields.findByThriftId(fieldId);
11122 }
11123
11124 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11125 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11126 }
11127
11128 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11129 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11130 }
11131
11132 @Override
11133 public String toString() {
11134 StringBuilder sb = new StringBuilder("getTableRegions_result(");
11135 boolean first = true;
11136
11137 sb.append("success:");
11138 if (this.success == null) {
11139 sb.append("null");
11140 } else {
11141 sb.append(this.success);
11142 }
11143 first = false;
11144 if (!first) sb.append(", ");
11145 sb.append("io:");
11146 if (this.io == null) {
11147 sb.append("null");
11148 } else {
11149 sb.append(this.io);
11150 }
11151 first = false;
11152 sb.append(")");
11153 return sb.toString();
11154 }
11155
11156 public void validate() throws org.apache.thrift.TException {
11157
11158
11159 }
11160
11161 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11162 try {
11163 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11164 } catch (org.apache.thrift.TException te) {
11165 throw new java.io.IOException(te);
11166 }
11167 }
11168
11169 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11170 try {
11171 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11172 } catch (org.apache.thrift.TException te) {
11173 throw new java.io.IOException(te);
11174 }
11175 }
11176
11177 private static class getTableRegions_resultStandardSchemeFactory implements SchemeFactory {
11178 public getTableRegions_resultStandardScheme getScheme() {
11179 return new getTableRegions_resultStandardScheme();
11180 }
11181 }
11182
11183 private static class getTableRegions_resultStandardScheme extends StandardScheme<getTableRegions_result> {
11184
11185 public void read(org.apache.thrift.protocol.TProtocol iprot, getTableRegions_result struct) throws org.apache.thrift.TException {
11186 org.apache.thrift.protocol.TField schemeField;
11187 iprot.readStructBegin();
11188 while (true)
11189 {
11190 schemeField = iprot.readFieldBegin();
11191 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11192 break;
11193 }
11194 switch (schemeField.id) {
11195 case 0:
11196 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
11197 {
11198 org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
11199 struct.success = new ArrayList<TRegionInfo>(_list68.size);
11200 for (int _i69 = 0; _i69 < _list68.size; ++_i69)
11201 {
11202 TRegionInfo _elem70;
11203 _elem70 = new TRegionInfo();
11204 _elem70.read(iprot);
11205 struct.success.add(_elem70);
11206 }
11207 iprot.readListEnd();
11208 }
11209 struct.setSuccessIsSet(true);
11210 } else {
11211 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11212 }
11213 break;
11214 case 1:
11215 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
11216 struct.io = new IOError();
11217 struct.io.read(iprot);
11218 struct.setIoIsSet(true);
11219 } else {
11220 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11221 }
11222 break;
11223 default:
11224 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11225 }
11226 iprot.readFieldEnd();
11227 }
11228 iprot.readStructEnd();
11229
11230
11231 struct.validate();
11232 }
11233
11234 public void write(org.apache.thrift.protocol.TProtocol oprot, getTableRegions_result struct) throws org.apache.thrift.TException {
11235 struct.validate();
11236
11237 oprot.writeStructBegin(STRUCT_DESC);
11238 if (struct.success != null) {
11239 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11240 {
11241 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
11242 for (TRegionInfo _iter71 : struct.success)
11243 {
11244 _iter71.write(oprot);
11245 }
11246 oprot.writeListEnd();
11247 }
11248 oprot.writeFieldEnd();
11249 }
11250 if (struct.io != null) {
11251 oprot.writeFieldBegin(IO_FIELD_DESC);
11252 struct.io.write(oprot);
11253 oprot.writeFieldEnd();
11254 }
11255 oprot.writeFieldStop();
11256 oprot.writeStructEnd();
11257 }
11258
11259 }
11260
11261 private static class getTableRegions_resultTupleSchemeFactory implements SchemeFactory {
11262 public getTableRegions_resultTupleScheme getScheme() {
11263 return new getTableRegions_resultTupleScheme();
11264 }
11265 }
11266
11267 private static class getTableRegions_resultTupleScheme extends TupleScheme<getTableRegions_result> {
11268
11269 @Override
11270 public void write(org.apache.thrift.protocol.TProtocol prot, getTableRegions_result struct) throws org.apache.thrift.TException {
11271 TTupleProtocol oprot = (TTupleProtocol) prot;
11272 BitSet optionals = new BitSet();
11273 if (struct.isSetSuccess()) {
11274 optionals.set(0);
11275 }
11276 if (struct.isSetIo()) {
11277 optionals.set(1);
11278 }
11279 oprot.writeBitSet(optionals, 2);
11280 if (struct.isSetSuccess()) {
11281 {
11282 oprot.writeI32(struct.success.size());
11283 for (TRegionInfo _iter72 : struct.success)
11284 {
11285 _iter72.write(oprot);
11286 }
11287 }
11288 }
11289 if (struct.isSetIo()) {
11290 struct.io.write(oprot);
11291 }
11292 }
11293
11294 @Override
11295 public void read(org.apache.thrift.protocol.TProtocol prot, getTableRegions_result struct) throws org.apache.thrift.TException {
11296 TTupleProtocol iprot = (TTupleProtocol) prot;
11297 BitSet incoming = iprot.readBitSet(2);
11298 if (incoming.get(0)) {
11299 {
11300 org.apache.thrift.protocol.TList _list73 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
11301 struct.success = new ArrayList<TRegionInfo>(_list73.size);
11302 for (int _i74 = 0; _i74 < _list73.size; ++_i74)
11303 {
11304 TRegionInfo _elem75;
11305 _elem75 = new TRegionInfo();
11306 _elem75.read(iprot);
11307 struct.success.add(_elem75);
11308 }
11309 }
11310 struct.setSuccessIsSet(true);
11311 }
11312 if (incoming.get(1)) {
11313 struct.io = new IOError();
11314 struct.io.read(iprot);
11315 struct.setIoIsSet(true);
11316 }
11317 }
11318 }
11319
11320 }
11321
11322 public static class createTable_args implements org.apache.thrift.TBase<createTable_args, createTable_args._Fields>, java.io.Serializable, Cloneable {
11323 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTable_args");
11324
11325 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
11326 private static final org.apache.thrift.protocol.TField COLUMN_FAMILIES_FIELD_DESC = new org.apache.thrift.protocol.TField("columnFamilies", org.apache.thrift.protocol.TType.LIST, (short)2);
11327
11328 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11329 static {
11330 schemes.put(StandardScheme.class, new createTable_argsStandardSchemeFactory());
11331 schemes.put(TupleScheme.class, new createTable_argsTupleSchemeFactory());
11332 }
11333
11334
11335
11336
11337 public ByteBuffer tableName;
11338
11339
11340
11341 public List<ColumnDescriptor> columnFamilies;
11342
11343
11344 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11345
11346
11347
11348 TABLE_NAME((short)1, "tableName"),
11349
11350
11351
11352 COLUMN_FAMILIES((short)2, "columnFamilies");
11353
11354 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11355
11356 static {
11357 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11358 byName.put(field.getFieldName(), field);
11359 }
11360 }
11361
11362
11363
11364
11365 public static _Fields findByThriftId(int fieldId) {
11366 switch(fieldId) {
11367 case 1:
11368 return TABLE_NAME;
11369 case 2:
11370 return COLUMN_FAMILIES;
11371 default:
11372 return null;
11373 }
11374 }
11375
11376
11377
11378
11379
11380 public static _Fields findByThriftIdOrThrow(int fieldId) {
11381 _Fields fields = findByThriftId(fieldId);
11382 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11383 return fields;
11384 }
11385
11386
11387
11388
11389 public static _Fields findByName(String name) {
11390 return byName.get(name);
11391 }
11392
11393 private final short _thriftId;
11394 private final String _fieldName;
11395
11396 _Fields(short thriftId, String fieldName) {
11397 _thriftId = thriftId;
11398 _fieldName = fieldName;
11399 }
11400
11401 public short getThriftFieldId() {
11402 return _thriftId;
11403 }
11404
11405 public String getFieldName() {
11406 return _fieldName;
11407 }
11408 }
11409
11410
11411 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11412 static {
11413 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11414 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
11415 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
11416 tmpMap.put(_Fields.COLUMN_FAMILIES, new org.apache.thrift.meta_data.FieldMetaData("columnFamilies", org.apache.thrift.TFieldRequirementType.DEFAULT,
11417 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
11418 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnDescriptor.class))));
11419 metaDataMap = Collections.unmodifiableMap(tmpMap);
11420 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_args.class, metaDataMap);
11421 }
11422
11423 public createTable_args() {
11424 }
11425
11426 public createTable_args(
11427 ByteBuffer tableName,
11428 List<ColumnDescriptor> columnFamilies)
11429 {
11430 this();
11431 this.tableName = tableName;
11432 this.columnFamilies = columnFamilies;
11433 }
11434
11435
11436
11437
11438 public createTable_args(createTable_args other) {
11439 if (other.isSetTableName()) {
11440 this.tableName = other.tableName;
11441 }
11442 if (other.isSetColumnFamilies()) {
11443 List<ColumnDescriptor> __this__columnFamilies = new ArrayList<ColumnDescriptor>();
11444 for (ColumnDescriptor other_element : other.columnFamilies) {
11445 __this__columnFamilies.add(new ColumnDescriptor(other_element));
11446 }
11447 this.columnFamilies = __this__columnFamilies;
11448 }
11449 }
11450
11451 public createTable_args deepCopy() {
11452 return new createTable_args(this);
11453 }
11454
11455 @Override
11456 public void clear() {
11457 this.tableName = null;
11458 this.columnFamilies = null;
11459 }
11460
11461
11462
11463
11464 public byte[] getTableName() {
11465 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
11466 return tableName == null ? null : tableName.array();
11467 }
11468
11469 public ByteBuffer bufferForTableName() {
11470 return tableName;
11471 }
11472
11473
11474
11475
11476 public createTable_args setTableName(byte[] tableName) {
11477 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
11478 return this;
11479 }
11480
11481 public createTable_args setTableName(ByteBuffer tableName) {
11482 this.tableName = tableName;
11483 return this;
11484 }
11485
11486 public void unsetTableName() {
11487 this.tableName = null;
11488 }
11489
11490
11491 public boolean isSetTableName() {
11492 return this.tableName != null;
11493 }
11494
11495 public void setTableNameIsSet(boolean value) {
11496 if (!value) {
11497 this.tableName = null;
11498 }
11499 }
11500
11501 public int getColumnFamiliesSize() {
11502 return (this.columnFamilies == null) ? 0 : this.columnFamilies.size();
11503 }
11504
11505 public java.util.Iterator<ColumnDescriptor> getColumnFamiliesIterator() {
11506 return (this.columnFamilies == null) ? null : this.columnFamilies.iterator();
11507 }
11508
11509 public void addToColumnFamilies(ColumnDescriptor elem) {
11510 if (this.columnFamilies == null) {
11511 this.columnFamilies = new ArrayList<ColumnDescriptor>();
11512 }
11513 this.columnFamilies.add(elem);
11514 }
11515
11516
11517
11518
11519 public List<ColumnDescriptor> getColumnFamilies() {
11520 return this.columnFamilies;
11521 }
11522
11523
11524
11525
11526 public createTable_args setColumnFamilies(List<ColumnDescriptor> columnFamilies) {
11527 this.columnFamilies = columnFamilies;
11528 return this;
11529 }
11530
11531 public void unsetColumnFamilies() {
11532 this.columnFamilies = null;
11533 }
11534
11535
11536 public boolean isSetColumnFamilies() {
11537 return this.columnFamilies != null;
11538 }
11539
11540 public void setColumnFamiliesIsSet(boolean value) {
11541 if (!value) {
11542 this.columnFamilies = null;
11543 }
11544 }
11545
11546 public void setFieldValue(_Fields field, Object value) {
11547 switch (field) {
11548 case TABLE_NAME:
11549 if (value == null) {
11550 unsetTableName();
11551 } else {
11552 setTableName((ByteBuffer)value);
11553 }
11554 break;
11555
11556 case COLUMN_FAMILIES:
11557 if (value == null) {
11558 unsetColumnFamilies();
11559 } else {
11560 setColumnFamilies((List<ColumnDescriptor>)value);
11561 }
11562 break;
11563
11564 }
11565 }
11566
11567 public Object getFieldValue(_Fields field) {
11568 switch (field) {
11569 case TABLE_NAME:
11570 return getTableName();
11571
11572 case COLUMN_FAMILIES:
11573 return getColumnFamilies();
11574
11575 }
11576 throw new IllegalStateException();
11577 }
11578
11579
11580 public boolean isSet(_Fields field) {
11581 if (field == null) {
11582 throw new IllegalArgumentException();
11583 }
11584
11585 switch (field) {
11586 case TABLE_NAME:
11587 return isSetTableName();
11588 case COLUMN_FAMILIES:
11589 return isSetColumnFamilies();
11590 }
11591 throw new IllegalStateException();
11592 }
11593
11594 @Override
11595 public boolean equals(Object that) {
11596 if (that == null)
11597 return false;
11598 if (that instanceof createTable_args)
11599 return this.equals((createTable_args)that);
11600 return false;
11601 }
11602
11603 public boolean equals(createTable_args that) {
11604 if (that == null)
11605 return false;
11606
11607 boolean this_present_tableName = true && this.isSetTableName();
11608 boolean that_present_tableName = true && that.isSetTableName();
11609 if (this_present_tableName || that_present_tableName) {
11610 if (!(this_present_tableName && that_present_tableName))
11611 return false;
11612 if (!this.tableName.equals(that.tableName))
11613 return false;
11614 }
11615
11616 boolean this_present_columnFamilies = true && this.isSetColumnFamilies();
11617 boolean that_present_columnFamilies = true && that.isSetColumnFamilies();
11618 if (this_present_columnFamilies || that_present_columnFamilies) {
11619 if (!(this_present_columnFamilies && that_present_columnFamilies))
11620 return false;
11621 if (!this.columnFamilies.equals(that.columnFamilies))
11622 return false;
11623 }
11624
11625 return true;
11626 }
11627
11628 @Override
11629 public int hashCode() {
11630 HashCodeBuilder builder = new HashCodeBuilder();
11631
11632 boolean present_tableName = true && (isSetTableName());
11633 builder.append(present_tableName);
11634 if (present_tableName)
11635 builder.append(tableName);
11636
11637 boolean present_columnFamilies = true && (isSetColumnFamilies());
11638 builder.append(present_columnFamilies);
11639 if (present_columnFamilies)
11640 builder.append(columnFamilies);
11641
11642 return builder.toHashCode();
11643 }
11644
11645 public int compareTo(createTable_args other) {
11646 if (!getClass().equals(other.getClass())) {
11647 return getClass().getName().compareTo(other.getClass().getName());
11648 }
11649
11650 int lastComparison = 0;
11651 createTable_args typedOther = (createTable_args)other;
11652
11653 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
11654 if (lastComparison != 0) {
11655 return lastComparison;
11656 }
11657 if (isSetTableName()) {
11658 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
11659 if (lastComparison != 0) {
11660 return lastComparison;
11661 }
11662 }
11663 lastComparison = Boolean.valueOf(isSetColumnFamilies()).compareTo(typedOther.isSetColumnFamilies());
11664 if (lastComparison != 0) {
11665 return lastComparison;
11666 }
11667 if (isSetColumnFamilies()) {
11668 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnFamilies, typedOther.columnFamilies);
11669 if (lastComparison != 0) {
11670 return lastComparison;
11671 }
11672 }
11673 return 0;
11674 }
11675
11676 public _Fields fieldForId(int fieldId) {
11677 return _Fields.findByThriftId(fieldId);
11678 }
11679
11680 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11681 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11682 }
11683
11684 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11685 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11686 }
11687
11688 @Override
11689 public String toString() {
11690 StringBuilder sb = new StringBuilder("createTable_args(");
11691 boolean first = true;
11692
11693 sb.append("tableName:");
11694 if (this.tableName == null) {
11695 sb.append("null");
11696 } else {
11697 sb.append(this.tableName);
11698 }
11699 first = false;
11700 if (!first) sb.append(", ");
11701 sb.append("columnFamilies:");
11702 if (this.columnFamilies == null) {
11703 sb.append("null");
11704 } else {
11705 sb.append(this.columnFamilies);
11706 }
11707 first = false;
11708 sb.append(")");
11709 return sb.toString();
11710 }
11711
11712 public void validate() throws org.apache.thrift.TException {
11713
11714
11715 }
11716
11717 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11718 try {
11719 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11720 } catch (org.apache.thrift.TException te) {
11721 throw new java.io.IOException(te);
11722 }
11723 }
11724
11725 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11726 try {
11727 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11728 } catch (org.apache.thrift.TException te) {
11729 throw new java.io.IOException(te);
11730 }
11731 }
11732
11733 private static class createTable_argsStandardSchemeFactory implements SchemeFactory {
11734 public createTable_argsStandardScheme getScheme() {
11735 return new createTable_argsStandardScheme();
11736 }
11737 }
11738
11739 private static class createTable_argsStandardScheme extends StandardScheme<createTable_args> {
11740
11741 public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_args struct) throws org.apache.thrift.TException {
11742 org.apache.thrift.protocol.TField schemeField;
11743 iprot.readStructBegin();
11744 while (true)
11745 {
11746 schemeField = iprot.readFieldBegin();
11747 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11748 break;
11749 }
11750 switch (schemeField.id) {
11751 case 1:
11752 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11753 struct.tableName = iprot.readBinary();
11754 struct.setTableNameIsSet(true);
11755 } else {
11756 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11757 }
11758 break;
11759 case 2:
11760 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
11761 {
11762 org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
11763 struct.columnFamilies = new ArrayList<ColumnDescriptor>(_list76.size);
11764 for (int _i77 = 0; _i77 < _list76.size; ++_i77)
11765 {
11766 ColumnDescriptor _elem78;
11767 _elem78 = new ColumnDescriptor();
11768 _elem78.read(iprot);
11769 struct.columnFamilies.add(_elem78);
11770 }
11771 iprot.readListEnd();
11772 }
11773 struct.setColumnFamiliesIsSet(true);
11774 } else {
11775 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11776 }
11777 break;
11778 default:
11779 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11780 }
11781 iprot.readFieldEnd();
11782 }
11783 iprot.readStructEnd();
11784
11785
11786 struct.validate();
11787 }
11788
11789 public void write(org.apache.thrift.protocol.TProtocol oprot, createTable_args struct) throws org.apache.thrift.TException {
11790 struct.validate();
11791
11792 oprot.writeStructBegin(STRUCT_DESC);
11793 if (struct.tableName != null) {
11794 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
11795 oprot.writeBinary(struct.tableName);
11796 oprot.writeFieldEnd();
11797 }
11798 if (struct.columnFamilies != null) {
11799 oprot.writeFieldBegin(COLUMN_FAMILIES_FIELD_DESC);
11800 {
11801 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.columnFamilies.size()));
11802 for (ColumnDescriptor _iter79 : struct.columnFamilies)
11803 {
11804 _iter79.write(oprot);
11805 }
11806 oprot.writeListEnd();
11807 }
11808 oprot.writeFieldEnd();
11809 }
11810 oprot.writeFieldStop();
11811 oprot.writeStructEnd();
11812 }
11813
11814 }
11815
11816 private static class createTable_argsTupleSchemeFactory implements SchemeFactory {
11817 public createTable_argsTupleScheme getScheme() {
11818 return new createTable_argsTupleScheme();
11819 }
11820 }
11821
11822 private static class createTable_argsTupleScheme extends TupleScheme<createTable_args> {
11823
11824 @Override
11825 public void write(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException {
11826 TTupleProtocol oprot = (TTupleProtocol) prot;
11827 BitSet optionals = new BitSet();
11828 if (struct.isSetTableName()) {
11829 optionals.set(0);
11830 }
11831 if (struct.isSetColumnFamilies()) {
11832 optionals.set(1);
11833 }
11834 oprot.writeBitSet(optionals, 2);
11835 if (struct.isSetTableName()) {
11836 oprot.writeBinary(struct.tableName);
11837 }
11838 if (struct.isSetColumnFamilies()) {
11839 {
11840 oprot.writeI32(struct.columnFamilies.size());
11841 for (ColumnDescriptor _iter80 : struct.columnFamilies)
11842 {
11843 _iter80.write(oprot);
11844 }
11845 }
11846 }
11847 }
11848
11849 @Override
11850 public void read(org.apache.thrift.protocol.TProtocol prot, createTable_args struct) throws org.apache.thrift.TException {
11851 TTupleProtocol iprot = (TTupleProtocol) prot;
11852 BitSet incoming = iprot.readBitSet(2);
11853 if (incoming.get(0)) {
11854 struct.tableName = iprot.readBinary();
11855 struct.setTableNameIsSet(true);
11856 }
11857 if (incoming.get(1)) {
11858 {
11859 org.apache.thrift.protocol.TList _list81 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
11860 struct.columnFamilies = new ArrayList<ColumnDescriptor>(_list81.size);
11861 for (int _i82 = 0; _i82 < _list81.size; ++_i82)
11862 {
11863 ColumnDescriptor _elem83;
11864 _elem83 = new ColumnDescriptor();
11865 _elem83.read(iprot);
11866 struct.columnFamilies.add(_elem83);
11867 }
11868 }
11869 struct.setColumnFamiliesIsSet(true);
11870 }
11871 }
11872 }
11873
11874 }
11875
11876 public static class createTable_result implements org.apache.thrift.TBase<createTable_result, createTable_result._Fields>, java.io.Serializable, Cloneable {
11877 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTable_result");
11878
11879 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
11880 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
11881 private static final org.apache.thrift.protocol.TField EXIST_FIELD_DESC = new org.apache.thrift.protocol.TField("exist", org.apache.thrift.protocol.TType.STRUCT, (short)3);
11882
11883 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11884 static {
11885 schemes.put(StandardScheme.class, new createTable_resultStandardSchemeFactory());
11886 schemes.put(TupleScheme.class, new createTable_resultTupleSchemeFactory());
11887 }
11888
11889 public IOError io;
11890 public IllegalArgument ia;
11891 public AlreadyExists exist;
11892
11893
11894 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11895 IO((short)1, "io"),
11896 IA((short)2, "ia"),
11897 EXIST((short)3, "exist");
11898
11899 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11900
11901 static {
11902 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11903 byName.put(field.getFieldName(), field);
11904 }
11905 }
11906
11907
11908
11909
11910 public static _Fields findByThriftId(int fieldId) {
11911 switch(fieldId) {
11912 case 1:
11913 return IO;
11914 case 2:
11915 return IA;
11916 case 3:
11917 return EXIST;
11918 default:
11919 return null;
11920 }
11921 }
11922
11923
11924
11925
11926
11927 public static _Fields findByThriftIdOrThrow(int fieldId) {
11928 _Fields fields = findByThriftId(fieldId);
11929 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11930 return fields;
11931 }
11932
11933
11934
11935
11936 public static _Fields findByName(String name) {
11937 return byName.get(name);
11938 }
11939
11940 private final short _thriftId;
11941 private final String _fieldName;
11942
11943 _Fields(short thriftId, String fieldName) {
11944 _thriftId = thriftId;
11945 _fieldName = fieldName;
11946 }
11947
11948 public short getThriftFieldId() {
11949 return _thriftId;
11950 }
11951
11952 public String getFieldName() {
11953 return _fieldName;
11954 }
11955 }
11956
11957
11958 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11959 static {
11960 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11961 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
11962 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11963 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT,
11964 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11965 tmpMap.put(_Fields.EXIST, new org.apache.thrift.meta_data.FieldMetaData("exist", org.apache.thrift.TFieldRequirementType.DEFAULT,
11966 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11967 metaDataMap = Collections.unmodifiableMap(tmpMap);
11968 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTable_result.class, metaDataMap);
11969 }
11970
11971 public createTable_result() {
11972 }
11973
11974 public createTable_result(
11975 IOError io,
11976 IllegalArgument ia,
11977 AlreadyExists exist)
11978 {
11979 this();
11980 this.io = io;
11981 this.ia = ia;
11982 this.exist = exist;
11983 }
11984
11985
11986
11987
11988 public createTable_result(createTable_result other) {
11989 if (other.isSetIo()) {
11990 this.io = new IOError(other.io);
11991 }
11992 if (other.isSetIa()) {
11993 this.ia = new IllegalArgument(other.ia);
11994 }
11995 if (other.isSetExist()) {
11996 this.exist = new AlreadyExists(other.exist);
11997 }
11998 }
11999
12000 public createTable_result deepCopy() {
12001 return new createTable_result(this);
12002 }
12003
12004 @Override
12005 public void clear() {
12006 this.io = null;
12007 this.ia = null;
12008 this.exist = null;
12009 }
12010
12011 public IOError getIo() {
12012 return this.io;
12013 }
12014
12015 public createTable_result setIo(IOError io) {
12016 this.io = io;
12017 return this;
12018 }
12019
12020 public void unsetIo() {
12021 this.io = null;
12022 }
12023
12024
12025 public boolean isSetIo() {
12026 return this.io != null;
12027 }
12028
12029 public void setIoIsSet(boolean value) {
12030 if (!value) {
12031 this.io = null;
12032 }
12033 }
12034
12035 public IllegalArgument getIa() {
12036 return this.ia;
12037 }
12038
12039 public createTable_result setIa(IllegalArgument ia) {
12040 this.ia = ia;
12041 return this;
12042 }
12043
12044 public void unsetIa() {
12045 this.ia = null;
12046 }
12047
12048
12049 public boolean isSetIa() {
12050 return this.ia != null;
12051 }
12052
12053 public void setIaIsSet(boolean value) {
12054 if (!value) {
12055 this.ia = null;
12056 }
12057 }
12058
12059 public AlreadyExists getExist() {
12060 return this.exist;
12061 }
12062
12063 public createTable_result setExist(AlreadyExists exist) {
12064 this.exist = exist;
12065 return this;
12066 }
12067
12068 public void unsetExist() {
12069 this.exist = null;
12070 }
12071
12072
12073 public boolean isSetExist() {
12074 return this.exist != null;
12075 }
12076
12077 public void setExistIsSet(boolean value) {
12078 if (!value) {
12079 this.exist = null;
12080 }
12081 }
12082
12083 public void setFieldValue(_Fields field, Object value) {
12084 switch (field) {
12085 case IO:
12086 if (value == null) {
12087 unsetIo();
12088 } else {
12089 setIo((IOError)value);
12090 }
12091 break;
12092
12093 case IA:
12094 if (value == null) {
12095 unsetIa();
12096 } else {
12097 setIa((IllegalArgument)value);
12098 }
12099 break;
12100
12101 case EXIST:
12102 if (value == null) {
12103 unsetExist();
12104 } else {
12105 setExist((AlreadyExists)value);
12106 }
12107 break;
12108
12109 }
12110 }
12111
12112 public Object getFieldValue(_Fields field) {
12113 switch (field) {
12114 case IO:
12115 return getIo();
12116
12117 case IA:
12118 return getIa();
12119
12120 case EXIST:
12121 return getExist();
12122
12123 }
12124 throw new IllegalStateException();
12125 }
12126
12127
12128 public boolean isSet(_Fields field) {
12129 if (field == null) {
12130 throw new IllegalArgumentException();
12131 }
12132
12133 switch (field) {
12134 case IO:
12135 return isSetIo();
12136 case IA:
12137 return isSetIa();
12138 case EXIST:
12139 return isSetExist();
12140 }
12141 throw new IllegalStateException();
12142 }
12143
12144 @Override
12145 public boolean equals(Object that) {
12146 if (that == null)
12147 return false;
12148 if (that instanceof createTable_result)
12149 return this.equals((createTable_result)that);
12150 return false;
12151 }
12152
12153 public boolean equals(createTable_result that) {
12154 if (that == null)
12155 return false;
12156
12157 boolean this_present_io = true && this.isSetIo();
12158 boolean that_present_io = true && that.isSetIo();
12159 if (this_present_io || that_present_io) {
12160 if (!(this_present_io && that_present_io))
12161 return false;
12162 if (!this.io.equals(that.io))
12163 return false;
12164 }
12165
12166 boolean this_present_ia = true && this.isSetIa();
12167 boolean that_present_ia = true && that.isSetIa();
12168 if (this_present_ia || that_present_ia) {
12169 if (!(this_present_ia && that_present_ia))
12170 return false;
12171 if (!this.ia.equals(that.ia))
12172 return false;
12173 }
12174
12175 boolean this_present_exist = true && this.isSetExist();
12176 boolean that_present_exist = true && that.isSetExist();
12177 if (this_present_exist || that_present_exist) {
12178 if (!(this_present_exist && that_present_exist))
12179 return false;
12180 if (!this.exist.equals(that.exist))
12181 return false;
12182 }
12183
12184 return true;
12185 }
12186
12187 @Override
12188 public int hashCode() {
12189 HashCodeBuilder builder = new HashCodeBuilder();
12190
12191 boolean present_io = true && (isSetIo());
12192 builder.append(present_io);
12193 if (present_io)
12194 builder.append(io);
12195
12196 boolean present_ia = true && (isSetIa());
12197 builder.append(present_ia);
12198 if (present_ia)
12199 builder.append(ia);
12200
12201 boolean present_exist = true && (isSetExist());
12202 builder.append(present_exist);
12203 if (present_exist)
12204 builder.append(exist);
12205
12206 return builder.toHashCode();
12207 }
12208
12209 public int compareTo(createTable_result other) {
12210 if (!getClass().equals(other.getClass())) {
12211 return getClass().getName().compareTo(other.getClass().getName());
12212 }
12213
12214 int lastComparison = 0;
12215 createTable_result typedOther = (createTable_result)other;
12216
12217 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
12218 if (lastComparison != 0) {
12219 return lastComparison;
12220 }
12221 if (isSetIo()) {
12222 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
12223 if (lastComparison != 0) {
12224 return lastComparison;
12225 }
12226 }
12227 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
12228 if (lastComparison != 0) {
12229 return lastComparison;
12230 }
12231 if (isSetIa()) {
12232 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
12233 if (lastComparison != 0) {
12234 return lastComparison;
12235 }
12236 }
12237 lastComparison = Boolean.valueOf(isSetExist()).compareTo(typedOther.isSetExist());
12238 if (lastComparison != 0) {
12239 return lastComparison;
12240 }
12241 if (isSetExist()) {
12242 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exist, typedOther.exist);
12243 if (lastComparison != 0) {
12244 return lastComparison;
12245 }
12246 }
12247 return 0;
12248 }
12249
12250 public _Fields fieldForId(int fieldId) {
12251 return _Fields.findByThriftId(fieldId);
12252 }
12253
12254 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12255 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12256 }
12257
12258 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12259 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12260 }
12261
12262 @Override
12263 public String toString() {
12264 StringBuilder sb = new StringBuilder("createTable_result(");
12265 boolean first = true;
12266
12267 sb.append("io:");
12268 if (this.io == null) {
12269 sb.append("null");
12270 } else {
12271 sb.append(this.io);
12272 }
12273 first = false;
12274 if (!first) sb.append(", ");
12275 sb.append("ia:");
12276 if (this.ia == null) {
12277 sb.append("null");
12278 } else {
12279 sb.append(this.ia);
12280 }
12281 first = false;
12282 if (!first) sb.append(", ");
12283 sb.append("exist:");
12284 if (this.exist == null) {
12285 sb.append("null");
12286 } else {
12287 sb.append(this.exist);
12288 }
12289 first = false;
12290 sb.append(")");
12291 return sb.toString();
12292 }
12293
12294 public void validate() throws org.apache.thrift.TException {
12295
12296
12297 }
12298
12299 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12300 try {
12301 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12302 } catch (org.apache.thrift.TException te) {
12303 throw new java.io.IOException(te);
12304 }
12305 }
12306
12307 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12308 try {
12309 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12310 } catch (org.apache.thrift.TException te) {
12311 throw new java.io.IOException(te);
12312 }
12313 }
12314
12315 private static class createTable_resultStandardSchemeFactory implements SchemeFactory {
12316 public createTable_resultStandardScheme getScheme() {
12317 return new createTable_resultStandardScheme();
12318 }
12319 }
12320
12321 private static class createTable_resultStandardScheme extends StandardScheme<createTable_result> {
12322
12323 public void read(org.apache.thrift.protocol.TProtocol iprot, createTable_result struct) throws org.apache.thrift.TException {
12324 org.apache.thrift.protocol.TField schemeField;
12325 iprot.readStructBegin();
12326 while (true)
12327 {
12328 schemeField = iprot.readFieldBegin();
12329 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12330 break;
12331 }
12332 switch (schemeField.id) {
12333 case 1:
12334 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12335 struct.io = new IOError();
12336 struct.io.read(iprot);
12337 struct.setIoIsSet(true);
12338 } else {
12339 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12340 }
12341 break;
12342 case 2:
12343 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12344 struct.ia = new IllegalArgument();
12345 struct.ia.read(iprot);
12346 struct.setIaIsSet(true);
12347 } else {
12348 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12349 }
12350 break;
12351 case 3:
12352 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
12353 struct.exist = new AlreadyExists();
12354 struct.exist.read(iprot);
12355 struct.setExistIsSet(true);
12356 } else {
12357 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12358 }
12359 break;
12360 default:
12361 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12362 }
12363 iprot.readFieldEnd();
12364 }
12365 iprot.readStructEnd();
12366
12367
12368 struct.validate();
12369 }
12370
12371 public void write(org.apache.thrift.protocol.TProtocol oprot, createTable_result struct) throws org.apache.thrift.TException {
12372 struct.validate();
12373
12374 oprot.writeStructBegin(STRUCT_DESC);
12375 if (struct.io != null) {
12376 oprot.writeFieldBegin(IO_FIELD_DESC);
12377 struct.io.write(oprot);
12378 oprot.writeFieldEnd();
12379 }
12380 if (struct.ia != null) {
12381 oprot.writeFieldBegin(IA_FIELD_DESC);
12382 struct.ia.write(oprot);
12383 oprot.writeFieldEnd();
12384 }
12385 if (struct.exist != null) {
12386 oprot.writeFieldBegin(EXIST_FIELD_DESC);
12387 struct.exist.write(oprot);
12388 oprot.writeFieldEnd();
12389 }
12390 oprot.writeFieldStop();
12391 oprot.writeStructEnd();
12392 }
12393
12394 }
12395
12396 private static class createTable_resultTupleSchemeFactory implements SchemeFactory {
12397 public createTable_resultTupleScheme getScheme() {
12398 return new createTable_resultTupleScheme();
12399 }
12400 }
12401
12402 private static class createTable_resultTupleScheme extends TupleScheme<createTable_result> {
12403
12404 @Override
12405 public void write(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException {
12406 TTupleProtocol oprot = (TTupleProtocol) prot;
12407 BitSet optionals = new BitSet();
12408 if (struct.isSetIo()) {
12409 optionals.set(0);
12410 }
12411 if (struct.isSetIa()) {
12412 optionals.set(1);
12413 }
12414 if (struct.isSetExist()) {
12415 optionals.set(2);
12416 }
12417 oprot.writeBitSet(optionals, 3);
12418 if (struct.isSetIo()) {
12419 struct.io.write(oprot);
12420 }
12421 if (struct.isSetIa()) {
12422 struct.ia.write(oprot);
12423 }
12424 if (struct.isSetExist()) {
12425 struct.exist.write(oprot);
12426 }
12427 }
12428
12429 @Override
12430 public void read(org.apache.thrift.protocol.TProtocol prot, createTable_result struct) throws org.apache.thrift.TException {
12431 TTupleProtocol iprot = (TTupleProtocol) prot;
12432 BitSet incoming = iprot.readBitSet(3);
12433 if (incoming.get(0)) {
12434 struct.io = new IOError();
12435 struct.io.read(iprot);
12436 struct.setIoIsSet(true);
12437 }
12438 if (incoming.get(1)) {
12439 struct.ia = new IllegalArgument();
12440 struct.ia.read(iprot);
12441 struct.setIaIsSet(true);
12442 }
12443 if (incoming.get(2)) {
12444 struct.exist = new AlreadyExists();
12445 struct.exist.read(iprot);
12446 struct.setExistIsSet(true);
12447 }
12448 }
12449 }
12450
12451 }
12452
12453 public static class deleteTable_args implements org.apache.thrift.TBase<deleteTable_args, deleteTable_args._Fields>, java.io.Serializable, Cloneable {
12454 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTable_args");
12455
12456 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
12457
12458 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12459 static {
12460 schemes.put(StandardScheme.class, new deleteTable_argsStandardSchemeFactory());
12461 schemes.put(TupleScheme.class, new deleteTable_argsTupleSchemeFactory());
12462 }
12463
12464
12465
12466
12467 public ByteBuffer tableName;
12468
12469
12470 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12471
12472
12473
12474 TABLE_NAME((short)1, "tableName");
12475
12476 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12477
12478 static {
12479 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12480 byName.put(field.getFieldName(), field);
12481 }
12482 }
12483
12484
12485
12486
12487 public static _Fields findByThriftId(int fieldId) {
12488 switch(fieldId) {
12489 case 1:
12490 return TABLE_NAME;
12491 default:
12492 return null;
12493 }
12494 }
12495
12496
12497
12498
12499
12500 public static _Fields findByThriftIdOrThrow(int fieldId) {
12501 _Fields fields = findByThriftId(fieldId);
12502 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12503 return fields;
12504 }
12505
12506
12507
12508
12509 public static _Fields findByName(String name) {
12510 return byName.get(name);
12511 }
12512
12513 private final short _thriftId;
12514 private final String _fieldName;
12515
12516 _Fields(short thriftId, String fieldName) {
12517 _thriftId = thriftId;
12518 _fieldName = fieldName;
12519 }
12520
12521 public short getThriftFieldId() {
12522 return _thriftId;
12523 }
12524
12525 public String getFieldName() {
12526 return _fieldName;
12527 }
12528 }
12529
12530
12531 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12532 static {
12533 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12534 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
12535 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
12536 metaDataMap = Collections.unmodifiableMap(tmpMap);
12537 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_args.class, metaDataMap);
12538 }
12539
12540 public deleteTable_args() {
12541 }
12542
12543 public deleteTable_args(
12544 ByteBuffer tableName)
12545 {
12546 this();
12547 this.tableName = tableName;
12548 }
12549
12550
12551
12552
12553 public deleteTable_args(deleteTable_args other) {
12554 if (other.isSetTableName()) {
12555 this.tableName = other.tableName;
12556 }
12557 }
12558
12559 public deleteTable_args deepCopy() {
12560 return new deleteTable_args(this);
12561 }
12562
12563 @Override
12564 public void clear() {
12565 this.tableName = null;
12566 }
12567
12568
12569
12570
12571 public byte[] getTableName() {
12572 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
12573 return tableName == null ? null : tableName.array();
12574 }
12575
12576 public ByteBuffer bufferForTableName() {
12577 return tableName;
12578 }
12579
12580
12581
12582
12583 public deleteTable_args setTableName(byte[] tableName) {
12584 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
12585 return this;
12586 }
12587
12588 public deleteTable_args setTableName(ByteBuffer tableName) {
12589 this.tableName = tableName;
12590 return this;
12591 }
12592
12593 public void unsetTableName() {
12594 this.tableName = null;
12595 }
12596
12597
12598 public boolean isSetTableName() {
12599 return this.tableName != null;
12600 }
12601
12602 public void setTableNameIsSet(boolean value) {
12603 if (!value) {
12604 this.tableName = null;
12605 }
12606 }
12607
12608 public void setFieldValue(_Fields field, Object value) {
12609 switch (field) {
12610 case TABLE_NAME:
12611 if (value == null) {
12612 unsetTableName();
12613 } else {
12614 setTableName((ByteBuffer)value);
12615 }
12616 break;
12617
12618 }
12619 }
12620
12621 public Object getFieldValue(_Fields field) {
12622 switch (field) {
12623 case TABLE_NAME:
12624 return getTableName();
12625
12626 }
12627 throw new IllegalStateException();
12628 }
12629
12630
12631 public boolean isSet(_Fields field) {
12632 if (field == null) {
12633 throw new IllegalArgumentException();
12634 }
12635
12636 switch (field) {
12637 case TABLE_NAME:
12638 return isSetTableName();
12639 }
12640 throw new IllegalStateException();
12641 }
12642
12643 @Override
12644 public boolean equals(Object that) {
12645 if (that == null)
12646 return false;
12647 if (that instanceof deleteTable_args)
12648 return this.equals((deleteTable_args)that);
12649 return false;
12650 }
12651
12652 public boolean equals(deleteTable_args that) {
12653 if (that == null)
12654 return false;
12655
12656 boolean this_present_tableName = true && this.isSetTableName();
12657 boolean that_present_tableName = true && that.isSetTableName();
12658 if (this_present_tableName || that_present_tableName) {
12659 if (!(this_present_tableName && that_present_tableName))
12660 return false;
12661 if (!this.tableName.equals(that.tableName))
12662 return false;
12663 }
12664
12665 return true;
12666 }
12667
12668 @Override
12669 public int hashCode() {
12670 HashCodeBuilder builder = new HashCodeBuilder();
12671
12672 boolean present_tableName = true && (isSetTableName());
12673 builder.append(present_tableName);
12674 if (present_tableName)
12675 builder.append(tableName);
12676
12677 return builder.toHashCode();
12678 }
12679
12680 public int compareTo(deleteTable_args other) {
12681 if (!getClass().equals(other.getClass())) {
12682 return getClass().getName().compareTo(other.getClass().getName());
12683 }
12684
12685 int lastComparison = 0;
12686 deleteTable_args typedOther = (deleteTable_args)other;
12687
12688 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
12689 if (lastComparison != 0) {
12690 return lastComparison;
12691 }
12692 if (isSetTableName()) {
12693 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
12694 if (lastComparison != 0) {
12695 return lastComparison;
12696 }
12697 }
12698 return 0;
12699 }
12700
12701 public _Fields fieldForId(int fieldId) {
12702 return _Fields.findByThriftId(fieldId);
12703 }
12704
12705 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12706 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12707 }
12708
12709 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12710 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12711 }
12712
12713 @Override
12714 public String toString() {
12715 StringBuilder sb = new StringBuilder("deleteTable_args(");
12716 boolean first = true;
12717
12718 sb.append("tableName:");
12719 if (this.tableName == null) {
12720 sb.append("null");
12721 } else {
12722 sb.append(this.tableName);
12723 }
12724 first = false;
12725 sb.append(")");
12726 return sb.toString();
12727 }
12728
12729 public void validate() throws org.apache.thrift.TException {
12730
12731
12732 }
12733
12734 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12735 try {
12736 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12737 } catch (org.apache.thrift.TException te) {
12738 throw new java.io.IOException(te);
12739 }
12740 }
12741
12742 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12743 try {
12744 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12745 } catch (org.apache.thrift.TException te) {
12746 throw new java.io.IOException(te);
12747 }
12748 }
12749
12750 private static class deleteTable_argsStandardSchemeFactory implements SchemeFactory {
12751 public deleteTable_argsStandardScheme getScheme() {
12752 return new deleteTable_argsStandardScheme();
12753 }
12754 }
12755
12756 private static class deleteTable_argsStandardScheme extends StandardScheme<deleteTable_args> {
12757
12758 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_args struct) throws org.apache.thrift.TException {
12759 org.apache.thrift.protocol.TField schemeField;
12760 iprot.readStructBegin();
12761 while (true)
12762 {
12763 schemeField = iprot.readFieldBegin();
12764 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12765 break;
12766 }
12767 switch (schemeField.id) {
12768 case 1:
12769 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12770 struct.tableName = iprot.readBinary();
12771 struct.setTableNameIsSet(true);
12772 } else {
12773 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12774 }
12775 break;
12776 default:
12777 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12778 }
12779 iprot.readFieldEnd();
12780 }
12781 iprot.readStructEnd();
12782
12783
12784 struct.validate();
12785 }
12786
12787 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_args struct) throws org.apache.thrift.TException {
12788 struct.validate();
12789
12790 oprot.writeStructBegin(STRUCT_DESC);
12791 if (struct.tableName != null) {
12792 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
12793 oprot.writeBinary(struct.tableName);
12794 oprot.writeFieldEnd();
12795 }
12796 oprot.writeFieldStop();
12797 oprot.writeStructEnd();
12798 }
12799
12800 }
12801
12802 private static class deleteTable_argsTupleSchemeFactory implements SchemeFactory {
12803 public deleteTable_argsTupleScheme getScheme() {
12804 return new deleteTable_argsTupleScheme();
12805 }
12806 }
12807
12808 private static class deleteTable_argsTupleScheme extends TupleScheme<deleteTable_args> {
12809
12810 @Override
12811 public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException {
12812 TTupleProtocol oprot = (TTupleProtocol) prot;
12813 BitSet optionals = new BitSet();
12814 if (struct.isSetTableName()) {
12815 optionals.set(0);
12816 }
12817 oprot.writeBitSet(optionals, 1);
12818 if (struct.isSetTableName()) {
12819 oprot.writeBinary(struct.tableName);
12820 }
12821 }
12822
12823 @Override
12824 public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_args struct) throws org.apache.thrift.TException {
12825 TTupleProtocol iprot = (TTupleProtocol) prot;
12826 BitSet incoming = iprot.readBitSet(1);
12827 if (incoming.get(0)) {
12828 struct.tableName = iprot.readBinary();
12829 struct.setTableNameIsSet(true);
12830 }
12831 }
12832 }
12833
12834 }
12835
12836 public static class deleteTable_result implements org.apache.thrift.TBase<deleteTable_result, deleteTable_result._Fields>, java.io.Serializable, Cloneable {
12837 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteTable_result");
12838
12839 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
12840
12841 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12842 static {
12843 schemes.put(StandardScheme.class, new deleteTable_resultStandardSchemeFactory());
12844 schemes.put(TupleScheme.class, new deleteTable_resultTupleSchemeFactory());
12845 }
12846
12847 public IOError io;
12848
12849
12850 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12851 IO((short)1, "io");
12852
12853 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12854
12855 static {
12856 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12857 byName.put(field.getFieldName(), field);
12858 }
12859 }
12860
12861
12862
12863
12864 public static _Fields findByThriftId(int fieldId) {
12865 switch(fieldId) {
12866 case 1:
12867 return IO;
12868 default:
12869 return null;
12870 }
12871 }
12872
12873
12874
12875
12876
12877 public static _Fields findByThriftIdOrThrow(int fieldId) {
12878 _Fields fields = findByThriftId(fieldId);
12879 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12880 return fields;
12881 }
12882
12883
12884
12885
12886 public static _Fields findByName(String name) {
12887 return byName.get(name);
12888 }
12889
12890 private final short _thriftId;
12891 private final String _fieldName;
12892
12893 _Fields(short thriftId, String fieldName) {
12894 _thriftId = thriftId;
12895 _fieldName = fieldName;
12896 }
12897
12898 public short getThriftFieldId() {
12899 return _thriftId;
12900 }
12901
12902 public String getFieldName() {
12903 return _fieldName;
12904 }
12905 }
12906
12907
12908 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12909 static {
12910 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12911 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
12912 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12913 metaDataMap = Collections.unmodifiableMap(tmpMap);
12914 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteTable_result.class, metaDataMap);
12915 }
12916
12917 public deleteTable_result() {
12918 }
12919
12920 public deleteTable_result(
12921 IOError io)
12922 {
12923 this();
12924 this.io = io;
12925 }
12926
12927
12928
12929
12930 public deleteTable_result(deleteTable_result other) {
12931 if (other.isSetIo()) {
12932 this.io = new IOError(other.io);
12933 }
12934 }
12935
12936 public deleteTable_result deepCopy() {
12937 return new deleteTable_result(this);
12938 }
12939
12940 @Override
12941 public void clear() {
12942 this.io = null;
12943 }
12944
12945 public IOError getIo() {
12946 return this.io;
12947 }
12948
12949 public deleteTable_result setIo(IOError io) {
12950 this.io = io;
12951 return this;
12952 }
12953
12954 public void unsetIo() {
12955 this.io = null;
12956 }
12957
12958
12959 public boolean isSetIo() {
12960 return this.io != null;
12961 }
12962
12963 public void setIoIsSet(boolean value) {
12964 if (!value) {
12965 this.io = null;
12966 }
12967 }
12968
12969 public void setFieldValue(_Fields field, Object value) {
12970 switch (field) {
12971 case IO:
12972 if (value == null) {
12973 unsetIo();
12974 } else {
12975 setIo((IOError)value);
12976 }
12977 break;
12978
12979 }
12980 }
12981
12982 public Object getFieldValue(_Fields field) {
12983 switch (field) {
12984 case IO:
12985 return getIo();
12986
12987 }
12988 throw new IllegalStateException();
12989 }
12990
12991
12992 public boolean isSet(_Fields field) {
12993 if (field == null) {
12994 throw new IllegalArgumentException();
12995 }
12996
12997 switch (field) {
12998 case IO:
12999 return isSetIo();
13000 }
13001 throw new IllegalStateException();
13002 }
13003
13004 @Override
13005 public boolean equals(Object that) {
13006 if (that == null)
13007 return false;
13008 if (that instanceof deleteTable_result)
13009 return this.equals((deleteTable_result)that);
13010 return false;
13011 }
13012
13013 public boolean equals(deleteTable_result that) {
13014 if (that == null)
13015 return false;
13016
13017 boolean this_present_io = true && this.isSetIo();
13018 boolean that_present_io = true && that.isSetIo();
13019 if (this_present_io || that_present_io) {
13020 if (!(this_present_io && that_present_io))
13021 return false;
13022 if (!this.io.equals(that.io))
13023 return false;
13024 }
13025
13026 return true;
13027 }
13028
13029 @Override
13030 public int hashCode() {
13031 HashCodeBuilder builder = new HashCodeBuilder();
13032
13033 boolean present_io = true && (isSetIo());
13034 builder.append(present_io);
13035 if (present_io)
13036 builder.append(io);
13037
13038 return builder.toHashCode();
13039 }
13040
13041 public int compareTo(deleteTable_result other) {
13042 if (!getClass().equals(other.getClass())) {
13043 return getClass().getName().compareTo(other.getClass().getName());
13044 }
13045
13046 int lastComparison = 0;
13047 deleteTable_result typedOther = (deleteTable_result)other;
13048
13049 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
13050 if (lastComparison != 0) {
13051 return lastComparison;
13052 }
13053 if (isSetIo()) {
13054 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
13055 if (lastComparison != 0) {
13056 return lastComparison;
13057 }
13058 }
13059 return 0;
13060 }
13061
13062 public _Fields fieldForId(int fieldId) {
13063 return _Fields.findByThriftId(fieldId);
13064 }
13065
13066 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13067 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13068 }
13069
13070 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13071 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13072 }
13073
13074 @Override
13075 public String toString() {
13076 StringBuilder sb = new StringBuilder("deleteTable_result(");
13077 boolean first = true;
13078
13079 sb.append("io:");
13080 if (this.io == null) {
13081 sb.append("null");
13082 } else {
13083 sb.append(this.io);
13084 }
13085 first = false;
13086 sb.append(")");
13087 return sb.toString();
13088 }
13089
13090 public void validate() throws org.apache.thrift.TException {
13091
13092
13093 }
13094
13095 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13096 try {
13097 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13098 } catch (org.apache.thrift.TException te) {
13099 throw new java.io.IOException(te);
13100 }
13101 }
13102
13103 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13104 try {
13105 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13106 } catch (org.apache.thrift.TException te) {
13107 throw new java.io.IOException(te);
13108 }
13109 }
13110
13111 private static class deleteTable_resultStandardSchemeFactory implements SchemeFactory {
13112 public deleteTable_resultStandardScheme getScheme() {
13113 return new deleteTable_resultStandardScheme();
13114 }
13115 }
13116
13117 private static class deleteTable_resultStandardScheme extends StandardScheme<deleteTable_result> {
13118
13119 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteTable_result struct) throws org.apache.thrift.TException {
13120 org.apache.thrift.protocol.TField schemeField;
13121 iprot.readStructBegin();
13122 while (true)
13123 {
13124 schemeField = iprot.readFieldBegin();
13125 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13126 break;
13127 }
13128 switch (schemeField.id) {
13129 case 1:
13130 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
13131 struct.io = new IOError();
13132 struct.io.read(iprot);
13133 struct.setIoIsSet(true);
13134 } else {
13135 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13136 }
13137 break;
13138 default:
13139 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13140 }
13141 iprot.readFieldEnd();
13142 }
13143 iprot.readStructEnd();
13144
13145
13146 struct.validate();
13147 }
13148
13149 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteTable_result struct) throws org.apache.thrift.TException {
13150 struct.validate();
13151
13152 oprot.writeStructBegin(STRUCT_DESC);
13153 if (struct.io != null) {
13154 oprot.writeFieldBegin(IO_FIELD_DESC);
13155 struct.io.write(oprot);
13156 oprot.writeFieldEnd();
13157 }
13158 oprot.writeFieldStop();
13159 oprot.writeStructEnd();
13160 }
13161
13162 }
13163
13164 private static class deleteTable_resultTupleSchemeFactory implements SchemeFactory {
13165 public deleteTable_resultTupleScheme getScheme() {
13166 return new deleteTable_resultTupleScheme();
13167 }
13168 }
13169
13170 private static class deleteTable_resultTupleScheme extends TupleScheme<deleteTable_result> {
13171
13172 @Override
13173 public void write(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException {
13174 TTupleProtocol oprot = (TTupleProtocol) prot;
13175 BitSet optionals = new BitSet();
13176 if (struct.isSetIo()) {
13177 optionals.set(0);
13178 }
13179 oprot.writeBitSet(optionals, 1);
13180 if (struct.isSetIo()) {
13181 struct.io.write(oprot);
13182 }
13183 }
13184
13185 @Override
13186 public void read(org.apache.thrift.protocol.TProtocol prot, deleteTable_result struct) throws org.apache.thrift.TException {
13187 TTupleProtocol iprot = (TTupleProtocol) prot;
13188 BitSet incoming = iprot.readBitSet(1);
13189 if (incoming.get(0)) {
13190 struct.io = new IOError();
13191 struct.io.read(iprot);
13192 struct.setIoIsSet(true);
13193 }
13194 }
13195 }
13196
13197 }
13198
13199 public static class get_args implements org.apache.thrift.TBase<get_args, get_args._Fields>, java.io.Serializable, Cloneable {
13200 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_args");
13201
13202 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
13203 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
13204 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
13205 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
13206
13207 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13208 static {
13209 schemes.put(StandardScheme.class, new get_argsStandardSchemeFactory());
13210 schemes.put(TupleScheme.class, new get_argsTupleSchemeFactory());
13211 }
13212
13213
13214
13215
13216 public ByteBuffer tableName;
13217
13218
13219
13220 public ByteBuffer row;
13221
13222
13223
13224 public ByteBuffer column;
13225
13226
13227
13228 public Map<ByteBuffer,ByteBuffer> attributes;
13229
13230
13231 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13232
13233
13234
13235 TABLE_NAME((short)1, "tableName"),
13236
13237
13238
13239 ROW((short)2, "row"),
13240
13241
13242
13243 COLUMN((short)3, "column"),
13244
13245
13246
13247 ATTRIBUTES((short)4, "attributes");
13248
13249 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13250
13251 static {
13252 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13253 byName.put(field.getFieldName(), field);
13254 }
13255 }
13256
13257
13258
13259
13260 public static _Fields findByThriftId(int fieldId) {
13261 switch(fieldId) {
13262 case 1:
13263 return TABLE_NAME;
13264 case 2:
13265 return ROW;
13266 case 3:
13267 return COLUMN;
13268 case 4:
13269 return ATTRIBUTES;
13270 default:
13271 return null;
13272 }
13273 }
13274
13275
13276
13277
13278
13279 public static _Fields findByThriftIdOrThrow(int fieldId) {
13280 _Fields fields = findByThriftId(fieldId);
13281 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13282 return fields;
13283 }
13284
13285
13286
13287
13288 public static _Fields findByName(String name) {
13289 return byName.get(name);
13290 }
13291
13292 private final short _thriftId;
13293 private final String _fieldName;
13294
13295 _Fields(short thriftId, String fieldName) {
13296 _thriftId = thriftId;
13297 _fieldName = fieldName;
13298 }
13299
13300 public short getThriftFieldId() {
13301 return _thriftId;
13302 }
13303
13304 public String getFieldName() {
13305 return _fieldName;
13306 }
13307 }
13308
13309
13310 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13311 static {
13312 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13313 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
13314 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
13315 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
13316 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
13317 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT,
13318 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
13319 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
13320 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
13321 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
13322 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
13323 metaDataMap = Collections.unmodifiableMap(tmpMap);
13324 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_args.class, metaDataMap);
13325 }
13326
13327 public get_args() {
13328 }
13329
13330 public get_args(
13331 ByteBuffer tableName,
13332 ByteBuffer row,
13333 ByteBuffer column,
13334 Map<ByteBuffer,ByteBuffer> attributes)
13335 {
13336 this();
13337 this.tableName = tableName;
13338 this.row = row;
13339 this.column = column;
13340 this.attributes = attributes;
13341 }
13342
13343
13344
13345
13346 public get_args(get_args other) {
13347 if (other.isSetTableName()) {
13348 this.tableName = other.tableName;
13349 }
13350 if (other.isSetRow()) {
13351 this.row = other.row;
13352 }
13353 if (other.isSetColumn()) {
13354 this.column = other.column;
13355 }
13356 if (other.isSetAttributes()) {
13357 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
13358 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
13359
13360 ByteBuffer other_element_key = other_element.getKey();
13361 ByteBuffer other_element_value = other_element.getValue();
13362
13363 ByteBuffer __this__attributes_copy_key = other_element_key;
13364
13365 ByteBuffer __this__attributes_copy_value = other_element_value;
13366
13367 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
13368 }
13369 this.attributes = __this__attributes;
13370 }
13371 }
13372
13373 public get_args deepCopy() {
13374 return new get_args(this);
13375 }
13376
13377 @Override
13378 public void clear() {
13379 this.tableName = null;
13380 this.row = null;
13381 this.column = null;
13382 this.attributes = null;
13383 }
13384
13385
13386
13387
13388 public byte[] getTableName() {
13389 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
13390 return tableName == null ? null : tableName.array();
13391 }
13392
13393 public ByteBuffer bufferForTableName() {
13394 return tableName;
13395 }
13396
13397
13398
13399
13400 public get_args setTableName(byte[] tableName) {
13401 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
13402 return this;
13403 }
13404
13405 public get_args setTableName(ByteBuffer tableName) {
13406 this.tableName = tableName;
13407 return this;
13408 }
13409
13410 public void unsetTableName() {
13411 this.tableName = null;
13412 }
13413
13414
13415 public boolean isSetTableName() {
13416 return this.tableName != null;
13417 }
13418
13419 public void setTableNameIsSet(boolean value) {
13420 if (!value) {
13421 this.tableName = null;
13422 }
13423 }
13424
13425
13426
13427
13428 public byte[] getRow() {
13429 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
13430 return row == null ? null : row.array();
13431 }
13432
13433 public ByteBuffer bufferForRow() {
13434 return row;
13435 }
13436
13437
13438
13439
13440 public get_args setRow(byte[] row) {
13441 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
13442 return this;
13443 }
13444
13445 public get_args setRow(ByteBuffer row) {
13446 this.row = row;
13447 return this;
13448 }
13449
13450 public void unsetRow() {
13451 this.row = null;
13452 }
13453
13454
13455 public boolean isSetRow() {
13456 return this.row != null;
13457 }
13458
13459 public void setRowIsSet(boolean value) {
13460 if (!value) {
13461 this.row = null;
13462 }
13463 }
13464
13465
13466
13467
13468 public byte[] getColumn() {
13469 setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
13470 return column == null ? null : column.array();
13471 }
13472
13473 public ByteBuffer bufferForColumn() {
13474 return column;
13475 }
13476
13477
13478
13479
13480 public get_args setColumn(byte[] column) {
13481 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
13482 return this;
13483 }
13484
13485 public get_args setColumn(ByteBuffer column) {
13486 this.column = column;
13487 return this;
13488 }
13489
13490 public void unsetColumn() {
13491 this.column = null;
13492 }
13493
13494
13495 public boolean isSetColumn() {
13496 return this.column != null;
13497 }
13498
13499 public void setColumnIsSet(boolean value) {
13500 if (!value) {
13501 this.column = null;
13502 }
13503 }
13504
13505 public int getAttributesSize() {
13506 return (this.attributes == null) ? 0 : this.attributes.size();
13507 }
13508
13509 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
13510 if (this.attributes == null) {
13511 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
13512 }
13513 this.attributes.put(key, val);
13514 }
13515
13516
13517
13518
13519 public Map<ByteBuffer,ByteBuffer> getAttributes() {
13520 return this.attributes;
13521 }
13522
13523
13524
13525
13526 public get_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
13527 this.attributes = attributes;
13528 return this;
13529 }
13530
13531 public void unsetAttributes() {
13532 this.attributes = null;
13533 }
13534
13535
13536 public boolean isSetAttributes() {
13537 return this.attributes != null;
13538 }
13539
13540 public void setAttributesIsSet(boolean value) {
13541 if (!value) {
13542 this.attributes = null;
13543 }
13544 }
13545
13546 public void setFieldValue(_Fields field, Object value) {
13547 switch (field) {
13548 case TABLE_NAME:
13549 if (value == null) {
13550 unsetTableName();
13551 } else {
13552 setTableName((ByteBuffer)value);
13553 }
13554 break;
13555
13556 case ROW:
13557 if (value == null) {
13558 unsetRow();
13559 } else {
13560 setRow((ByteBuffer)value);
13561 }
13562 break;
13563
13564 case COLUMN:
13565 if (value == null) {
13566 unsetColumn();
13567 } else {
13568 setColumn((ByteBuffer)value);
13569 }
13570 break;
13571
13572 case ATTRIBUTES:
13573 if (value == null) {
13574 unsetAttributes();
13575 } else {
13576 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
13577 }
13578 break;
13579
13580 }
13581 }
13582
13583 public Object getFieldValue(_Fields field) {
13584 switch (field) {
13585 case TABLE_NAME:
13586 return getTableName();
13587
13588 case ROW:
13589 return getRow();
13590
13591 case COLUMN:
13592 return getColumn();
13593
13594 case ATTRIBUTES:
13595 return getAttributes();
13596
13597 }
13598 throw new IllegalStateException();
13599 }
13600
13601
13602 public boolean isSet(_Fields field) {
13603 if (field == null) {
13604 throw new IllegalArgumentException();
13605 }
13606
13607 switch (field) {
13608 case TABLE_NAME:
13609 return isSetTableName();
13610 case ROW:
13611 return isSetRow();
13612 case COLUMN:
13613 return isSetColumn();
13614 case ATTRIBUTES:
13615 return isSetAttributes();
13616 }
13617 throw new IllegalStateException();
13618 }
13619
13620 @Override
13621 public boolean equals(Object that) {
13622 if (that == null)
13623 return false;
13624 if (that instanceof get_args)
13625 return this.equals((get_args)that);
13626 return false;
13627 }
13628
13629 public boolean equals(get_args that) {
13630 if (that == null)
13631 return false;
13632
13633 boolean this_present_tableName = true && this.isSetTableName();
13634 boolean that_present_tableName = true && that.isSetTableName();
13635 if (this_present_tableName || that_present_tableName) {
13636 if (!(this_present_tableName && that_present_tableName))
13637 return false;
13638 if (!this.tableName.equals(that.tableName))
13639 return false;
13640 }
13641
13642 boolean this_present_row = true && this.isSetRow();
13643 boolean that_present_row = true && that.isSetRow();
13644 if (this_present_row || that_present_row) {
13645 if (!(this_present_row && that_present_row))
13646 return false;
13647 if (!this.row.equals(that.row))
13648 return false;
13649 }
13650
13651 boolean this_present_column = true && this.isSetColumn();
13652 boolean that_present_column = true && that.isSetColumn();
13653 if (this_present_column || that_present_column) {
13654 if (!(this_present_column && that_present_column))
13655 return false;
13656 if (!this.column.equals(that.column))
13657 return false;
13658 }
13659
13660 boolean this_present_attributes = true && this.isSetAttributes();
13661 boolean that_present_attributes = true && that.isSetAttributes();
13662 if (this_present_attributes || that_present_attributes) {
13663 if (!(this_present_attributes && that_present_attributes))
13664 return false;
13665 if (!this.attributes.equals(that.attributes))
13666 return false;
13667 }
13668
13669 return true;
13670 }
13671
13672 @Override
13673 public int hashCode() {
13674 HashCodeBuilder builder = new HashCodeBuilder();
13675
13676 boolean present_tableName = true && (isSetTableName());
13677 builder.append(present_tableName);
13678 if (present_tableName)
13679 builder.append(tableName);
13680
13681 boolean present_row = true && (isSetRow());
13682 builder.append(present_row);
13683 if (present_row)
13684 builder.append(row);
13685
13686 boolean present_column = true && (isSetColumn());
13687 builder.append(present_column);
13688 if (present_column)
13689 builder.append(column);
13690
13691 boolean present_attributes = true && (isSetAttributes());
13692 builder.append(present_attributes);
13693 if (present_attributes)
13694 builder.append(attributes);
13695
13696 return builder.toHashCode();
13697 }
13698
13699 public int compareTo(get_args other) {
13700 if (!getClass().equals(other.getClass())) {
13701 return getClass().getName().compareTo(other.getClass().getName());
13702 }
13703
13704 int lastComparison = 0;
13705 get_args typedOther = (get_args)other;
13706
13707 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
13708 if (lastComparison != 0) {
13709 return lastComparison;
13710 }
13711 if (isSetTableName()) {
13712 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
13713 if (lastComparison != 0) {
13714 return lastComparison;
13715 }
13716 }
13717 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
13718 if (lastComparison != 0) {
13719 return lastComparison;
13720 }
13721 if (isSetRow()) {
13722 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
13723 if (lastComparison != 0) {
13724 return lastComparison;
13725 }
13726 }
13727 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
13728 if (lastComparison != 0) {
13729 return lastComparison;
13730 }
13731 if (isSetColumn()) {
13732 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
13733 if (lastComparison != 0) {
13734 return lastComparison;
13735 }
13736 }
13737 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
13738 if (lastComparison != 0) {
13739 return lastComparison;
13740 }
13741 if (isSetAttributes()) {
13742 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
13743 if (lastComparison != 0) {
13744 return lastComparison;
13745 }
13746 }
13747 return 0;
13748 }
13749
13750 public _Fields fieldForId(int fieldId) {
13751 return _Fields.findByThriftId(fieldId);
13752 }
13753
13754 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13755 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13756 }
13757
13758 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13759 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13760 }
13761
13762 @Override
13763 public String toString() {
13764 StringBuilder sb = new StringBuilder("get_args(");
13765 boolean first = true;
13766
13767 sb.append("tableName:");
13768 if (this.tableName == null) {
13769 sb.append("null");
13770 } else {
13771 sb.append(this.tableName);
13772 }
13773 first = false;
13774 if (!first) sb.append(", ");
13775 sb.append("row:");
13776 if (this.row == null) {
13777 sb.append("null");
13778 } else {
13779 sb.append(this.row);
13780 }
13781 first = false;
13782 if (!first) sb.append(", ");
13783 sb.append("column:");
13784 if (this.column == null) {
13785 sb.append("null");
13786 } else {
13787 sb.append(this.column);
13788 }
13789 first = false;
13790 if (!first) sb.append(", ");
13791 sb.append("attributes:");
13792 if (this.attributes == null) {
13793 sb.append("null");
13794 } else {
13795 sb.append(this.attributes);
13796 }
13797 first = false;
13798 sb.append(")");
13799 return sb.toString();
13800 }
13801
13802 public void validate() throws org.apache.thrift.TException {
13803
13804
13805 }
13806
13807 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13808 try {
13809 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13810 } catch (org.apache.thrift.TException te) {
13811 throw new java.io.IOException(te);
13812 }
13813 }
13814
13815 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13816 try {
13817 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13818 } catch (org.apache.thrift.TException te) {
13819 throw new java.io.IOException(te);
13820 }
13821 }
13822
13823 private static class get_argsStandardSchemeFactory implements SchemeFactory {
13824 public get_argsStandardScheme getScheme() {
13825 return new get_argsStandardScheme();
13826 }
13827 }
13828
13829 private static class get_argsStandardScheme extends StandardScheme<get_args> {
13830
13831 public void read(org.apache.thrift.protocol.TProtocol iprot, get_args struct) throws org.apache.thrift.TException {
13832 org.apache.thrift.protocol.TField schemeField;
13833 iprot.readStructBegin();
13834 while (true)
13835 {
13836 schemeField = iprot.readFieldBegin();
13837 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13838 break;
13839 }
13840 switch (schemeField.id) {
13841 case 1:
13842 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13843 struct.tableName = iprot.readBinary();
13844 struct.setTableNameIsSet(true);
13845 } else {
13846 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13847 }
13848 break;
13849 case 2:
13850 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13851 struct.row = iprot.readBinary();
13852 struct.setRowIsSet(true);
13853 } else {
13854 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13855 }
13856 break;
13857 case 3:
13858 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13859 struct.column = iprot.readBinary();
13860 struct.setColumnIsSet(true);
13861 } else {
13862 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13863 }
13864 break;
13865 case 4:
13866 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
13867 {
13868 org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin();
13869 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map84.size);
13870 for (int _i85 = 0; _i85 < _map84.size; ++_i85)
13871 {
13872 ByteBuffer _key86;
13873 ByteBuffer _val87;
13874 _key86 = iprot.readBinary();
13875 _val87 = iprot.readBinary();
13876 struct.attributes.put(_key86, _val87);
13877 }
13878 iprot.readMapEnd();
13879 }
13880 struct.setAttributesIsSet(true);
13881 } else {
13882 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13883 }
13884 break;
13885 default:
13886 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13887 }
13888 iprot.readFieldEnd();
13889 }
13890 iprot.readStructEnd();
13891
13892
13893 struct.validate();
13894 }
13895
13896 public void write(org.apache.thrift.protocol.TProtocol oprot, get_args struct) throws org.apache.thrift.TException {
13897 struct.validate();
13898
13899 oprot.writeStructBegin(STRUCT_DESC);
13900 if (struct.tableName != null) {
13901 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
13902 oprot.writeBinary(struct.tableName);
13903 oprot.writeFieldEnd();
13904 }
13905 if (struct.row != null) {
13906 oprot.writeFieldBegin(ROW_FIELD_DESC);
13907 oprot.writeBinary(struct.row);
13908 oprot.writeFieldEnd();
13909 }
13910 if (struct.column != null) {
13911 oprot.writeFieldBegin(COLUMN_FIELD_DESC);
13912 oprot.writeBinary(struct.column);
13913 oprot.writeFieldEnd();
13914 }
13915 if (struct.attributes != null) {
13916 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
13917 {
13918 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
13919 for (Map.Entry<ByteBuffer, ByteBuffer> _iter88 : struct.attributes.entrySet())
13920 {
13921 oprot.writeBinary(_iter88.getKey());
13922 oprot.writeBinary(_iter88.getValue());
13923 }
13924 oprot.writeMapEnd();
13925 }
13926 oprot.writeFieldEnd();
13927 }
13928 oprot.writeFieldStop();
13929 oprot.writeStructEnd();
13930 }
13931
13932 }
13933
13934 private static class get_argsTupleSchemeFactory implements SchemeFactory {
13935 public get_argsTupleScheme getScheme() {
13936 return new get_argsTupleScheme();
13937 }
13938 }
13939
13940 private static class get_argsTupleScheme extends TupleScheme<get_args> {
13941
13942 @Override
13943 public void write(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException {
13944 TTupleProtocol oprot = (TTupleProtocol) prot;
13945 BitSet optionals = new BitSet();
13946 if (struct.isSetTableName()) {
13947 optionals.set(0);
13948 }
13949 if (struct.isSetRow()) {
13950 optionals.set(1);
13951 }
13952 if (struct.isSetColumn()) {
13953 optionals.set(2);
13954 }
13955 if (struct.isSetAttributes()) {
13956 optionals.set(3);
13957 }
13958 oprot.writeBitSet(optionals, 4);
13959 if (struct.isSetTableName()) {
13960 oprot.writeBinary(struct.tableName);
13961 }
13962 if (struct.isSetRow()) {
13963 oprot.writeBinary(struct.row);
13964 }
13965 if (struct.isSetColumn()) {
13966 oprot.writeBinary(struct.column);
13967 }
13968 if (struct.isSetAttributes()) {
13969 {
13970 oprot.writeI32(struct.attributes.size());
13971 for (Map.Entry<ByteBuffer, ByteBuffer> _iter89 : struct.attributes.entrySet())
13972 {
13973 oprot.writeBinary(_iter89.getKey());
13974 oprot.writeBinary(_iter89.getValue());
13975 }
13976 }
13977 }
13978 }
13979
13980 @Override
13981 public void read(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException {
13982 TTupleProtocol iprot = (TTupleProtocol) prot;
13983 BitSet incoming = iprot.readBitSet(4);
13984 if (incoming.get(0)) {
13985 struct.tableName = iprot.readBinary();
13986 struct.setTableNameIsSet(true);
13987 }
13988 if (incoming.get(1)) {
13989 struct.row = iprot.readBinary();
13990 struct.setRowIsSet(true);
13991 }
13992 if (incoming.get(2)) {
13993 struct.column = iprot.readBinary();
13994 struct.setColumnIsSet(true);
13995 }
13996 if (incoming.get(3)) {
13997 {
13998 org.apache.thrift.protocol.TMap _map90 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
13999 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map90.size);
14000 for (int _i91 = 0; _i91 < _map90.size; ++_i91)
14001 {
14002 ByteBuffer _key92;
14003 ByteBuffer _val93;
14004 _key92 = iprot.readBinary();
14005 _val93 = iprot.readBinary();
14006 struct.attributes.put(_key92, _val93);
14007 }
14008 }
14009 struct.setAttributesIsSet(true);
14010 }
14011 }
14012 }
14013
14014 }
14015
14016 public static class get_result implements org.apache.thrift.TBase<get_result, get_result._Fields>, java.io.Serializable, Cloneable {
14017 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_result");
14018
14019 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
14020 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
14021
14022 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14023 static {
14024 schemes.put(StandardScheme.class, new get_resultStandardSchemeFactory());
14025 schemes.put(TupleScheme.class, new get_resultTupleSchemeFactory());
14026 }
14027
14028 public List<TCell> success;
14029 public IOError io;
14030
14031
14032 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14033 SUCCESS((short)0, "success"),
14034 IO((short)1, "io");
14035
14036 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14037
14038 static {
14039 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14040 byName.put(field.getFieldName(), field);
14041 }
14042 }
14043
14044
14045
14046
14047 public static _Fields findByThriftId(int fieldId) {
14048 switch(fieldId) {
14049 case 0:
14050 return SUCCESS;
14051 case 1:
14052 return IO;
14053 default:
14054 return null;
14055 }
14056 }
14057
14058
14059
14060
14061
14062 public static _Fields findByThriftIdOrThrow(int fieldId) {
14063 _Fields fields = findByThriftId(fieldId);
14064 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14065 return fields;
14066 }
14067
14068
14069
14070
14071 public static _Fields findByName(String name) {
14072 return byName.get(name);
14073 }
14074
14075 private final short _thriftId;
14076 private final String _fieldName;
14077
14078 _Fields(short thriftId, String fieldName) {
14079 _thriftId = thriftId;
14080 _fieldName = fieldName;
14081 }
14082
14083 public short getThriftFieldId() {
14084 return _thriftId;
14085 }
14086
14087 public String getFieldName() {
14088 return _fieldName;
14089 }
14090 }
14091
14092
14093 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14094 static {
14095 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14096 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14097 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
14098 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class))));
14099 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
14100 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14101 metaDataMap = Collections.unmodifiableMap(tmpMap);
14102 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_result.class, metaDataMap);
14103 }
14104
14105 public get_result() {
14106 }
14107
14108 public get_result(
14109 List<TCell> success,
14110 IOError io)
14111 {
14112 this();
14113 this.success = success;
14114 this.io = io;
14115 }
14116
14117
14118
14119
14120 public get_result(get_result other) {
14121 if (other.isSetSuccess()) {
14122 List<TCell> __this__success = new ArrayList<TCell>();
14123 for (TCell other_element : other.success) {
14124 __this__success.add(new TCell(other_element));
14125 }
14126 this.success = __this__success;
14127 }
14128 if (other.isSetIo()) {
14129 this.io = new IOError(other.io);
14130 }
14131 }
14132
14133 public get_result deepCopy() {
14134 return new get_result(this);
14135 }
14136
14137 @Override
14138 public void clear() {
14139 this.success = null;
14140 this.io = null;
14141 }
14142
14143 public int getSuccessSize() {
14144 return (this.success == null) ? 0 : this.success.size();
14145 }
14146
14147 public java.util.Iterator<TCell> getSuccessIterator() {
14148 return (this.success == null) ? null : this.success.iterator();
14149 }
14150
14151 public void addToSuccess(TCell elem) {
14152 if (this.success == null) {
14153 this.success = new ArrayList<TCell>();
14154 }
14155 this.success.add(elem);
14156 }
14157
14158 public List<TCell> getSuccess() {
14159 return this.success;
14160 }
14161
14162 public get_result setSuccess(List<TCell> success) {
14163 this.success = success;
14164 return this;
14165 }
14166
14167 public void unsetSuccess() {
14168 this.success = null;
14169 }
14170
14171
14172 public boolean isSetSuccess() {
14173 return this.success != null;
14174 }
14175
14176 public void setSuccessIsSet(boolean value) {
14177 if (!value) {
14178 this.success = null;
14179 }
14180 }
14181
14182 public IOError getIo() {
14183 return this.io;
14184 }
14185
14186 public get_result setIo(IOError io) {
14187 this.io = io;
14188 return this;
14189 }
14190
14191 public void unsetIo() {
14192 this.io = null;
14193 }
14194
14195
14196 public boolean isSetIo() {
14197 return this.io != null;
14198 }
14199
14200 public void setIoIsSet(boolean value) {
14201 if (!value) {
14202 this.io = null;
14203 }
14204 }
14205
14206 public void setFieldValue(_Fields field, Object value) {
14207 switch (field) {
14208 case SUCCESS:
14209 if (value == null) {
14210 unsetSuccess();
14211 } else {
14212 setSuccess((List<TCell>)value);
14213 }
14214 break;
14215
14216 case IO:
14217 if (value == null) {
14218 unsetIo();
14219 } else {
14220 setIo((IOError)value);
14221 }
14222 break;
14223
14224 }
14225 }
14226
14227 public Object getFieldValue(_Fields field) {
14228 switch (field) {
14229 case SUCCESS:
14230 return getSuccess();
14231
14232 case IO:
14233 return getIo();
14234
14235 }
14236 throw new IllegalStateException();
14237 }
14238
14239
14240 public boolean isSet(_Fields field) {
14241 if (field == null) {
14242 throw new IllegalArgumentException();
14243 }
14244
14245 switch (field) {
14246 case SUCCESS:
14247 return isSetSuccess();
14248 case IO:
14249 return isSetIo();
14250 }
14251 throw new IllegalStateException();
14252 }
14253
14254 @Override
14255 public boolean equals(Object that) {
14256 if (that == null)
14257 return false;
14258 if (that instanceof get_result)
14259 return this.equals((get_result)that);
14260 return false;
14261 }
14262
14263 public boolean equals(get_result that) {
14264 if (that == null)
14265 return false;
14266
14267 boolean this_present_success = true && this.isSetSuccess();
14268 boolean that_present_success = true && that.isSetSuccess();
14269 if (this_present_success || that_present_success) {
14270 if (!(this_present_success && that_present_success))
14271 return false;
14272 if (!this.success.equals(that.success))
14273 return false;
14274 }
14275
14276 boolean this_present_io = true && this.isSetIo();
14277 boolean that_present_io = true && that.isSetIo();
14278 if (this_present_io || that_present_io) {
14279 if (!(this_present_io && that_present_io))
14280 return false;
14281 if (!this.io.equals(that.io))
14282 return false;
14283 }
14284
14285 return true;
14286 }
14287
14288 @Override
14289 public int hashCode() {
14290 HashCodeBuilder builder = new HashCodeBuilder();
14291
14292 boolean present_success = true && (isSetSuccess());
14293 builder.append(present_success);
14294 if (present_success)
14295 builder.append(success);
14296
14297 boolean present_io = true && (isSetIo());
14298 builder.append(present_io);
14299 if (present_io)
14300 builder.append(io);
14301
14302 return builder.toHashCode();
14303 }
14304
14305 public int compareTo(get_result other) {
14306 if (!getClass().equals(other.getClass())) {
14307 return getClass().getName().compareTo(other.getClass().getName());
14308 }
14309
14310 int lastComparison = 0;
14311 get_result typedOther = (get_result)other;
14312
14313 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14314 if (lastComparison != 0) {
14315 return lastComparison;
14316 }
14317 if (isSetSuccess()) {
14318 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14319 if (lastComparison != 0) {
14320 return lastComparison;
14321 }
14322 }
14323 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
14324 if (lastComparison != 0) {
14325 return lastComparison;
14326 }
14327 if (isSetIo()) {
14328 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
14329 if (lastComparison != 0) {
14330 return lastComparison;
14331 }
14332 }
14333 return 0;
14334 }
14335
14336 public _Fields fieldForId(int fieldId) {
14337 return _Fields.findByThriftId(fieldId);
14338 }
14339
14340 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14341 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14342 }
14343
14344 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14345 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14346 }
14347
14348 @Override
14349 public String toString() {
14350 StringBuilder sb = new StringBuilder("get_result(");
14351 boolean first = true;
14352
14353 sb.append("success:");
14354 if (this.success == null) {
14355 sb.append("null");
14356 } else {
14357 sb.append(this.success);
14358 }
14359 first = false;
14360 if (!first) sb.append(", ");
14361 sb.append("io:");
14362 if (this.io == null) {
14363 sb.append("null");
14364 } else {
14365 sb.append(this.io);
14366 }
14367 first = false;
14368 sb.append(")");
14369 return sb.toString();
14370 }
14371
14372 public void validate() throws org.apache.thrift.TException {
14373
14374
14375 }
14376
14377 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14378 try {
14379 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14380 } catch (org.apache.thrift.TException te) {
14381 throw new java.io.IOException(te);
14382 }
14383 }
14384
14385 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14386 try {
14387 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14388 } catch (org.apache.thrift.TException te) {
14389 throw new java.io.IOException(te);
14390 }
14391 }
14392
14393 private static class get_resultStandardSchemeFactory implements SchemeFactory {
14394 public get_resultStandardScheme getScheme() {
14395 return new get_resultStandardScheme();
14396 }
14397 }
14398
14399 private static class get_resultStandardScheme extends StandardScheme<get_result> {
14400
14401 public void read(org.apache.thrift.protocol.TProtocol iprot, get_result struct) throws org.apache.thrift.TException {
14402 org.apache.thrift.protocol.TField schemeField;
14403 iprot.readStructBegin();
14404 while (true)
14405 {
14406 schemeField = iprot.readFieldBegin();
14407 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14408 break;
14409 }
14410 switch (schemeField.id) {
14411 case 0:
14412 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
14413 {
14414 org.apache.thrift.protocol.TList _list94 = iprot.readListBegin();
14415 struct.success = new ArrayList<TCell>(_list94.size);
14416 for (int _i95 = 0; _i95 < _list94.size; ++_i95)
14417 {
14418 TCell _elem96;
14419 _elem96 = new TCell();
14420 _elem96.read(iprot);
14421 struct.success.add(_elem96);
14422 }
14423 iprot.readListEnd();
14424 }
14425 struct.setSuccessIsSet(true);
14426 } else {
14427 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14428 }
14429 break;
14430 case 1:
14431 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
14432 struct.io = new IOError();
14433 struct.io.read(iprot);
14434 struct.setIoIsSet(true);
14435 } else {
14436 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14437 }
14438 break;
14439 default:
14440 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14441 }
14442 iprot.readFieldEnd();
14443 }
14444 iprot.readStructEnd();
14445
14446
14447 struct.validate();
14448 }
14449
14450 public void write(org.apache.thrift.protocol.TProtocol oprot, get_result struct) throws org.apache.thrift.TException {
14451 struct.validate();
14452
14453 oprot.writeStructBegin(STRUCT_DESC);
14454 if (struct.success != null) {
14455 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14456 {
14457 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
14458 for (TCell _iter97 : struct.success)
14459 {
14460 _iter97.write(oprot);
14461 }
14462 oprot.writeListEnd();
14463 }
14464 oprot.writeFieldEnd();
14465 }
14466 if (struct.io != null) {
14467 oprot.writeFieldBegin(IO_FIELD_DESC);
14468 struct.io.write(oprot);
14469 oprot.writeFieldEnd();
14470 }
14471 oprot.writeFieldStop();
14472 oprot.writeStructEnd();
14473 }
14474
14475 }
14476
14477 private static class get_resultTupleSchemeFactory implements SchemeFactory {
14478 public get_resultTupleScheme getScheme() {
14479 return new get_resultTupleScheme();
14480 }
14481 }
14482
14483 private static class get_resultTupleScheme extends TupleScheme<get_result> {
14484
14485 @Override
14486 public void write(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException {
14487 TTupleProtocol oprot = (TTupleProtocol) prot;
14488 BitSet optionals = new BitSet();
14489 if (struct.isSetSuccess()) {
14490 optionals.set(0);
14491 }
14492 if (struct.isSetIo()) {
14493 optionals.set(1);
14494 }
14495 oprot.writeBitSet(optionals, 2);
14496 if (struct.isSetSuccess()) {
14497 {
14498 oprot.writeI32(struct.success.size());
14499 for (TCell _iter98 : struct.success)
14500 {
14501 _iter98.write(oprot);
14502 }
14503 }
14504 }
14505 if (struct.isSetIo()) {
14506 struct.io.write(oprot);
14507 }
14508 }
14509
14510 @Override
14511 public void read(org.apache.thrift.protocol.TProtocol prot, get_result struct) throws org.apache.thrift.TException {
14512 TTupleProtocol iprot = (TTupleProtocol) prot;
14513 BitSet incoming = iprot.readBitSet(2);
14514 if (incoming.get(0)) {
14515 {
14516 org.apache.thrift.protocol.TList _list99 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
14517 struct.success = new ArrayList<TCell>(_list99.size);
14518 for (int _i100 = 0; _i100 < _list99.size; ++_i100)
14519 {
14520 TCell _elem101;
14521 _elem101 = new TCell();
14522 _elem101.read(iprot);
14523 struct.success.add(_elem101);
14524 }
14525 }
14526 struct.setSuccessIsSet(true);
14527 }
14528 if (incoming.get(1)) {
14529 struct.io = new IOError();
14530 struct.io.read(iprot);
14531 struct.setIoIsSet(true);
14532 }
14533 }
14534 }
14535
14536 }
14537
14538 public static class getVer_args implements org.apache.thrift.TBase<getVer_args, getVer_args._Fields>, java.io.Serializable, Cloneable {
14539 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVer_args");
14540
14541 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
14542 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
14543 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
14544 private static final org.apache.thrift.protocol.TField NUM_VERSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("numVersions", org.apache.thrift.protocol.TType.I32, (short)4);
14545 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
14546
14547 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14548 static {
14549 schemes.put(StandardScheme.class, new getVer_argsStandardSchemeFactory());
14550 schemes.put(TupleScheme.class, new getVer_argsTupleSchemeFactory());
14551 }
14552
14553
14554
14555
14556 public ByteBuffer tableName;
14557
14558
14559
14560 public ByteBuffer row;
14561
14562
14563
14564 public ByteBuffer column;
14565
14566
14567
14568 public int numVersions;
14569
14570
14571
14572 public Map<ByteBuffer,ByteBuffer> attributes;
14573
14574
14575 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14576
14577
14578
14579 TABLE_NAME((short)1, "tableName"),
14580
14581
14582
14583 ROW((short)2, "row"),
14584
14585
14586
14587 COLUMN((short)3, "column"),
14588
14589
14590
14591 NUM_VERSIONS((short)4, "numVersions"),
14592
14593
14594
14595 ATTRIBUTES((short)5, "attributes");
14596
14597 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14598
14599 static {
14600 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14601 byName.put(field.getFieldName(), field);
14602 }
14603 }
14604
14605
14606
14607
14608 public static _Fields findByThriftId(int fieldId) {
14609 switch(fieldId) {
14610 case 1:
14611 return TABLE_NAME;
14612 case 2:
14613 return ROW;
14614 case 3:
14615 return COLUMN;
14616 case 4:
14617 return NUM_VERSIONS;
14618 case 5:
14619 return ATTRIBUTES;
14620 default:
14621 return null;
14622 }
14623 }
14624
14625
14626
14627
14628
14629 public static _Fields findByThriftIdOrThrow(int fieldId) {
14630 _Fields fields = findByThriftId(fieldId);
14631 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14632 return fields;
14633 }
14634
14635
14636
14637
14638 public static _Fields findByName(String name) {
14639 return byName.get(name);
14640 }
14641
14642 private final short _thriftId;
14643 private final String _fieldName;
14644
14645 _Fields(short thriftId, String fieldName) {
14646 _thriftId = thriftId;
14647 _fieldName = fieldName;
14648 }
14649
14650 public short getThriftFieldId() {
14651 return _thriftId;
14652 }
14653
14654 public String getFieldName() {
14655 return _fieldName;
14656 }
14657 }
14658
14659
14660 private static final int __NUMVERSIONS_ISSET_ID = 0;
14661 private byte __isset_bitfield = 0;
14662 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14663 static {
14664 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14665 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
14666 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
14667 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
14668 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
14669 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT,
14670 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
14671 tmpMap.put(_Fields.NUM_VERSIONS, new org.apache.thrift.meta_data.FieldMetaData("numVersions", org.apache.thrift.TFieldRequirementType.DEFAULT,
14672 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14673 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
14674 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
14675 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
14676 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
14677 metaDataMap = Collections.unmodifiableMap(tmpMap);
14678 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVer_args.class, metaDataMap);
14679 }
14680
14681 public getVer_args() {
14682 }
14683
14684 public getVer_args(
14685 ByteBuffer tableName,
14686 ByteBuffer row,
14687 ByteBuffer column,
14688 int numVersions,
14689 Map<ByteBuffer,ByteBuffer> attributes)
14690 {
14691 this();
14692 this.tableName = tableName;
14693 this.row = row;
14694 this.column = column;
14695 this.numVersions = numVersions;
14696 setNumVersionsIsSet(true);
14697 this.attributes = attributes;
14698 }
14699
14700
14701
14702
14703 public getVer_args(getVer_args other) {
14704 __isset_bitfield = other.__isset_bitfield;
14705 if (other.isSetTableName()) {
14706 this.tableName = other.tableName;
14707 }
14708 if (other.isSetRow()) {
14709 this.row = other.row;
14710 }
14711 if (other.isSetColumn()) {
14712 this.column = other.column;
14713 }
14714 this.numVersions = other.numVersions;
14715 if (other.isSetAttributes()) {
14716 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
14717 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
14718
14719 ByteBuffer other_element_key = other_element.getKey();
14720 ByteBuffer other_element_value = other_element.getValue();
14721
14722 ByteBuffer __this__attributes_copy_key = other_element_key;
14723
14724 ByteBuffer __this__attributes_copy_value = other_element_value;
14725
14726 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
14727 }
14728 this.attributes = __this__attributes;
14729 }
14730 }
14731
14732 public getVer_args deepCopy() {
14733 return new getVer_args(this);
14734 }
14735
14736 @Override
14737 public void clear() {
14738 this.tableName = null;
14739 this.row = null;
14740 this.column = null;
14741 setNumVersionsIsSet(false);
14742 this.numVersions = 0;
14743 this.attributes = null;
14744 }
14745
14746
14747
14748
14749 public byte[] getTableName() {
14750 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
14751 return tableName == null ? null : tableName.array();
14752 }
14753
14754 public ByteBuffer bufferForTableName() {
14755 return tableName;
14756 }
14757
14758
14759
14760
14761 public getVer_args setTableName(byte[] tableName) {
14762 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
14763 return this;
14764 }
14765
14766 public getVer_args setTableName(ByteBuffer tableName) {
14767 this.tableName = tableName;
14768 return this;
14769 }
14770
14771 public void unsetTableName() {
14772 this.tableName = null;
14773 }
14774
14775
14776 public boolean isSetTableName() {
14777 return this.tableName != null;
14778 }
14779
14780 public void setTableNameIsSet(boolean value) {
14781 if (!value) {
14782 this.tableName = null;
14783 }
14784 }
14785
14786
14787
14788
14789 public byte[] getRow() {
14790 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
14791 return row == null ? null : row.array();
14792 }
14793
14794 public ByteBuffer bufferForRow() {
14795 return row;
14796 }
14797
14798
14799
14800
14801 public getVer_args setRow(byte[] row) {
14802 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
14803 return this;
14804 }
14805
14806 public getVer_args setRow(ByteBuffer row) {
14807 this.row = row;
14808 return this;
14809 }
14810
14811 public void unsetRow() {
14812 this.row = null;
14813 }
14814
14815
14816 public boolean isSetRow() {
14817 return this.row != null;
14818 }
14819
14820 public void setRowIsSet(boolean value) {
14821 if (!value) {
14822 this.row = null;
14823 }
14824 }
14825
14826
14827
14828
14829 public byte[] getColumn() {
14830 setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
14831 return column == null ? null : column.array();
14832 }
14833
14834 public ByteBuffer bufferForColumn() {
14835 return column;
14836 }
14837
14838
14839
14840
14841 public getVer_args setColumn(byte[] column) {
14842 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
14843 return this;
14844 }
14845
14846 public getVer_args setColumn(ByteBuffer column) {
14847 this.column = column;
14848 return this;
14849 }
14850
14851 public void unsetColumn() {
14852 this.column = null;
14853 }
14854
14855
14856 public boolean isSetColumn() {
14857 return this.column != null;
14858 }
14859
14860 public void setColumnIsSet(boolean value) {
14861 if (!value) {
14862 this.column = null;
14863 }
14864 }
14865
14866
14867
14868
14869 public int getNumVersions() {
14870 return this.numVersions;
14871 }
14872
14873
14874
14875
14876 public getVer_args setNumVersions(int numVersions) {
14877 this.numVersions = numVersions;
14878 setNumVersionsIsSet(true);
14879 return this;
14880 }
14881
14882 public void unsetNumVersions() {
14883 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID);
14884 }
14885
14886
14887 public boolean isSetNumVersions() {
14888 return EncodingUtils.testBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID);
14889 }
14890
14891 public void setNumVersionsIsSet(boolean value) {
14892 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID, value);
14893 }
14894
14895 public int getAttributesSize() {
14896 return (this.attributes == null) ? 0 : this.attributes.size();
14897 }
14898
14899 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
14900 if (this.attributes == null) {
14901 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
14902 }
14903 this.attributes.put(key, val);
14904 }
14905
14906
14907
14908
14909 public Map<ByteBuffer,ByteBuffer> getAttributes() {
14910 return this.attributes;
14911 }
14912
14913
14914
14915
14916 public getVer_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
14917 this.attributes = attributes;
14918 return this;
14919 }
14920
14921 public void unsetAttributes() {
14922 this.attributes = null;
14923 }
14924
14925
14926 public boolean isSetAttributes() {
14927 return this.attributes != null;
14928 }
14929
14930 public void setAttributesIsSet(boolean value) {
14931 if (!value) {
14932 this.attributes = null;
14933 }
14934 }
14935
14936 public void setFieldValue(_Fields field, Object value) {
14937 switch (field) {
14938 case TABLE_NAME:
14939 if (value == null) {
14940 unsetTableName();
14941 } else {
14942 setTableName((ByteBuffer)value);
14943 }
14944 break;
14945
14946 case ROW:
14947 if (value == null) {
14948 unsetRow();
14949 } else {
14950 setRow((ByteBuffer)value);
14951 }
14952 break;
14953
14954 case COLUMN:
14955 if (value == null) {
14956 unsetColumn();
14957 } else {
14958 setColumn((ByteBuffer)value);
14959 }
14960 break;
14961
14962 case NUM_VERSIONS:
14963 if (value == null) {
14964 unsetNumVersions();
14965 } else {
14966 setNumVersions((Integer)value);
14967 }
14968 break;
14969
14970 case ATTRIBUTES:
14971 if (value == null) {
14972 unsetAttributes();
14973 } else {
14974 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
14975 }
14976 break;
14977
14978 }
14979 }
14980
14981 public Object getFieldValue(_Fields field) {
14982 switch (field) {
14983 case TABLE_NAME:
14984 return getTableName();
14985
14986 case ROW:
14987 return getRow();
14988
14989 case COLUMN:
14990 return getColumn();
14991
14992 case NUM_VERSIONS:
14993 return Integer.valueOf(getNumVersions());
14994
14995 case ATTRIBUTES:
14996 return getAttributes();
14997
14998 }
14999 throw new IllegalStateException();
15000 }
15001
15002
15003 public boolean isSet(_Fields field) {
15004 if (field == null) {
15005 throw new IllegalArgumentException();
15006 }
15007
15008 switch (field) {
15009 case TABLE_NAME:
15010 return isSetTableName();
15011 case ROW:
15012 return isSetRow();
15013 case COLUMN:
15014 return isSetColumn();
15015 case NUM_VERSIONS:
15016 return isSetNumVersions();
15017 case ATTRIBUTES:
15018 return isSetAttributes();
15019 }
15020 throw new IllegalStateException();
15021 }
15022
15023 @Override
15024 public boolean equals(Object that) {
15025 if (that == null)
15026 return false;
15027 if (that instanceof getVer_args)
15028 return this.equals((getVer_args)that);
15029 return false;
15030 }
15031
15032 public boolean equals(getVer_args that) {
15033 if (that == null)
15034 return false;
15035
15036 boolean this_present_tableName = true && this.isSetTableName();
15037 boolean that_present_tableName = true && that.isSetTableName();
15038 if (this_present_tableName || that_present_tableName) {
15039 if (!(this_present_tableName && that_present_tableName))
15040 return false;
15041 if (!this.tableName.equals(that.tableName))
15042 return false;
15043 }
15044
15045 boolean this_present_row = true && this.isSetRow();
15046 boolean that_present_row = true && that.isSetRow();
15047 if (this_present_row || that_present_row) {
15048 if (!(this_present_row && that_present_row))
15049 return false;
15050 if (!this.row.equals(that.row))
15051 return false;
15052 }
15053
15054 boolean this_present_column = true && this.isSetColumn();
15055 boolean that_present_column = true && that.isSetColumn();
15056 if (this_present_column || that_present_column) {
15057 if (!(this_present_column && that_present_column))
15058 return false;
15059 if (!this.column.equals(that.column))
15060 return false;
15061 }
15062
15063 boolean this_present_numVersions = true;
15064 boolean that_present_numVersions = true;
15065 if (this_present_numVersions || that_present_numVersions) {
15066 if (!(this_present_numVersions && that_present_numVersions))
15067 return false;
15068 if (this.numVersions != that.numVersions)
15069 return false;
15070 }
15071
15072 boolean this_present_attributes = true && this.isSetAttributes();
15073 boolean that_present_attributes = true && that.isSetAttributes();
15074 if (this_present_attributes || that_present_attributes) {
15075 if (!(this_present_attributes && that_present_attributes))
15076 return false;
15077 if (!this.attributes.equals(that.attributes))
15078 return false;
15079 }
15080
15081 return true;
15082 }
15083
15084 @Override
15085 public int hashCode() {
15086 HashCodeBuilder builder = new HashCodeBuilder();
15087
15088 boolean present_tableName = true && (isSetTableName());
15089 builder.append(present_tableName);
15090 if (present_tableName)
15091 builder.append(tableName);
15092
15093 boolean present_row = true && (isSetRow());
15094 builder.append(present_row);
15095 if (present_row)
15096 builder.append(row);
15097
15098 boolean present_column = true && (isSetColumn());
15099 builder.append(present_column);
15100 if (present_column)
15101 builder.append(column);
15102
15103 boolean present_numVersions = true;
15104 builder.append(present_numVersions);
15105 if (present_numVersions)
15106 builder.append(numVersions);
15107
15108 boolean present_attributes = true && (isSetAttributes());
15109 builder.append(present_attributes);
15110 if (present_attributes)
15111 builder.append(attributes);
15112
15113 return builder.toHashCode();
15114 }
15115
15116 public int compareTo(getVer_args other) {
15117 if (!getClass().equals(other.getClass())) {
15118 return getClass().getName().compareTo(other.getClass().getName());
15119 }
15120
15121 int lastComparison = 0;
15122 getVer_args typedOther = (getVer_args)other;
15123
15124 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
15125 if (lastComparison != 0) {
15126 return lastComparison;
15127 }
15128 if (isSetTableName()) {
15129 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
15130 if (lastComparison != 0) {
15131 return lastComparison;
15132 }
15133 }
15134 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
15135 if (lastComparison != 0) {
15136 return lastComparison;
15137 }
15138 if (isSetRow()) {
15139 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
15140 if (lastComparison != 0) {
15141 return lastComparison;
15142 }
15143 }
15144 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
15145 if (lastComparison != 0) {
15146 return lastComparison;
15147 }
15148 if (isSetColumn()) {
15149 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
15150 if (lastComparison != 0) {
15151 return lastComparison;
15152 }
15153 }
15154 lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(typedOther.isSetNumVersions());
15155 if (lastComparison != 0) {
15156 return lastComparison;
15157 }
15158 if (isSetNumVersions()) {
15159 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numVersions, typedOther.numVersions);
15160 if (lastComparison != 0) {
15161 return lastComparison;
15162 }
15163 }
15164 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
15165 if (lastComparison != 0) {
15166 return lastComparison;
15167 }
15168 if (isSetAttributes()) {
15169 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
15170 if (lastComparison != 0) {
15171 return lastComparison;
15172 }
15173 }
15174 return 0;
15175 }
15176
15177 public _Fields fieldForId(int fieldId) {
15178 return _Fields.findByThriftId(fieldId);
15179 }
15180
15181 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15182 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15183 }
15184
15185 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15186 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15187 }
15188
15189 @Override
15190 public String toString() {
15191 StringBuilder sb = new StringBuilder("getVer_args(");
15192 boolean first = true;
15193
15194 sb.append("tableName:");
15195 if (this.tableName == null) {
15196 sb.append("null");
15197 } else {
15198 sb.append(this.tableName);
15199 }
15200 first = false;
15201 if (!first) sb.append(", ");
15202 sb.append("row:");
15203 if (this.row == null) {
15204 sb.append("null");
15205 } else {
15206 sb.append(this.row);
15207 }
15208 first = false;
15209 if (!first) sb.append(", ");
15210 sb.append("column:");
15211 if (this.column == null) {
15212 sb.append("null");
15213 } else {
15214 sb.append(this.column);
15215 }
15216 first = false;
15217 if (!first) sb.append(", ");
15218 sb.append("numVersions:");
15219 sb.append(this.numVersions);
15220 first = false;
15221 if (!first) sb.append(", ");
15222 sb.append("attributes:");
15223 if (this.attributes == null) {
15224 sb.append("null");
15225 } else {
15226 sb.append(this.attributes);
15227 }
15228 first = false;
15229 sb.append(")");
15230 return sb.toString();
15231 }
15232
15233 public void validate() throws org.apache.thrift.TException {
15234
15235
15236 }
15237
15238 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15239 try {
15240 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15241 } catch (org.apache.thrift.TException te) {
15242 throw new java.io.IOException(te);
15243 }
15244 }
15245
15246 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15247 try {
15248
15249 __isset_bitfield = 0;
15250 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15251 } catch (org.apache.thrift.TException te) {
15252 throw new java.io.IOException(te);
15253 }
15254 }
15255
15256 private static class getVer_argsStandardSchemeFactory implements SchemeFactory {
15257 public getVer_argsStandardScheme getScheme() {
15258 return new getVer_argsStandardScheme();
15259 }
15260 }
15261
15262 private static class getVer_argsStandardScheme extends StandardScheme<getVer_args> {
15263
15264 public void read(org.apache.thrift.protocol.TProtocol iprot, getVer_args struct) throws org.apache.thrift.TException {
15265 org.apache.thrift.protocol.TField schemeField;
15266 iprot.readStructBegin();
15267 while (true)
15268 {
15269 schemeField = iprot.readFieldBegin();
15270 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15271 break;
15272 }
15273 switch (schemeField.id) {
15274 case 1:
15275 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15276 struct.tableName = iprot.readBinary();
15277 struct.setTableNameIsSet(true);
15278 } else {
15279 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15280 }
15281 break;
15282 case 2:
15283 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15284 struct.row = iprot.readBinary();
15285 struct.setRowIsSet(true);
15286 } else {
15287 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15288 }
15289 break;
15290 case 3:
15291 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15292 struct.column = iprot.readBinary();
15293 struct.setColumnIsSet(true);
15294 } else {
15295 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15296 }
15297 break;
15298 case 4:
15299 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15300 struct.numVersions = iprot.readI32();
15301 struct.setNumVersionsIsSet(true);
15302 } else {
15303 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15304 }
15305 break;
15306 case 5:
15307 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
15308 {
15309 org.apache.thrift.protocol.TMap _map102 = iprot.readMapBegin();
15310 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map102.size);
15311 for (int _i103 = 0; _i103 < _map102.size; ++_i103)
15312 {
15313 ByteBuffer _key104;
15314 ByteBuffer _val105;
15315 _key104 = iprot.readBinary();
15316 _val105 = iprot.readBinary();
15317 struct.attributes.put(_key104, _val105);
15318 }
15319 iprot.readMapEnd();
15320 }
15321 struct.setAttributesIsSet(true);
15322 } else {
15323 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15324 }
15325 break;
15326 default:
15327 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15328 }
15329 iprot.readFieldEnd();
15330 }
15331 iprot.readStructEnd();
15332
15333
15334 struct.validate();
15335 }
15336
15337 public void write(org.apache.thrift.protocol.TProtocol oprot, getVer_args struct) throws org.apache.thrift.TException {
15338 struct.validate();
15339
15340 oprot.writeStructBegin(STRUCT_DESC);
15341 if (struct.tableName != null) {
15342 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
15343 oprot.writeBinary(struct.tableName);
15344 oprot.writeFieldEnd();
15345 }
15346 if (struct.row != null) {
15347 oprot.writeFieldBegin(ROW_FIELD_DESC);
15348 oprot.writeBinary(struct.row);
15349 oprot.writeFieldEnd();
15350 }
15351 if (struct.column != null) {
15352 oprot.writeFieldBegin(COLUMN_FIELD_DESC);
15353 oprot.writeBinary(struct.column);
15354 oprot.writeFieldEnd();
15355 }
15356 oprot.writeFieldBegin(NUM_VERSIONS_FIELD_DESC);
15357 oprot.writeI32(struct.numVersions);
15358 oprot.writeFieldEnd();
15359 if (struct.attributes != null) {
15360 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
15361 {
15362 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
15363 for (Map.Entry<ByteBuffer, ByteBuffer> _iter106 : struct.attributes.entrySet())
15364 {
15365 oprot.writeBinary(_iter106.getKey());
15366 oprot.writeBinary(_iter106.getValue());
15367 }
15368 oprot.writeMapEnd();
15369 }
15370 oprot.writeFieldEnd();
15371 }
15372 oprot.writeFieldStop();
15373 oprot.writeStructEnd();
15374 }
15375
15376 }
15377
15378 private static class getVer_argsTupleSchemeFactory implements SchemeFactory {
15379 public getVer_argsTupleScheme getScheme() {
15380 return new getVer_argsTupleScheme();
15381 }
15382 }
15383
15384 private static class getVer_argsTupleScheme extends TupleScheme<getVer_args> {
15385
15386 @Override
15387 public void write(org.apache.thrift.protocol.TProtocol prot, getVer_args struct) throws org.apache.thrift.TException {
15388 TTupleProtocol oprot = (TTupleProtocol) prot;
15389 BitSet optionals = new BitSet();
15390 if (struct.isSetTableName()) {
15391 optionals.set(0);
15392 }
15393 if (struct.isSetRow()) {
15394 optionals.set(1);
15395 }
15396 if (struct.isSetColumn()) {
15397 optionals.set(2);
15398 }
15399 if (struct.isSetNumVersions()) {
15400 optionals.set(3);
15401 }
15402 if (struct.isSetAttributes()) {
15403 optionals.set(4);
15404 }
15405 oprot.writeBitSet(optionals, 5);
15406 if (struct.isSetTableName()) {
15407 oprot.writeBinary(struct.tableName);
15408 }
15409 if (struct.isSetRow()) {
15410 oprot.writeBinary(struct.row);
15411 }
15412 if (struct.isSetColumn()) {
15413 oprot.writeBinary(struct.column);
15414 }
15415 if (struct.isSetNumVersions()) {
15416 oprot.writeI32(struct.numVersions);
15417 }
15418 if (struct.isSetAttributes()) {
15419 {
15420 oprot.writeI32(struct.attributes.size());
15421 for (Map.Entry<ByteBuffer, ByteBuffer> _iter107 : struct.attributes.entrySet())
15422 {
15423 oprot.writeBinary(_iter107.getKey());
15424 oprot.writeBinary(_iter107.getValue());
15425 }
15426 }
15427 }
15428 }
15429
15430 @Override
15431 public void read(org.apache.thrift.protocol.TProtocol prot, getVer_args struct) throws org.apache.thrift.TException {
15432 TTupleProtocol iprot = (TTupleProtocol) prot;
15433 BitSet incoming = iprot.readBitSet(5);
15434 if (incoming.get(0)) {
15435 struct.tableName = iprot.readBinary();
15436 struct.setTableNameIsSet(true);
15437 }
15438 if (incoming.get(1)) {
15439 struct.row = iprot.readBinary();
15440 struct.setRowIsSet(true);
15441 }
15442 if (incoming.get(2)) {
15443 struct.column = iprot.readBinary();
15444 struct.setColumnIsSet(true);
15445 }
15446 if (incoming.get(3)) {
15447 struct.numVersions = iprot.readI32();
15448 struct.setNumVersionsIsSet(true);
15449 }
15450 if (incoming.get(4)) {
15451 {
15452 org.apache.thrift.protocol.TMap _map108 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
15453 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map108.size);
15454 for (int _i109 = 0; _i109 < _map108.size; ++_i109)
15455 {
15456 ByteBuffer _key110;
15457 ByteBuffer _val111;
15458 _key110 = iprot.readBinary();
15459 _val111 = iprot.readBinary();
15460 struct.attributes.put(_key110, _val111);
15461 }
15462 }
15463 struct.setAttributesIsSet(true);
15464 }
15465 }
15466 }
15467
15468 }
15469
15470 public static class getVer_result implements org.apache.thrift.TBase<getVer_result, getVer_result._Fields>, java.io.Serializable, Cloneable {
15471 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVer_result");
15472
15473 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
15474 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
15475
15476 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15477 static {
15478 schemes.put(StandardScheme.class, new getVer_resultStandardSchemeFactory());
15479 schemes.put(TupleScheme.class, new getVer_resultTupleSchemeFactory());
15480 }
15481
15482 public List<TCell> success;
15483 public IOError io;
15484
15485
15486 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15487 SUCCESS((short)0, "success"),
15488 IO((short)1, "io");
15489
15490 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15491
15492 static {
15493 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15494 byName.put(field.getFieldName(), field);
15495 }
15496 }
15497
15498
15499
15500
15501 public static _Fields findByThriftId(int fieldId) {
15502 switch(fieldId) {
15503 case 0:
15504 return SUCCESS;
15505 case 1:
15506 return IO;
15507 default:
15508 return null;
15509 }
15510 }
15511
15512
15513
15514
15515
15516 public static _Fields findByThriftIdOrThrow(int fieldId) {
15517 _Fields fields = findByThriftId(fieldId);
15518 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15519 return fields;
15520 }
15521
15522
15523
15524
15525 public static _Fields findByName(String name) {
15526 return byName.get(name);
15527 }
15528
15529 private final short _thriftId;
15530 private final String _fieldName;
15531
15532 _Fields(short thriftId, String fieldName) {
15533 _thriftId = thriftId;
15534 _fieldName = fieldName;
15535 }
15536
15537 public short getThriftFieldId() {
15538 return _thriftId;
15539 }
15540
15541 public String getFieldName() {
15542 return _fieldName;
15543 }
15544 }
15545
15546
15547 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15548 static {
15549 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15550 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15551 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
15552 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class))));
15553 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
15554 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15555 metaDataMap = Collections.unmodifiableMap(tmpMap);
15556 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVer_result.class, metaDataMap);
15557 }
15558
15559 public getVer_result() {
15560 }
15561
15562 public getVer_result(
15563 List<TCell> success,
15564 IOError io)
15565 {
15566 this();
15567 this.success = success;
15568 this.io = io;
15569 }
15570
15571
15572
15573
15574 public getVer_result(getVer_result other) {
15575 if (other.isSetSuccess()) {
15576 List<TCell> __this__success = new ArrayList<TCell>();
15577 for (TCell other_element : other.success) {
15578 __this__success.add(new TCell(other_element));
15579 }
15580 this.success = __this__success;
15581 }
15582 if (other.isSetIo()) {
15583 this.io = new IOError(other.io);
15584 }
15585 }
15586
15587 public getVer_result deepCopy() {
15588 return new getVer_result(this);
15589 }
15590
15591 @Override
15592 public void clear() {
15593 this.success = null;
15594 this.io = null;
15595 }
15596
15597 public int getSuccessSize() {
15598 return (this.success == null) ? 0 : this.success.size();
15599 }
15600
15601 public java.util.Iterator<TCell> getSuccessIterator() {
15602 return (this.success == null) ? null : this.success.iterator();
15603 }
15604
15605 public void addToSuccess(TCell elem) {
15606 if (this.success == null) {
15607 this.success = new ArrayList<TCell>();
15608 }
15609 this.success.add(elem);
15610 }
15611
15612 public List<TCell> getSuccess() {
15613 return this.success;
15614 }
15615
15616 public getVer_result setSuccess(List<TCell> success) {
15617 this.success = success;
15618 return this;
15619 }
15620
15621 public void unsetSuccess() {
15622 this.success = null;
15623 }
15624
15625
15626 public boolean isSetSuccess() {
15627 return this.success != null;
15628 }
15629
15630 public void setSuccessIsSet(boolean value) {
15631 if (!value) {
15632 this.success = null;
15633 }
15634 }
15635
15636 public IOError getIo() {
15637 return this.io;
15638 }
15639
15640 public getVer_result setIo(IOError io) {
15641 this.io = io;
15642 return this;
15643 }
15644
15645 public void unsetIo() {
15646 this.io = null;
15647 }
15648
15649
15650 public boolean isSetIo() {
15651 return this.io != null;
15652 }
15653
15654 public void setIoIsSet(boolean value) {
15655 if (!value) {
15656 this.io = null;
15657 }
15658 }
15659
15660 public void setFieldValue(_Fields field, Object value) {
15661 switch (field) {
15662 case SUCCESS:
15663 if (value == null) {
15664 unsetSuccess();
15665 } else {
15666 setSuccess((List<TCell>)value);
15667 }
15668 break;
15669
15670 case IO:
15671 if (value == null) {
15672 unsetIo();
15673 } else {
15674 setIo((IOError)value);
15675 }
15676 break;
15677
15678 }
15679 }
15680
15681 public Object getFieldValue(_Fields field) {
15682 switch (field) {
15683 case SUCCESS:
15684 return getSuccess();
15685
15686 case IO:
15687 return getIo();
15688
15689 }
15690 throw new IllegalStateException();
15691 }
15692
15693
15694 public boolean isSet(_Fields field) {
15695 if (field == null) {
15696 throw new IllegalArgumentException();
15697 }
15698
15699 switch (field) {
15700 case SUCCESS:
15701 return isSetSuccess();
15702 case IO:
15703 return isSetIo();
15704 }
15705 throw new IllegalStateException();
15706 }
15707
15708 @Override
15709 public boolean equals(Object that) {
15710 if (that == null)
15711 return false;
15712 if (that instanceof getVer_result)
15713 return this.equals((getVer_result)that);
15714 return false;
15715 }
15716
15717 public boolean equals(getVer_result that) {
15718 if (that == null)
15719 return false;
15720
15721 boolean this_present_success = true && this.isSetSuccess();
15722 boolean that_present_success = true && that.isSetSuccess();
15723 if (this_present_success || that_present_success) {
15724 if (!(this_present_success && that_present_success))
15725 return false;
15726 if (!this.success.equals(that.success))
15727 return false;
15728 }
15729
15730 boolean this_present_io = true && this.isSetIo();
15731 boolean that_present_io = true && that.isSetIo();
15732 if (this_present_io || that_present_io) {
15733 if (!(this_present_io && that_present_io))
15734 return false;
15735 if (!this.io.equals(that.io))
15736 return false;
15737 }
15738
15739 return true;
15740 }
15741
15742 @Override
15743 public int hashCode() {
15744 HashCodeBuilder builder = new HashCodeBuilder();
15745
15746 boolean present_success = true && (isSetSuccess());
15747 builder.append(present_success);
15748 if (present_success)
15749 builder.append(success);
15750
15751 boolean present_io = true && (isSetIo());
15752 builder.append(present_io);
15753 if (present_io)
15754 builder.append(io);
15755
15756 return builder.toHashCode();
15757 }
15758
15759 public int compareTo(getVer_result other) {
15760 if (!getClass().equals(other.getClass())) {
15761 return getClass().getName().compareTo(other.getClass().getName());
15762 }
15763
15764 int lastComparison = 0;
15765 getVer_result typedOther = (getVer_result)other;
15766
15767 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15768 if (lastComparison != 0) {
15769 return lastComparison;
15770 }
15771 if (isSetSuccess()) {
15772 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15773 if (lastComparison != 0) {
15774 return lastComparison;
15775 }
15776 }
15777 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
15778 if (lastComparison != 0) {
15779 return lastComparison;
15780 }
15781 if (isSetIo()) {
15782 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
15783 if (lastComparison != 0) {
15784 return lastComparison;
15785 }
15786 }
15787 return 0;
15788 }
15789
15790 public _Fields fieldForId(int fieldId) {
15791 return _Fields.findByThriftId(fieldId);
15792 }
15793
15794 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15795 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15796 }
15797
15798 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15799 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15800 }
15801
15802 @Override
15803 public String toString() {
15804 StringBuilder sb = new StringBuilder("getVer_result(");
15805 boolean first = true;
15806
15807 sb.append("success:");
15808 if (this.success == null) {
15809 sb.append("null");
15810 } else {
15811 sb.append(this.success);
15812 }
15813 first = false;
15814 if (!first) sb.append(", ");
15815 sb.append("io:");
15816 if (this.io == null) {
15817 sb.append("null");
15818 } else {
15819 sb.append(this.io);
15820 }
15821 first = false;
15822 sb.append(")");
15823 return sb.toString();
15824 }
15825
15826 public void validate() throws org.apache.thrift.TException {
15827
15828
15829 }
15830
15831 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15832 try {
15833 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15834 } catch (org.apache.thrift.TException te) {
15835 throw new java.io.IOException(te);
15836 }
15837 }
15838
15839 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15840 try {
15841 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15842 } catch (org.apache.thrift.TException te) {
15843 throw new java.io.IOException(te);
15844 }
15845 }
15846
15847 private static class getVer_resultStandardSchemeFactory implements SchemeFactory {
15848 public getVer_resultStandardScheme getScheme() {
15849 return new getVer_resultStandardScheme();
15850 }
15851 }
15852
15853 private static class getVer_resultStandardScheme extends StandardScheme<getVer_result> {
15854
15855 public void read(org.apache.thrift.protocol.TProtocol iprot, getVer_result struct) throws org.apache.thrift.TException {
15856 org.apache.thrift.protocol.TField schemeField;
15857 iprot.readStructBegin();
15858 while (true)
15859 {
15860 schemeField = iprot.readFieldBegin();
15861 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15862 break;
15863 }
15864 switch (schemeField.id) {
15865 case 0:
15866 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
15867 {
15868 org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
15869 struct.success = new ArrayList<TCell>(_list112.size);
15870 for (int _i113 = 0; _i113 < _list112.size; ++_i113)
15871 {
15872 TCell _elem114;
15873 _elem114 = new TCell();
15874 _elem114.read(iprot);
15875 struct.success.add(_elem114);
15876 }
15877 iprot.readListEnd();
15878 }
15879 struct.setSuccessIsSet(true);
15880 } else {
15881 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15882 }
15883 break;
15884 case 1:
15885 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
15886 struct.io = new IOError();
15887 struct.io.read(iprot);
15888 struct.setIoIsSet(true);
15889 } else {
15890 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15891 }
15892 break;
15893 default:
15894 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15895 }
15896 iprot.readFieldEnd();
15897 }
15898 iprot.readStructEnd();
15899
15900
15901 struct.validate();
15902 }
15903
15904 public void write(org.apache.thrift.protocol.TProtocol oprot, getVer_result struct) throws org.apache.thrift.TException {
15905 struct.validate();
15906
15907 oprot.writeStructBegin(STRUCT_DESC);
15908 if (struct.success != null) {
15909 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15910 {
15911 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
15912 for (TCell _iter115 : struct.success)
15913 {
15914 _iter115.write(oprot);
15915 }
15916 oprot.writeListEnd();
15917 }
15918 oprot.writeFieldEnd();
15919 }
15920 if (struct.io != null) {
15921 oprot.writeFieldBegin(IO_FIELD_DESC);
15922 struct.io.write(oprot);
15923 oprot.writeFieldEnd();
15924 }
15925 oprot.writeFieldStop();
15926 oprot.writeStructEnd();
15927 }
15928
15929 }
15930
15931 private static class getVer_resultTupleSchemeFactory implements SchemeFactory {
15932 public getVer_resultTupleScheme getScheme() {
15933 return new getVer_resultTupleScheme();
15934 }
15935 }
15936
15937 private static class getVer_resultTupleScheme extends TupleScheme<getVer_result> {
15938
15939 @Override
15940 public void write(org.apache.thrift.protocol.TProtocol prot, getVer_result struct) throws org.apache.thrift.TException {
15941 TTupleProtocol oprot = (TTupleProtocol) prot;
15942 BitSet optionals = new BitSet();
15943 if (struct.isSetSuccess()) {
15944 optionals.set(0);
15945 }
15946 if (struct.isSetIo()) {
15947 optionals.set(1);
15948 }
15949 oprot.writeBitSet(optionals, 2);
15950 if (struct.isSetSuccess()) {
15951 {
15952 oprot.writeI32(struct.success.size());
15953 for (TCell _iter116 : struct.success)
15954 {
15955 _iter116.write(oprot);
15956 }
15957 }
15958 }
15959 if (struct.isSetIo()) {
15960 struct.io.write(oprot);
15961 }
15962 }
15963
15964 @Override
15965 public void read(org.apache.thrift.protocol.TProtocol prot, getVer_result struct) throws org.apache.thrift.TException {
15966 TTupleProtocol iprot = (TTupleProtocol) prot;
15967 BitSet incoming = iprot.readBitSet(2);
15968 if (incoming.get(0)) {
15969 {
15970 org.apache.thrift.protocol.TList _list117 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
15971 struct.success = new ArrayList<TCell>(_list117.size);
15972 for (int _i118 = 0; _i118 < _list117.size; ++_i118)
15973 {
15974 TCell _elem119;
15975 _elem119 = new TCell();
15976 _elem119.read(iprot);
15977 struct.success.add(_elem119);
15978 }
15979 }
15980 struct.setSuccessIsSet(true);
15981 }
15982 if (incoming.get(1)) {
15983 struct.io = new IOError();
15984 struct.io.read(iprot);
15985 struct.setIoIsSet(true);
15986 }
15987 }
15988 }
15989
15990 }
15991
15992 public static class getVerTs_args implements org.apache.thrift.TBase<getVerTs_args, getVerTs_args._Fields>, java.io.Serializable, Cloneable {
15993 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVerTs_args");
15994
15995 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
15996 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
15997 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
15998 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
15999 private static final org.apache.thrift.protocol.TField NUM_VERSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("numVersions", org.apache.thrift.protocol.TType.I32, (short)5);
16000 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)6);
16001
16002 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16003 static {
16004 schemes.put(StandardScheme.class, new getVerTs_argsStandardSchemeFactory());
16005 schemes.put(TupleScheme.class, new getVerTs_argsTupleSchemeFactory());
16006 }
16007
16008
16009
16010
16011 public ByteBuffer tableName;
16012
16013
16014
16015 public ByteBuffer row;
16016
16017
16018
16019 public ByteBuffer column;
16020
16021
16022
16023 public long timestamp;
16024
16025
16026
16027 public int numVersions;
16028
16029
16030
16031 public Map<ByteBuffer,ByteBuffer> attributes;
16032
16033
16034 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16035
16036
16037
16038 TABLE_NAME((short)1, "tableName"),
16039
16040
16041
16042 ROW((short)2, "row"),
16043
16044
16045
16046 COLUMN((short)3, "column"),
16047
16048
16049
16050 TIMESTAMP((short)4, "timestamp"),
16051
16052
16053
16054 NUM_VERSIONS((short)5, "numVersions"),
16055
16056
16057
16058 ATTRIBUTES((short)6, "attributes");
16059
16060 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16061
16062 static {
16063 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16064 byName.put(field.getFieldName(), field);
16065 }
16066 }
16067
16068
16069
16070
16071 public static _Fields findByThriftId(int fieldId) {
16072 switch(fieldId) {
16073 case 1:
16074 return TABLE_NAME;
16075 case 2:
16076 return ROW;
16077 case 3:
16078 return COLUMN;
16079 case 4:
16080 return TIMESTAMP;
16081 case 5:
16082 return NUM_VERSIONS;
16083 case 6:
16084 return ATTRIBUTES;
16085 default:
16086 return null;
16087 }
16088 }
16089
16090
16091
16092
16093
16094 public static _Fields findByThriftIdOrThrow(int fieldId) {
16095 _Fields fields = findByThriftId(fieldId);
16096 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16097 return fields;
16098 }
16099
16100
16101
16102
16103 public static _Fields findByName(String name) {
16104 return byName.get(name);
16105 }
16106
16107 private final short _thriftId;
16108 private final String _fieldName;
16109
16110 _Fields(short thriftId, String fieldName) {
16111 _thriftId = thriftId;
16112 _fieldName = fieldName;
16113 }
16114
16115 public short getThriftFieldId() {
16116 return _thriftId;
16117 }
16118
16119 public String getFieldName() {
16120 return _fieldName;
16121 }
16122 }
16123
16124
16125 private static final int __TIMESTAMP_ISSET_ID = 0;
16126 private static final int __NUMVERSIONS_ISSET_ID = 1;
16127 private byte __isset_bitfield = 0;
16128 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16129 static {
16130 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16131 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
16132 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
16133 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
16134 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
16135 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT,
16136 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
16137 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
16138 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16139 tmpMap.put(_Fields.NUM_VERSIONS, new org.apache.thrift.meta_data.FieldMetaData("numVersions", org.apache.thrift.TFieldRequirementType.DEFAULT,
16140 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16141 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
16142 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
16143 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
16144 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
16145 metaDataMap = Collections.unmodifiableMap(tmpMap);
16146 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVerTs_args.class, metaDataMap);
16147 }
16148
16149 public getVerTs_args() {
16150 }
16151
16152 public getVerTs_args(
16153 ByteBuffer tableName,
16154 ByteBuffer row,
16155 ByteBuffer column,
16156 long timestamp,
16157 int numVersions,
16158 Map<ByteBuffer,ByteBuffer> attributes)
16159 {
16160 this();
16161 this.tableName = tableName;
16162 this.row = row;
16163 this.column = column;
16164 this.timestamp = timestamp;
16165 setTimestampIsSet(true);
16166 this.numVersions = numVersions;
16167 setNumVersionsIsSet(true);
16168 this.attributes = attributes;
16169 }
16170
16171
16172
16173
16174 public getVerTs_args(getVerTs_args other) {
16175 __isset_bitfield = other.__isset_bitfield;
16176 if (other.isSetTableName()) {
16177 this.tableName = other.tableName;
16178 }
16179 if (other.isSetRow()) {
16180 this.row = other.row;
16181 }
16182 if (other.isSetColumn()) {
16183 this.column = other.column;
16184 }
16185 this.timestamp = other.timestamp;
16186 this.numVersions = other.numVersions;
16187 if (other.isSetAttributes()) {
16188 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
16189 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
16190
16191 ByteBuffer other_element_key = other_element.getKey();
16192 ByteBuffer other_element_value = other_element.getValue();
16193
16194 ByteBuffer __this__attributes_copy_key = other_element_key;
16195
16196 ByteBuffer __this__attributes_copy_value = other_element_value;
16197
16198 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
16199 }
16200 this.attributes = __this__attributes;
16201 }
16202 }
16203
16204 public getVerTs_args deepCopy() {
16205 return new getVerTs_args(this);
16206 }
16207
16208 @Override
16209 public void clear() {
16210 this.tableName = null;
16211 this.row = null;
16212 this.column = null;
16213 setTimestampIsSet(false);
16214 this.timestamp = 0;
16215 setNumVersionsIsSet(false);
16216 this.numVersions = 0;
16217 this.attributes = null;
16218 }
16219
16220
16221
16222
16223 public byte[] getTableName() {
16224 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
16225 return tableName == null ? null : tableName.array();
16226 }
16227
16228 public ByteBuffer bufferForTableName() {
16229 return tableName;
16230 }
16231
16232
16233
16234
16235 public getVerTs_args setTableName(byte[] tableName) {
16236 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
16237 return this;
16238 }
16239
16240 public getVerTs_args setTableName(ByteBuffer tableName) {
16241 this.tableName = tableName;
16242 return this;
16243 }
16244
16245 public void unsetTableName() {
16246 this.tableName = null;
16247 }
16248
16249
16250 public boolean isSetTableName() {
16251 return this.tableName != null;
16252 }
16253
16254 public void setTableNameIsSet(boolean value) {
16255 if (!value) {
16256 this.tableName = null;
16257 }
16258 }
16259
16260
16261
16262
16263 public byte[] getRow() {
16264 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
16265 return row == null ? null : row.array();
16266 }
16267
16268 public ByteBuffer bufferForRow() {
16269 return row;
16270 }
16271
16272
16273
16274
16275 public getVerTs_args setRow(byte[] row) {
16276 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
16277 return this;
16278 }
16279
16280 public getVerTs_args setRow(ByteBuffer row) {
16281 this.row = row;
16282 return this;
16283 }
16284
16285 public void unsetRow() {
16286 this.row = null;
16287 }
16288
16289
16290 public boolean isSetRow() {
16291 return this.row != null;
16292 }
16293
16294 public void setRowIsSet(boolean value) {
16295 if (!value) {
16296 this.row = null;
16297 }
16298 }
16299
16300
16301
16302
16303 public byte[] getColumn() {
16304 setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
16305 return column == null ? null : column.array();
16306 }
16307
16308 public ByteBuffer bufferForColumn() {
16309 return column;
16310 }
16311
16312
16313
16314
16315 public getVerTs_args setColumn(byte[] column) {
16316 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
16317 return this;
16318 }
16319
16320 public getVerTs_args setColumn(ByteBuffer column) {
16321 this.column = column;
16322 return this;
16323 }
16324
16325 public void unsetColumn() {
16326 this.column = null;
16327 }
16328
16329
16330 public boolean isSetColumn() {
16331 return this.column != null;
16332 }
16333
16334 public void setColumnIsSet(boolean value) {
16335 if (!value) {
16336 this.column = null;
16337 }
16338 }
16339
16340
16341
16342
16343 public long getTimestamp() {
16344 return this.timestamp;
16345 }
16346
16347
16348
16349
16350 public getVerTs_args setTimestamp(long timestamp) {
16351 this.timestamp = timestamp;
16352 setTimestampIsSet(true);
16353 return this;
16354 }
16355
16356 public void unsetTimestamp() {
16357 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
16358 }
16359
16360
16361 public boolean isSetTimestamp() {
16362 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
16363 }
16364
16365 public void setTimestampIsSet(boolean value) {
16366 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
16367 }
16368
16369
16370
16371
16372 public int getNumVersions() {
16373 return this.numVersions;
16374 }
16375
16376
16377
16378
16379 public getVerTs_args setNumVersions(int numVersions) {
16380 this.numVersions = numVersions;
16381 setNumVersionsIsSet(true);
16382 return this;
16383 }
16384
16385 public void unsetNumVersions() {
16386 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID);
16387 }
16388
16389
16390 public boolean isSetNumVersions() {
16391 return EncodingUtils.testBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID);
16392 }
16393
16394 public void setNumVersionsIsSet(boolean value) {
16395 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NUMVERSIONS_ISSET_ID, value);
16396 }
16397
16398 public int getAttributesSize() {
16399 return (this.attributes == null) ? 0 : this.attributes.size();
16400 }
16401
16402 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
16403 if (this.attributes == null) {
16404 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
16405 }
16406 this.attributes.put(key, val);
16407 }
16408
16409
16410
16411
16412 public Map<ByteBuffer,ByteBuffer> getAttributes() {
16413 return this.attributes;
16414 }
16415
16416
16417
16418
16419 public getVerTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
16420 this.attributes = attributes;
16421 return this;
16422 }
16423
16424 public void unsetAttributes() {
16425 this.attributes = null;
16426 }
16427
16428
16429 public boolean isSetAttributes() {
16430 return this.attributes != null;
16431 }
16432
16433 public void setAttributesIsSet(boolean value) {
16434 if (!value) {
16435 this.attributes = null;
16436 }
16437 }
16438
16439 public void setFieldValue(_Fields field, Object value) {
16440 switch (field) {
16441 case TABLE_NAME:
16442 if (value == null) {
16443 unsetTableName();
16444 } else {
16445 setTableName((ByteBuffer)value);
16446 }
16447 break;
16448
16449 case ROW:
16450 if (value == null) {
16451 unsetRow();
16452 } else {
16453 setRow((ByteBuffer)value);
16454 }
16455 break;
16456
16457 case COLUMN:
16458 if (value == null) {
16459 unsetColumn();
16460 } else {
16461 setColumn((ByteBuffer)value);
16462 }
16463 break;
16464
16465 case TIMESTAMP:
16466 if (value == null) {
16467 unsetTimestamp();
16468 } else {
16469 setTimestamp((Long)value);
16470 }
16471 break;
16472
16473 case NUM_VERSIONS:
16474 if (value == null) {
16475 unsetNumVersions();
16476 } else {
16477 setNumVersions((Integer)value);
16478 }
16479 break;
16480
16481 case ATTRIBUTES:
16482 if (value == null) {
16483 unsetAttributes();
16484 } else {
16485 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
16486 }
16487 break;
16488
16489 }
16490 }
16491
16492 public Object getFieldValue(_Fields field) {
16493 switch (field) {
16494 case TABLE_NAME:
16495 return getTableName();
16496
16497 case ROW:
16498 return getRow();
16499
16500 case COLUMN:
16501 return getColumn();
16502
16503 case TIMESTAMP:
16504 return Long.valueOf(getTimestamp());
16505
16506 case NUM_VERSIONS:
16507 return Integer.valueOf(getNumVersions());
16508
16509 case ATTRIBUTES:
16510 return getAttributes();
16511
16512 }
16513 throw new IllegalStateException();
16514 }
16515
16516
16517 public boolean isSet(_Fields field) {
16518 if (field == null) {
16519 throw new IllegalArgumentException();
16520 }
16521
16522 switch (field) {
16523 case TABLE_NAME:
16524 return isSetTableName();
16525 case ROW:
16526 return isSetRow();
16527 case COLUMN:
16528 return isSetColumn();
16529 case TIMESTAMP:
16530 return isSetTimestamp();
16531 case NUM_VERSIONS:
16532 return isSetNumVersions();
16533 case ATTRIBUTES:
16534 return isSetAttributes();
16535 }
16536 throw new IllegalStateException();
16537 }
16538
16539 @Override
16540 public boolean equals(Object that) {
16541 if (that == null)
16542 return false;
16543 if (that instanceof getVerTs_args)
16544 return this.equals((getVerTs_args)that);
16545 return false;
16546 }
16547
16548 public boolean equals(getVerTs_args that) {
16549 if (that == null)
16550 return false;
16551
16552 boolean this_present_tableName = true && this.isSetTableName();
16553 boolean that_present_tableName = true && that.isSetTableName();
16554 if (this_present_tableName || that_present_tableName) {
16555 if (!(this_present_tableName && that_present_tableName))
16556 return false;
16557 if (!this.tableName.equals(that.tableName))
16558 return false;
16559 }
16560
16561 boolean this_present_row = true && this.isSetRow();
16562 boolean that_present_row = true && that.isSetRow();
16563 if (this_present_row || that_present_row) {
16564 if (!(this_present_row && that_present_row))
16565 return false;
16566 if (!this.row.equals(that.row))
16567 return false;
16568 }
16569
16570 boolean this_present_column = true && this.isSetColumn();
16571 boolean that_present_column = true && that.isSetColumn();
16572 if (this_present_column || that_present_column) {
16573 if (!(this_present_column && that_present_column))
16574 return false;
16575 if (!this.column.equals(that.column))
16576 return false;
16577 }
16578
16579 boolean this_present_timestamp = true;
16580 boolean that_present_timestamp = true;
16581 if (this_present_timestamp || that_present_timestamp) {
16582 if (!(this_present_timestamp && that_present_timestamp))
16583 return false;
16584 if (this.timestamp != that.timestamp)
16585 return false;
16586 }
16587
16588 boolean this_present_numVersions = true;
16589 boolean that_present_numVersions = true;
16590 if (this_present_numVersions || that_present_numVersions) {
16591 if (!(this_present_numVersions && that_present_numVersions))
16592 return false;
16593 if (this.numVersions != that.numVersions)
16594 return false;
16595 }
16596
16597 boolean this_present_attributes = true && this.isSetAttributes();
16598 boolean that_present_attributes = true && that.isSetAttributes();
16599 if (this_present_attributes || that_present_attributes) {
16600 if (!(this_present_attributes && that_present_attributes))
16601 return false;
16602 if (!this.attributes.equals(that.attributes))
16603 return false;
16604 }
16605
16606 return true;
16607 }
16608
16609 @Override
16610 public int hashCode() {
16611 HashCodeBuilder builder = new HashCodeBuilder();
16612
16613 boolean present_tableName = true && (isSetTableName());
16614 builder.append(present_tableName);
16615 if (present_tableName)
16616 builder.append(tableName);
16617
16618 boolean present_row = true && (isSetRow());
16619 builder.append(present_row);
16620 if (present_row)
16621 builder.append(row);
16622
16623 boolean present_column = true && (isSetColumn());
16624 builder.append(present_column);
16625 if (present_column)
16626 builder.append(column);
16627
16628 boolean present_timestamp = true;
16629 builder.append(present_timestamp);
16630 if (present_timestamp)
16631 builder.append(timestamp);
16632
16633 boolean present_numVersions = true;
16634 builder.append(present_numVersions);
16635 if (present_numVersions)
16636 builder.append(numVersions);
16637
16638 boolean present_attributes = true && (isSetAttributes());
16639 builder.append(present_attributes);
16640 if (present_attributes)
16641 builder.append(attributes);
16642
16643 return builder.toHashCode();
16644 }
16645
16646 public int compareTo(getVerTs_args other) {
16647 if (!getClass().equals(other.getClass())) {
16648 return getClass().getName().compareTo(other.getClass().getName());
16649 }
16650
16651 int lastComparison = 0;
16652 getVerTs_args typedOther = (getVerTs_args)other;
16653
16654 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
16655 if (lastComparison != 0) {
16656 return lastComparison;
16657 }
16658 if (isSetTableName()) {
16659 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
16660 if (lastComparison != 0) {
16661 return lastComparison;
16662 }
16663 }
16664 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
16665 if (lastComparison != 0) {
16666 return lastComparison;
16667 }
16668 if (isSetRow()) {
16669 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
16670 if (lastComparison != 0) {
16671 return lastComparison;
16672 }
16673 }
16674 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
16675 if (lastComparison != 0) {
16676 return lastComparison;
16677 }
16678 if (isSetColumn()) {
16679 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
16680 if (lastComparison != 0) {
16681 return lastComparison;
16682 }
16683 }
16684 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
16685 if (lastComparison != 0) {
16686 return lastComparison;
16687 }
16688 if (isSetTimestamp()) {
16689 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
16690 if (lastComparison != 0) {
16691 return lastComparison;
16692 }
16693 }
16694 lastComparison = Boolean.valueOf(isSetNumVersions()).compareTo(typedOther.isSetNumVersions());
16695 if (lastComparison != 0) {
16696 return lastComparison;
16697 }
16698 if (isSetNumVersions()) {
16699 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numVersions, typedOther.numVersions);
16700 if (lastComparison != 0) {
16701 return lastComparison;
16702 }
16703 }
16704 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
16705 if (lastComparison != 0) {
16706 return lastComparison;
16707 }
16708 if (isSetAttributes()) {
16709 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
16710 if (lastComparison != 0) {
16711 return lastComparison;
16712 }
16713 }
16714 return 0;
16715 }
16716
16717 public _Fields fieldForId(int fieldId) {
16718 return _Fields.findByThriftId(fieldId);
16719 }
16720
16721 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16722 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16723 }
16724
16725 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16726 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16727 }
16728
16729 @Override
16730 public String toString() {
16731 StringBuilder sb = new StringBuilder("getVerTs_args(");
16732 boolean first = true;
16733
16734 sb.append("tableName:");
16735 if (this.tableName == null) {
16736 sb.append("null");
16737 } else {
16738 sb.append(this.tableName);
16739 }
16740 first = false;
16741 if (!first) sb.append(", ");
16742 sb.append("row:");
16743 if (this.row == null) {
16744 sb.append("null");
16745 } else {
16746 sb.append(this.row);
16747 }
16748 first = false;
16749 if (!first) sb.append(", ");
16750 sb.append("column:");
16751 if (this.column == null) {
16752 sb.append("null");
16753 } else {
16754 sb.append(this.column);
16755 }
16756 first = false;
16757 if (!first) sb.append(", ");
16758 sb.append("timestamp:");
16759 sb.append(this.timestamp);
16760 first = false;
16761 if (!first) sb.append(", ");
16762 sb.append("numVersions:");
16763 sb.append(this.numVersions);
16764 first = false;
16765 if (!first) sb.append(", ");
16766 sb.append("attributes:");
16767 if (this.attributes == null) {
16768 sb.append("null");
16769 } else {
16770 sb.append(this.attributes);
16771 }
16772 first = false;
16773 sb.append(")");
16774 return sb.toString();
16775 }
16776
16777 public void validate() throws org.apache.thrift.TException {
16778
16779
16780 }
16781
16782 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16783 try {
16784 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16785 } catch (org.apache.thrift.TException te) {
16786 throw new java.io.IOException(te);
16787 }
16788 }
16789
16790 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16791 try {
16792
16793 __isset_bitfield = 0;
16794 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16795 } catch (org.apache.thrift.TException te) {
16796 throw new java.io.IOException(te);
16797 }
16798 }
16799
16800 private static class getVerTs_argsStandardSchemeFactory implements SchemeFactory {
16801 public getVerTs_argsStandardScheme getScheme() {
16802 return new getVerTs_argsStandardScheme();
16803 }
16804 }
16805
16806 private static class getVerTs_argsStandardScheme extends StandardScheme<getVerTs_args> {
16807
16808 public void read(org.apache.thrift.protocol.TProtocol iprot, getVerTs_args struct) throws org.apache.thrift.TException {
16809 org.apache.thrift.protocol.TField schemeField;
16810 iprot.readStructBegin();
16811 while (true)
16812 {
16813 schemeField = iprot.readFieldBegin();
16814 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16815 break;
16816 }
16817 switch (schemeField.id) {
16818 case 1:
16819 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16820 struct.tableName = iprot.readBinary();
16821 struct.setTableNameIsSet(true);
16822 } else {
16823 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16824 }
16825 break;
16826 case 2:
16827 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16828 struct.row = iprot.readBinary();
16829 struct.setRowIsSet(true);
16830 } else {
16831 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16832 }
16833 break;
16834 case 3:
16835 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16836 struct.column = iprot.readBinary();
16837 struct.setColumnIsSet(true);
16838 } else {
16839 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16840 }
16841 break;
16842 case 4:
16843 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
16844 struct.timestamp = iprot.readI64();
16845 struct.setTimestampIsSet(true);
16846 } else {
16847 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16848 }
16849 break;
16850 case 5:
16851 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16852 struct.numVersions = iprot.readI32();
16853 struct.setNumVersionsIsSet(true);
16854 } else {
16855 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16856 }
16857 break;
16858 case 6:
16859 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
16860 {
16861 org.apache.thrift.protocol.TMap _map120 = iprot.readMapBegin();
16862 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map120.size);
16863 for (int _i121 = 0; _i121 < _map120.size; ++_i121)
16864 {
16865 ByteBuffer _key122;
16866 ByteBuffer _val123;
16867 _key122 = iprot.readBinary();
16868 _val123 = iprot.readBinary();
16869 struct.attributes.put(_key122, _val123);
16870 }
16871 iprot.readMapEnd();
16872 }
16873 struct.setAttributesIsSet(true);
16874 } else {
16875 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16876 }
16877 break;
16878 default:
16879 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16880 }
16881 iprot.readFieldEnd();
16882 }
16883 iprot.readStructEnd();
16884
16885
16886 struct.validate();
16887 }
16888
16889 public void write(org.apache.thrift.protocol.TProtocol oprot, getVerTs_args struct) throws org.apache.thrift.TException {
16890 struct.validate();
16891
16892 oprot.writeStructBegin(STRUCT_DESC);
16893 if (struct.tableName != null) {
16894 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
16895 oprot.writeBinary(struct.tableName);
16896 oprot.writeFieldEnd();
16897 }
16898 if (struct.row != null) {
16899 oprot.writeFieldBegin(ROW_FIELD_DESC);
16900 oprot.writeBinary(struct.row);
16901 oprot.writeFieldEnd();
16902 }
16903 if (struct.column != null) {
16904 oprot.writeFieldBegin(COLUMN_FIELD_DESC);
16905 oprot.writeBinary(struct.column);
16906 oprot.writeFieldEnd();
16907 }
16908 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
16909 oprot.writeI64(struct.timestamp);
16910 oprot.writeFieldEnd();
16911 oprot.writeFieldBegin(NUM_VERSIONS_FIELD_DESC);
16912 oprot.writeI32(struct.numVersions);
16913 oprot.writeFieldEnd();
16914 if (struct.attributes != null) {
16915 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
16916 {
16917 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
16918 for (Map.Entry<ByteBuffer, ByteBuffer> _iter124 : struct.attributes.entrySet())
16919 {
16920 oprot.writeBinary(_iter124.getKey());
16921 oprot.writeBinary(_iter124.getValue());
16922 }
16923 oprot.writeMapEnd();
16924 }
16925 oprot.writeFieldEnd();
16926 }
16927 oprot.writeFieldStop();
16928 oprot.writeStructEnd();
16929 }
16930
16931 }
16932
16933 private static class getVerTs_argsTupleSchemeFactory implements SchemeFactory {
16934 public getVerTs_argsTupleScheme getScheme() {
16935 return new getVerTs_argsTupleScheme();
16936 }
16937 }
16938
16939 private static class getVerTs_argsTupleScheme extends TupleScheme<getVerTs_args> {
16940
16941 @Override
16942 public void write(org.apache.thrift.protocol.TProtocol prot, getVerTs_args struct) throws org.apache.thrift.TException {
16943 TTupleProtocol oprot = (TTupleProtocol) prot;
16944 BitSet optionals = new BitSet();
16945 if (struct.isSetTableName()) {
16946 optionals.set(0);
16947 }
16948 if (struct.isSetRow()) {
16949 optionals.set(1);
16950 }
16951 if (struct.isSetColumn()) {
16952 optionals.set(2);
16953 }
16954 if (struct.isSetTimestamp()) {
16955 optionals.set(3);
16956 }
16957 if (struct.isSetNumVersions()) {
16958 optionals.set(4);
16959 }
16960 if (struct.isSetAttributes()) {
16961 optionals.set(5);
16962 }
16963 oprot.writeBitSet(optionals, 6);
16964 if (struct.isSetTableName()) {
16965 oprot.writeBinary(struct.tableName);
16966 }
16967 if (struct.isSetRow()) {
16968 oprot.writeBinary(struct.row);
16969 }
16970 if (struct.isSetColumn()) {
16971 oprot.writeBinary(struct.column);
16972 }
16973 if (struct.isSetTimestamp()) {
16974 oprot.writeI64(struct.timestamp);
16975 }
16976 if (struct.isSetNumVersions()) {
16977 oprot.writeI32(struct.numVersions);
16978 }
16979 if (struct.isSetAttributes()) {
16980 {
16981 oprot.writeI32(struct.attributes.size());
16982 for (Map.Entry<ByteBuffer, ByteBuffer> _iter125 : struct.attributes.entrySet())
16983 {
16984 oprot.writeBinary(_iter125.getKey());
16985 oprot.writeBinary(_iter125.getValue());
16986 }
16987 }
16988 }
16989 }
16990
16991 @Override
16992 public void read(org.apache.thrift.protocol.TProtocol prot, getVerTs_args struct) throws org.apache.thrift.TException {
16993 TTupleProtocol iprot = (TTupleProtocol) prot;
16994 BitSet incoming = iprot.readBitSet(6);
16995 if (incoming.get(0)) {
16996 struct.tableName = iprot.readBinary();
16997 struct.setTableNameIsSet(true);
16998 }
16999 if (incoming.get(1)) {
17000 struct.row = iprot.readBinary();
17001 struct.setRowIsSet(true);
17002 }
17003 if (incoming.get(2)) {
17004 struct.column = iprot.readBinary();
17005 struct.setColumnIsSet(true);
17006 }
17007 if (incoming.get(3)) {
17008 struct.timestamp = iprot.readI64();
17009 struct.setTimestampIsSet(true);
17010 }
17011 if (incoming.get(4)) {
17012 struct.numVersions = iprot.readI32();
17013 struct.setNumVersionsIsSet(true);
17014 }
17015 if (incoming.get(5)) {
17016 {
17017 org.apache.thrift.protocol.TMap _map126 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
17018 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map126.size);
17019 for (int _i127 = 0; _i127 < _map126.size; ++_i127)
17020 {
17021 ByteBuffer _key128;
17022 ByteBuffer _val129;
17023 _key128 = iprot.readBinary();
17024 _val129 = iprot.readBinary();
17025 struct.attributes.put(_key128, _val129);
17026 }
17027 }
17028 struct.setAttributesIsSet(true);
17029 }
17030 }
17031 }
17032
17033 }
17034
17035 public static class getVerTs_result implements org.apache.thrift.TBase<getVerTs_result, getVerTs_result._Fields>, java.io.Serializable, Cloneable {
17036 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVerTs_result");
17037
17038 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
17039 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
17040
17041 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17042 static {
17043 schemes.put(StandardScheme.class, new getVerTs_resultStandardSchemeFactory());
17044 schemes.put(TupleScheme.class, new getVerTs_resultTupleSchemeFactory());
17045 }
17046
17047 public List<TCell> success;
17048 public IOError io;
17049
17050
17051 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17052 SUCCESS((short)0, "success"),
17053 IO((short)1, "io");
17054
17055 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17056
17057 static {
17058 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17059 byName.put(field.getFieldName(), field);
17060 }
17061 }
17062
17063
17064
17065
17066 public static _Fields findByThriftId(int fieldId) {
17067 switch(fieldId) {
17068 case 0:
17069 return SUCCESS;
17070 case 1:
17071 return IO;
17072 default:
17073 return null;
17074 }
17075 }
17076
17077
17078
17079
17080
17081 public static _Fields findByThriftIdOrThrow(int fieldId) {
17082 _Fields fields = findByThriftId(fieldId);
17083 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17084 return fields;
17085 }
17086
17087
17088
17089
17090 public static _Fields findByName(String name) {
17091 return byName.get(name);
17092 }
17093
17094 private final short _thriftId;
17095 private final String _fieldName;
17096
17097 _Fields(short thriftId, String fieldName) {
17098 _thriftId = thriftId;
17099 _fieldName = fieldName;
17100 }
17101
17102 public short getThriftFieldId() {
17103 return _thriftId;
17104 }
17105
17106 public String getFieldName() {
17107 return _fieldName;
17108 }
17109 }
17110
17111
17112 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17113 static {
17114 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17115 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17116 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
17117 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class))));
17118 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
17119 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17120 metaDataMap = Collections.unmodifiableMap(tmpMap);
17121 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVerTs_result.class, metaDataMap);
17122 }
17123
17124 public getVerTs_result() {
17125 }
17126
17127 public getVerTs_result(
17128 List<TCell> success,
17129 IOError io)
17130 {
17131 this();
17132 this.success = success;
17133 this.io = io;
17134 }
17135
17136
17137
17138
17139 public getVerTs_result(getVerTs_result other) {
17140 if (other.isSetSuccess()) {
17141 List<TCell> __this__success = new ArrayList<TCell>();
17142 for (TCell other_element : other.success) {
17143 __this__success.add(new TCell(other_element));
17144 }
17145 this.success = __this__success;
17146 }
17147 if (other.isSetIo()) {
17148 this.io = new IOError(other.io);
17149 }
17150 }
17151
17152 public getVerTs_result deepCopy() {
17153 return new getVerTs_result(this);
17154 }
17155
17156 @Override
17157 public void clear() {
17158 this.success = null;
17159 this.io = null;
17160 }
17161
17162 public int getSuccessSize() {
17163 return (this.success == null) ? 0 : this.success.size();
17164 }
17165
17166 public java.util.Iterator<TCell> getSuccessIterator() {
17167 return (this.success == null) ? null : this.success.iterator();
17168 }
17169
17170 public void addToSuccess(TCell elem) {
17171 if (this.success == null) {
17172 this.success = new ArrayList<TCell>();
17173 }
17174 this.success.add(elem);
17175 }
17176
17177 public List<TCell> getSuccess() {
17178 return this.success;
17179 }
17180
17181 public getVerTs_result setSuccess(List<TCell> success) {
17182 this.success = success;
17183 return this;
17184 }
17185
17186 public void unsetSuccess() {
17187 this.success = null;
17188 }
17189
17190
17191 public boolean isSetSuccess() {
17192 return this.success != null;
17193 }
17194
17195 public void setSuccessIsSet(boolean value) {
17196 if (!value) {
17197 this.success = null;
17198 }
17199 }
17200
17201 public IOError getIo() {
17202 return this.io;
17203 }
17204
17205 public getVerTs_result setIo(IOError io) {
17206 this.io = io;
17207 return this;
17208 }
17209
17210 public void unsetIo() {
17211 this.io = null;
17212 }
17213
17214
17215 public boolean isSetIo() {
17216 return this.io != null;
17217 }
17218
17219 public void setIoIsSet(boolean value) {
17220 if (!value) {
17221 this.io = null;
17222 }
17223 }
17224
17225 public void setFieldValue(_Fields field, Object value) {
17226 switch (field) {
17227 case SUCCESS:
17228 if (value == null) {
17229 unsetSuccess();
17230 } else {
17231 setSuccess((List<TCell>)value);
17232 }
17233 break;
17234
17235 case IO:
17236 if (value == null) {
17237 unsetIo();
17238 } else {
17239 setIo((IOError)value);
17240 }
17241 break;
17242
17243 }
17244 }
17245
17246 public Object getFieldValue(_Fields field) {
17247 switch (field) {
17248 case SUCCESS:
17249 return getSuccess();
17250
17251 case IO:
17252 return getIo();
17253
17254 }
17255 throw new IllegalStateException();
17256 }
17257
17258
17259 public boolean isSet(_Fields field) {
17260 if (field == null) {
17261 throw new IllegalArgumentException();
17262 }
17263
17264 switch (field) {
17265 case SUCCESS:
17266 return isSetSuccess();
17267 case IO:
17268 return isSetIo();
17269 }
17270 throw new IllegalStateException();
17271 }
17272
17273 @Override
17274 public boolean equals(Object that) {
17275 if (that == null)
17276 return false;
17277 if (that instanceof getVerTs_result)
17278 return this.equals((getVerTs_result)that);
17279 return false;
17280 }
17281
17282 public boolean equals(getVerTs_result that) {
17283 if (that == null)
17284 return false;
17285
17286 boolean this_present_success = true && this.isSetSuccess();
17287 boolean that_present_success = true && that.isSetSuccess();
17288 if (this_present_success || that_present_success) {
17289 if (!(this_present_success && that_present_success))
17290 return false;
17291 if (!this.success.equals(that.success))
17292 return false;
17293 }
17294
17295 boolean this_present_io = true && this.isSetIo();
17296 boolean that_present_io = true && that.isSetIo();
17297 if (this_present_io || that_present_io) {
17298 if (!(this_present_io && that_present_io))
17299 return false;
17300 if (!this.io.equals(that.io))
17301 return false;
17302 }
17303
17304 return true;
17305 }
17306
17307 @Override
17308 public int hashCode() {
17309 HashCodeBuilder builder = new HashCodeBuilder();
17310
17311 boolean present_success = true && (isSetSuccess());
17312 builder.append(present_success);
17313 if (present_success)
17314 builder.append(success);
17315
17316 boolean present_io = true && (isSetIo());
17317 builder.append(present_io);
17318 if (present_io)
17319 builder.append(io);
17320
17321 return builder.toHashCode();
17322 }
17323
17324 public int compareTo(getVerTs_result other) {
17325 if (!getClass().equals(other.getClass())) {
17326 return getClass().getName().compareTo(other.getClass().getName());
17327 }
17328
17329 int lastComparison = 0;
17330 getVerTs_result typedOther = (getVerTs_result)other;
17331
17332 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17333 if (lastComparison != 0) {
17334 return lastComparison;
17335 }
17336 if (isSetSuccess()) {
17337 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17338 if (lastComparison != 0) {
17339 return lastComparison;
17340 }
17341 }
17342 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
17343 if (lastComparison != 0) {
17344 return lastComparison;
17345 }
17346 if (isSetIo()) {
17347 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
17348 if (lastComparison != 0) {
17349 return lastComparison;
17350 }
17351 }
17352 return 0;
17353 }
17354
17355 public _Fields fieldForId(int fieldId) {
17356 return _Fields.findByThriftId(fieldId);
17357 }
17358
17359 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17360 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17361 }
17362
17363 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17364 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17365 }
17366
17367 @Override
17368 public String toString() {
17369 StringBuilder sb = new StringBuilder("getVerTs_result(");
17370 boolean first = true;
17371
17372 sb.append("success:");
17373 if (this.success == null) {
17374 sb.append("null");
17375 } else {
17376 sb.append(this.success);
17377 }
17378 first = false;
17379 if (!first) sb.append(", ");
17380 sb.append("io:");
17381 if (this.io == null) {
17382 sb.append("null");
17383 } else {
17384 sb.append(this.io);
17385 }
17386 first = false;
17387 sb.append(")");
17388 return sb.toString();
17389 }
17390
17391 public void validate() throws org.apache.thrift.TException {
17392
17393
17394 }
17395
17396 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17397 try {
17398 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17399 } catch (org.apache.thrift.TException te) {
17400 throw new java.io.IOException(te);
17401 }
17402 }
17403
17404 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17405 try {
17406 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17407 } catch (org.apache.thrift.TException te) {
17408 throw new java.io.IOException(te);
17409 }
17410 }
17411
17412 private static class getVerTs_resultStandardSchemeFactory implements SchemeFactory {
17413 public getVerTs_resultStandardScheme getScheme() {
17414 return new getVerTs_resultStandardScheme();
17415 }
17416 }
17417
17418 private static class getVerTs_resultStandardScheme extends StandardScheme<getVerTs_result> {
17419
17420 public void read(org.apache.thrift.protocol.TProtocol iprot, getVerTs_result struct) throws org.apache.thrift.TException {
17421 org.apache.thrift.protocol.TField schemeField;
17422 iprot.readStructBegin();
17423 while (true)
17424 {
17425 schemeField = iprot.readFieldBegin();
17426 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17427 break;
17428 }
17429 switch (schemeField.id) {
17430 case 0:
17431 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
17432 {
17433 org.apache.thrift.protocol.TList _list130 = iprot.readListBegin();
17434 struct.success = new ArrayList<TCell>(_list130.size);
17435 for (int _i131 = 0; _i131 < _list130.size; ++_i131)
17436 {
17437 TCell _elem132;
17438 _elem132 = new TCell();
17439 _elem132.read(iprot);
17440 struct.success.add(_elem132);
17441 }
17442 iprot.readListEnd();
17443 }
17444 struct.setSuccessIsSet(true);
17445 } else {
17446 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17447 }
17448 break;
17449 case 1:
17450 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17451 struct.io = new IOError();
17452 struct.io.read(iprot);
17453 struct.setIoIsSet(true);
17454 } else {
17455 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17456 }
17457 break;
17458 default:
17459 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17460 }
17461 iprot.readFieldEnd();
17462 }
17463 iprot.readStructEnd();
17464
17465
17466 struct.validate();
17467 }
17468
17469 public void write(org.apache.thrift.protocol.TProtocol oprot, getVerTs_result struct) throws org.apache.thrift.TException {
17470 struct.validate();
17471
17472 oprot.writeStructBegin(STRUCT_DESC);
17473 if (struct.success != null) {
17474 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17475 {
17476 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
17477 for (TCell _iter133 : struct.success)
17478 {
17479 _iter133.write(oprot);
17480 }
17481 oprot.writeListEnd();
17482 }
17483 oprot.writeFieldEnd();
17484 }
17485 if (struct.io != null) {
17486 oprot.writeFieldBegin(IO_FIELD_DESC);
17487 struct.io.write(oprot);
17488 oprot.writeFieldEnd();
17489 }
17490 oprot.writeFieldStop();
17491 oprot.writeStructEnd();
17492 }
17493
17494 }
17495
17496 private static class getVerTs_resultTupleSchemeFactory implements SchemeFactory {
17497 public getVerTs_resultTupleScheme getScheme() {
17498 return new getVerTs_resultTupleScheme();
17499 }
17500 }
17501
17502 private static class getVerTs_resultTupleScheme extends TupleScheme<getVerTs_result> {
17503
17504 @Override
17505 public void write(org.apache.thrift.protocol.TProtocol prot, getVerTs_result struct) throws org.apache.thrift.TException {
17506 TTupleProtocol oprot = (TTupleProtocol) prot;
17507 BitSet optionals = new BitSet();
17508 if (struct.isSetSuccess()) {
17509 optionals.set(0);
17510 }
17511 if (struct.isSetIo()) {
17512 optionals.set(1);
17513 }
17514 oprot.writeBitSet(optionals, 2);
17515 if (struct.isSetSuccess()) {
17516 {
17517 oprot.writeI32(struct.success.size());
17518 for (TCell _iter134 : struct.success)
17519 {
17520 _iter134.write(oprot);
17521 }
17522 }
17523 }
17524 if (struct.isSetIo()) {
17525 struct.io.write(oprot);
17526 }
17527 }
17528
17529 @Override
17530 public void read(org.apache.thrift.protocol.TProtocol prot, getVerTs_result struct) throws org.apache.thrift.TException {
17531 TTupleProtocol iprot = (TTupleProtocol) prot;
17532 BitSet incoming = iprot.readBitSet(2);
17533 if (incoming.get(0)) {
17534 {
17535 org.apache.thrift.protocol.TList _list135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
17536 struct.success = new ArrayList<TCell>(_list135.size);
17537 for (int _i136 = 0; _i136 < _list135.size; ++_i136)
17538 {
17539 TCell _elem137;
17540 _elem137 = new TCell();
17541 _elem137.read(iprot);
17542 struct.success.add(_elem137);
17543 }
17544 }
17545 struct.setSuccessIsSet(true);
17546 }
17547 if (incoming.get(1)) {
17548 struct.io = new IOError();
17549 struct.io.read(iprot);
17550 struct.setIoIsSet(true);
17551 }
17552 }
17553 }
17554
17555 }
17556
17557 public static class getRow_args implements org.apache.thrift.TBase<getRow_args, getRow_args._Fields>, java.io.Serializable, Cloneable {
17558 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRow_args");
17559
17560 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
17561 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
17562 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3);
17563
17564 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17565 static {
17566 schemes.put(StandardScheme.class, new getRow_argsStandardSchemeFactory());
17567 schemes.put(TupleScheme.class, new getRow_argsTupleSchemeFactory());
17568 }
17569
17570
17571
17572
17573 public ByteBuffer tableName;
17574
17575
17576
17577 public ByteBuffer row;
17578
17579
17580
17581 public Map<ByteBuffer,ByteBuffer> attributes;
17582
17583
17584 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17585
17586
17587
17588 TABLE_NAME((short)1, "tableName"),
17589
17590
17591
17592 ROW((short)2, "row"),
17593
17594
17595
17596 ATTRIBUTES((short)3, "attributes");
17597
17598 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17599
17600 static {
17601 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17602 byName.put(field.getFieldName(), field);
17603 }
17604 }
17605
17606
17607
17608
17609 public static _Fields findByThriftId(int fieldId) {
17610 switch(fieldId) {
17611 case 1:
17612 return TABLE_NAME;
17613 case 2:
17614 return ROW;
17615 case 3:
17616 return ATTRIBUTES;
17617 default:
17618 return null;
17619 }
17620 }
17621
17622
17623
17624
17625
17626 public static _Fields findByThriftIdOrThrow(int fieldId) {
17627 _Fields fields = findByThriftId(fieldId);
17628 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17629 return fields;
17630 }
17631
17632
17633
17634
17635 public static _Fields findByName(String name) {
17636 return byName.get(name);
17637 }
17638
17639 private final short _thriftId;
17640 private final String _fieldName;
17641
17642 _Fields(short thriftId, String fieldName) {
17643 _thriftId = thriftId;
17644 _fieldName = fieldName;
17645 }
17646
17647 public short getThriftFieldId() {
17648 return _thriftId;
17649 }
17650
17651 public String getFieldName() {
17652 return _fieldName;
17653 }
17654 }
17655
17656
17657 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17658 static {
17659 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17660 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
17661 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
17662 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
17663 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
17664 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
17665 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
17666 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
17667 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
17668 metaDataMap = Collections.unmodifiableMap(tmpMap);
17669 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRow_args.class, metaDataMap);
17670 }
17671
17672 public getRow_args() {
17673 }
17674
17675 public getRow_args(
17676 ByteBuffer tableName,
17677 ByteBuffer row,
17678 Map<ByteBuffer,ByteBuffer> attributes)
17679 {
17680 this();
17681 this.tableName = tableName;
17682 this.row = row;
17683 this.attributes = attributes;
17684 }
17685
17686
17687
17688
17689 public getRow_args(getRow_args other) {
17690 if (other.isSetTableName()) {
17691 this.tableName = other.tableName;
17692 }
17693 if (other.isSetRow()) {
17694 this.row = other.row;
17695 }
17696 if (other.isSetAttributes()) {
17697 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
17698 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
17699
17700 ByteBuffer other_element_key = other_element.getKey();
17701 ByteBuffer other_element_value = other_element.getValue();
17702
17703 ByteBuffer __this__attributes_copy_key = other_element_key;
17704
17705 ByteBuffer __this__attributes_copy_value = other_element_value;
17706
17707 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
17708 }
17709 this.attributes = __this__attributes;
17710 }
17711 }
17712
17713 public getRow_args deepCopy() {
17714 return new getRow_args(this);
17715 }
17716
17717 @Override
17718 public void clear() {
17719 this.tableName = null;
17720 this.row = null;
17721 this.attributes = null;
17722 }
17723
17724
17725
17726
17727 public byte[] getTableName() {
17728 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
17729 return tableName == null ? null : tableName.array();
17730 }
17731
17732 public ByteBuffer bufferForTableName() {
17733 return tableName;
17734 }
17735
17736
17737
17738
17739 public getRow_args setTableName(byte[] tableName) {
17740 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
17741 return this;
17742 }
17743
17744 public getRow_args setTableName(ByteBuffer tableName) {
17745 this.tableName = tableName;
17746 return this;
17747 }
17748
17749 public void unsetTableName() {
17750 this.tableName = null;
17751 }
17752
17753
17754 public boolean isSetTableName() {
17755 return this.tableName != null;
17756 }
17757
17758 public void setTableNameIsSet(boolean value) {
17759 if (!value) {
17760 this.tableName = null;
17761 }
17762 }
17763
17764
17765
17766
17767 public byte[] getRow() {
17768 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
17769 return row == null ? null : row.array();
17770 }
17771
17772 public ByteBuffer bufferForRow() {
17773 return row;
17774 }
17775
17776
17777
17778
17779 public getRow_args setRow(byte[] row) {
17780 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
17781 return this;
17782 }
17783
17784 public getRow_args setRow(ByteBuffer row) {
17785 this.row = row;
17786 return this;
17787 }
17788
17789 public void unsetRow() {
17790 this.row = null;
17791 }
17792
17793
17794 public boolean isSetRow() {
17795 return this.row != null;
17796 }
17797
17798 public void setRowIsSet(boolean value) {
17799 if (!value) {
17800 this.row = null;
17801 }
17802 }
17803
17804 public int getAttributesSize() {
17805 return (this.attributes == null) ? 0 : this.attributes.size();
17806 }
17807
17808 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
17809 if (this.attributes == null) {
17810 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
17811 }
17812 this.attributes.put(key, val);
17813 }
17814
17815
17816
17817
17818 public Map<ByteBuffer,ByteBuffer> getAttributes() {
17819 return this.attributes;
17820 }
17821
17822
17823
17824
17825 public getRow_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
17826 this.attributes = attributes;
17827 return this;
17828 }
17829
17830 public void unsetAttributes() {
17831 this.attributes = null;
17832 }
17833
17834
17835 public boolean isSetAttributes() {
17836 return this.attributes != null;
17837 }
17838
17839 public void setAttributesIsSet(boolean value) {
17840 if (!value) {
17841 this.attributes = null;
17842 }
17843 }
17844
17845 public void setFieldValue(_Fields field, Object value) {
17846 switch (field) {
17847 case TABLE_NAME:
17848 if (value == null) {
17849 unsetTableName();
17850 } else {
17851 setTableName((ByteBuffer)value);
17852 }
17853 break;
17854
17855 case ROW:
17856 if (value == null) {
17857 unsetRow();
17858 } else {
17859 setRow((ByteBuffer)value);
17860 }
17861 break;
17862
17863 case ATTRIBUTES:
17864 if (value == null) {
17865 unsetAttributes();
17866 } else {
17867 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
17868 }
17869 break;
17870
17871 }
17872 }
17873
17874 public Object getFieldValue(_Fields field) {
17875 switch (field) {
17876 case TABLE_NAME:
17877 return getTableName();
17878
17879 case ROW:
17880 return getRow();
17881
17882 case ATTRIBUTES:
17883 return getAttributes();
17884
17885 }
17886 throw new IllegalStateException();
17887 }
17888
17889
17890 public boolean isSet(_Fields field) {
17891 if (field == null) {
17892 throw new IllegalArgumentException();
17893 }
17894
17895 switch (field) {
17896 case TABLE_NAME:
17897 return isSetTableName();
17898 case ROW:
17899 return isSetRow();
17900 case ATTRIBUTES:
17901 return isSetAttributes();
17902 }
17903 throw new IllegalStateException();
17904 }
17905
17906 @Override
17907 public boolean equals(Object that) {
17908 if (that == null)
17909 return false;
17910 if (that instanceof getRow_args)
17911 return this.equals((getRow_args)that);
17912 return false;
17913 }
17914
17915 public boolean equals(getRow_args that) {
17916 if (that == null)
17917 return false;
17918
17919 boolean this_present_tableName = true && this.isSetTableName();
17920 boolean that_present_tableName = true && that.isSetTableName();
17921 if (this_present_tableName || that_present_tableName) {
17922 if (!(this_present_tableName && that_present_tableName))
17923 return false;
17924 if (!this.tableName.equals(that.tableName))
17925 return false;
17926 }
17927
17928 boolean this_present_row = true && this.isSetRow();
17929 boolean that_present_row = true && that.isSetRow();
17930 if (this_present_row || that_present_row) {
17931 if (!(this_present_row && that_present_row))
17932 return false;
17933 if (!this.row.equals(that.row))
17934 return false;
17935 }
17936
17937 boolean this_present_attributes = true && this.isSetAttributes();
17938 boolean that_present_attributes = true && that.isSetAttributes();
17939 if (this_present_attributes || that_present_attributes) {
17940 if (!(this_present_attributes && that_present_attributes))
17941 return false;
17942 if (!this.attributes.equals(that.attributes))
17943 return false;
17944 }
17945
17946 return true;
17947 }
17948
17949 @Override
17950 public int hashCode() {
17951 HashCodeBuilder builder = new HashCodeBuilder();
17952
17953 boolean present_tableName = true && (isSetTableName());
17954 builder.append(present_tableName);
17955 if (present_tableName)
17956 builder.append(tableName);
17957
17958 boolean present_row = true && (isSetRow());
17959 builder.append(present_row);
17960 if (present_row)
17961 builder.append(row);
17962
17963 boolean present_attributes = true && (isSetAttributes());
17964 builder.append(present_attributes);
17965 if (present_attributes)
17966 builder.append(attributes);
17967
17968 return builder.toHashCode();
17969 }
17970
17971 public int compareTo(getRow_args other) {
17972 if (!getClass().equals(other.getClass())) {
17973 return getClass().getName().compareTo(other.getClass().getName());
17974 }
17975
17976 int lastComparison = 0;
17977 getRow_args typedOther = (getRow_args)other;
17978
17979 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
17980 if (lastComparison != 0) {
17981 return lastComparison;
17982 }
17983 if (isSetTableName()) {
17984 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
17985 if (lastComparison != 0) {
17986 return lastComparison;
17987 }
17988 }
17989 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
17990 if (lastComparison != 0) {
17991 return lastComparison;
17992 }
17993 if (isSetRow()) {
17994 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
17995 if (lastComparison != 0) {
17996 return lastComparison;
17997 }
17998 }
17999 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
18000 if (lastComparison != 0) {
18001 return lastComparison;
18002 }
18003 if (isSetAttributes()) {
18004 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
18005 if (lastComparison != 0) {
18006 return lastComparison;
18007 }
18008 }
18009 return 0;
18010 }
18011
18012 public _Fields fieldForId(int fieldId) {
18013 return _Fields.findByThriftId(fieldId);
18014 }
18015
18016 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18017 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18018 }
18019
18020 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18021 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18022 }
18023
18024 @Override
18025 public String toString() {
18026 StringBuilder sb = new StringBuilder("getRow_args(");
18027 boolean first = true;
18028
18029 sb.append("tableName:");
18030 if (this.tableName == null) {
18031 sb.append("null");
18032 } else {
18033 sb.append(this.tableName);
18034 }
18035 first = false;
18036 if (!first) sb.append(", ");
18037 sb.append("row:");
18038 if (this.row == null) {
18039 sb.append("null");
18040 } else {
18041 sb.append(this.row);
18042 }
18043 first = false;
18044 if (!first) sb.append(", ");
18045 sb.append("attributes:");
18046 if (this.attributes == null) {
18047 sb.append("null");
18048 } else {
18049 sb.append(this.attributes);
18050 }
18051 first = false;
18052 sb.append(")");
18053 return sb.toString();
18054 }
18055
18056 public void validate() throws org.apache.thrift.TException {
18057
18058
18059 }
18060
18061 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18062 try {
18063 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18064 } catch (org.apache.thrift.TException te) {
18065 throw new java.io.IOException(te);
18066 }
18067 }
18068
18069 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18070 try {
18071 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18072 } catch (org.apache.thrift.TException te) {
18073 throw new java.io.IOException(te);
18074 }
18075 }
18076
18077 private static class getRow_argsStandardSchemeFactory implements SchemeFactory {
18078 public getRow_argsStandardScheme getScheme() {
18079 return new getRow_argsStandardScheme();
18080 }
18081 }
18082
18083 private static class getRow_argsStandardScheme extends StandardScheme<getRow_args> {
18084
18085 public void read(org.apache.thrift.protocol.TProtocol iprot, getRow_args struct) throws org.apache.thrift.TException {
18086 org.apache.thrift.protocol.TField schemeField;
18087 iprot.readStructBegin();
18088 while (true)
18089 {
18090 schemeField = iprot.readFieldBegin();
18091 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18092 break;
18093 }
18094 switch (schemeField.id) {
18095 case 1:
18096 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
18097 struct.tableName = iprot.readBinary();
18098 struct.setTableNameIsSet(true);
18099 } else {
18100 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18101 }
18102 break;
18103 case 2:
18104 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
18105 struct.row = iprot.readBinary();
18106 struct.setRowIsSet(true);
18107 } else {
18108 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18109 }
18110 break;
18111 case 3:
18112 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
18113 {
18114 org.apache.thrift.protocol.TMap _map138 = iprot.readMapBegin();
18115 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map138.size);
18116 for (int _i139 = 0; _i139 < _map138.size; ++_i139)
18117 {
18118 ByteBuffer _key140;
18119 ByteBuffer _val141;
18120 _key140 = iprot.readBinary();
18121 _val141 = iprot.readBinary();
18122 struct.attributes.put(_key140, _val141);
18123 }
18124 iprot.readMapEnd();
18125 }
18126 struct.setAttributesIsSet(true);
18127 } else {
18128 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18129 }
18130 break;
18131 default:
18132 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18133 }
18134 iprot.readFieldEnd();
18135 }
18136 iprot.readStructEnd();
18137
18138
18139 struct.validate();
18140 }
18141
18142 public void write(org.apache.thrift.protocol.TProtocol oprot, getRow_args struct) throws org.apache.thrift.TException {
18143 struct.validate();
18144
18145 oprot.writeStructBegin(STRUCT_DESC);
18146 if (struct.tableName != null) {
18147 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
18148 oprot.writeBinary(struct.tableName);
18149 oprot.writeFieldEnd();
18150 }
18151 if (struct.row != null) {
18152 oprot.writeFieldBegin(ROW_FIELD_DESC);
18153 oprot.writeBinary(struct.row);
18154 oprot.writeFieldEnd();
18155 }
18156 if (struct.attributes != null) {
18157 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
18158 {
18159 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
18160 for (Map.Entry<ByteBuffer, ByteBuffer> _iter142 : struct.attributes.entrySet())
18161 {
18162 oprot.writeBinary(_iter142.getKey());
18163 oprot.writeBinary(_iter142.getValue());
18164 }
18165 oprot.writeMapEnd();
18166 }
18167 oprot.writeFieldEnd();
18168 }
18169 oprot.writeFieldStop();
18170 oprot.writeStructEnd();
18171 }
18172
18173 }
18174
18175 private static class getRow_argsTupleSchemeFactory implements SchemeFactory {
18176 public getRow_argsTupleScheme getScheme() {
18177 return new getRow_argsTupleScheme();
18178 }
18179 }
18180
18181 private static class getRow_argsTupleScheme extends TupleScheme<getRow_args> {
18182
18183 @Override
18184 public void write(org.apache.thrift.protocol.TProtocol prot, getRow_args struct) throws org.apache.thrift.TException {
18185 TTupleProtocol oprot = (TTupleProtocol) prot;
18186 BitSet optionals = new BitSet();
18187 if (struct.isSetTableName()) {
18188 optionals.set(0);
18189 }
18190 if (struct.isSetRow()) {
18191 optionals.set(1);
18192 }
18193 if (struct.isSetAttributes()) {
18194 optionals.set(2);
18195 }
18196 oprot.writeBitSet(optionals, 3);
18197 if (struct.isSetTableName()) {
18198 oprot.writeBinary(struct.tableName);
18199 }
18200 if (struct.isSetRow()) {
18201 oprot.writeBinary(struct.row);
18202 }
18203 if (struct.isSetAttributes()) {
18204 {
18205 oprot.writeI32(struct.attributes.size());
18206 for (Map.Entry<ByteBuffer, ByteBuffer> _iter143 : struct.attributes.entrySet())
18207 {
18208 oprot.writeBinary(_iter143.getKey());
18209 oprot.writeBinary(_iter143.getValue());
18210 }
18211 }
18212 }
18213 }
18214
18215 @Override
18216 public void read(org.apache.thrift.protocol.TProtocol prot, getRow_args struct) throws org.apache.thrift.TException {
18217 TTupleProtocol iprot = (TTupleProtocol) prot;
18218 BitSet incoming = iprot.readBitSet(3);
18219 if (incoming.get(0)) {
18220 struct.tableName = iprot.readBinary();
18221 struct.setTableNameIsSet(true);
18222 }
18223 if (incoming.get(1)) {
18224 struct.row = iprot.readBinary();
18225 struct.setRowIsSet(true);
18226 }
18227 if (incoming.get(2)) {
18228 {
18229 org.apache.thrift.protocol.TMap _map144 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
18230 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map144.size);
18231 for (int _i145 = 0; _i145 < _map144.size; ++_i145)
18232 {
18233 ByteBuffer _key146;
18234 ByteBuffer _val147;
18235 _key146 = iprot.readBinary();
18236 _val147 = iprot.readBinary();
18237 struct.attributes.put(_key146, _val147);
18238 }
18239 }
18240 struct.setAttributesIsSet(true);
18241 }
18242 }
18243 }
18244
18245 }
18246
18247 public static class getRow_result implements org.apache.thrift.TBase<getRow_result, getRow_result._Fields>, java.io.Serializable, Cloneable {
18248 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRow_result");
18249
18250 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
18251 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
18252
18253 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18254 static {
18255 schemes.put(StandardScheme.class, new getRow_resultStandardSchemeFactory());
18256 schemes.put(TupleScheme.class, new getRow_resultTupleSchemeFactory());
18257 }
18258
18259 public List<TRowResult> success;
18260 public IOError io;
18261
18262
18263 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18264 SUCCESS((short)0, "success"),
18265 IO((short)1, "io");
18266
18267 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18268
18269 static {
18270 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18271 byName.put(field.getFieldName(), field);
18272 }
18273 }
18274
18275
18276
18277
18278 public static _Fields findByThriftId(int fieldId) {
18279 switch(fieldId) {
18280 case 0:
18281 return SUCCESS;
18282 case 1:
18283 return IO;
18284 default:
18285 return null;
18286 }
18287 }
18288
18289
18290
18291
18292
18293 public static _Fields findByThriftIdOrThrow(int fieldId) {
18294 _Fields fields = findByThriftId(fieldId);
18295 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18296 return fields;
18297 }
18298
18299
18300
18301
18302 public static _Fields findByName(String name) {
18303 return byName.get(name);
18304 }
18305
18306 private final short _thriftId;
18307 private final String _fieldName;
18308
18309 _Fields(short thriftId, String fieldName) {
18310 _thriftId = thriftId;
18311 _fieldName = fieldName;
18312 }
18313
18314 public short getThriftFieldId() {
18315 return _thriftId;
18316 }
18317
18318 public String getFieldName() {
18319 return _fieldName;
18320 }
18321 }
18322
18323
18324 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18325 static {
18326 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18327 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
18328 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
18329 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
18330 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
18331 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18332 metaDataMap = Collections.unmodifiableMap(tmpMap);
18333 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRow_result.class, metaDataMap);
18334 }
18335
18336 public getRow_result() {
18337 }
18338
18339 public getRow_result(
18340 List<TRowResult> success,
18341 IOError io)
18342 {
18343 this();
18344 this.success = success;
18345 this.io = io;
18346 }
18347
18348
18349
18350
18351 public getRow_result(getRow_result other) {
18352 if (other.isSetSuccess()) {
18353 List<TRowResult> __this__success = new ArrayList<TRowResult>();
18354 for (TRowResult other_element : other.success) {
18355 __this__success.add(new TRowResult(other_element));
18356 }
18357 this.success = __this__success;
18358 }
18359 if (other.isSetIo()) {
18360 this.io = new IOError(other.io);
18361 }
18362 }
18363
18364 public getRow_result deepCopy() {
18365 return new getRow_result(this);
18366 }
18367
18368 @Override
18369 public void clear() {
18370 this.success = null;
18371 this.io = null;
18372 }
18373
18374 public int getSuccessSize() {
18375 return (this.success == null) ? 0 : this.success.size();
18376 }
18377
18378 public java.util.Iterator<TRowResult> getSuccessIterator() {
18379 return (this.success == null) ? null : this.success.iterator();
18380 }
18381
18382 public void addToSuccess(TRowResult elem) {
18383 if (this.success == null) {
18384 this.success = new ArrayList<TRowResult>();
18385 }
18386 this.success.add(elem);
18387 }
18388
18389 public List<TRowResult> getSuccess() {
18390 return this.success;
18391 }
18392
18393 public getRow_result setSuccess(List<TRowResult> success) {
18394 this.success = success;
18395 return this;
18396 }
18397
18398 public void unsetSuccess() {
18399 this.success = null;
18400 }
18401
18402
18403 public boolean isSetSuccess() {
18404 return this.success != null;
18405 }
18406
18407 public void setSuccessIsSet(boolean value) {
18408 if (!value) {
18409 this.success = null;
18410 }
18411 }
18412
18413 public IOError getIo() {
18414 return this.io;
18415 }
18416
18417 public getRow_result setIo(IOError io) {
18418 this.io = io;
18419 return this;
18420 }
18421
18422 public void unsetIo() {
18423 this.io = null;
18424 }
18425
18426
18427 public boolean isSetIo() {
18428 return this.io != null;
18429 }
18430
18431 public void setIoIsSet(boolean value) {
18432 if (!value) {
18433 this.io = null;
18434 }
18435 }
18436
18437 public void setFieldValue(_Fields field, Object value) {
18438 switch (field) {
18439 case SUCCESS:
18440 if (value == null) {
18441 unsetSuccess();
18442 } else {
18443 setSuccess((List<TRowResult>)value);
18444 }
18445 break;
18446
18447 case IO:
18448 if (value == null) {
18449 unsetIo();
18450 } else {
18451 setIo((IOError)value);
18452 }
18453 break;
18454
18455 }
18456 }
18457
18458 public Object getFieldValue(_Fields field) {
18459 switch (field) {
18460 case SUCCESS:
18461 return getSuccess();
18462
18463 case IO:
18464 return getIo();
18465
18466 }
18467 throw new IllegalStateException();
18468 }
18469
18470
18471 public boolean isSet(_Fields field) {
18472 if (field == null) {
18473 throw new IllegalArgumentException();
18474 }
18475
18476 switch (field) {
18477 case SUCCESS:
18478 return isSetSuccess();
18479 case IO:
18480 return isSetIo();
18481 }
18482 throw new IllegalStateException();
18483 }
18484
18485 @Override
18486 public boolean equals(Object that) {
18487 if (that == null)
18488 return false;
18489 if (that instanceof getRow_result)
18490 return this.equals((getRow_result)that);
18491 return false;
18492 }
18493
18494 public boolean equals(getRow_result that) {
18495 if (that == null)
18496 return false;
18497
18498 boolean this_present_success = true && this.isSetSuccess();
18499 boolean that_present_success = true && that.isSetSuccess();
18500 if (this_present_success || that_present_success) {
18501 if (!(this_present_success && that_present_success))
18502 return false;
18503 if (!this.success.equals(that.success))
18504 return false;
18505 }
18506
18507 boolean this_present_io = true && this.isSetIo();
18508 boolean that_present_io = true && that.isSetIo();
18509 if (this_present_io || that_present_io) {
18510 if (!(this_present_io && that_present_io))
18511 return false;
18512 if (!this.io.equals(that.io))
18513 return false;
18514 }
18515
18516 return true;
18517 }
18518
18519 @Override
18520 public int hashCode() {
18521 HashCodeBuilder builder = new HashCodeBuilder();
18522
18523 boolean present_success = true && (isSetSuccess());
18524 builder.append(present_success);
18525 if (present_success)
18526 builder.append(success);
18527
18528 boolean present_io = true && (isSetIo());
18529 builder.append(present_io);
18530 if (present_io)
18531 builder.append(io);
18532
18533 return builder.toHashCode();
18534 }
18535
18536 public int compareTo(getRow_result other) {
18537 if (!getClass().equals(other.getClass())) {
18538 return getClass().getName().compareTo(other.getClass().getName());
18539 }
18540
18541 int lastComparison = 0;
18542 getRow_result typedOther = (getRow_result)other;
18543
18544 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18545 if (lastComparison != 0) {
18546 return lastComparison;
18547 }
18548 if (isSetSuccess()) {
18549 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18550 if (lastComparison != 0) {
18551 return lastComparison;
18552 }
18553 }
18554 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
18555 if (lastComparison != 0) {
18556 return lastComparison;
18557 }
18558 if (isSetIo()) {
18559 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
18560 if (lastComparison != 0) {
18561 return lastComparison;
18562 }
18563 }
18564 return 0;
18565 }
18566
18567 public _Fields fieldForId(int fieldId) {
18568 return _Fields.findByThriftId(fieldId);
18569 }
18570
18571 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18572 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18573 }
18574
18575 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18576 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18577 }
18578
18579 @Override
18580 public String toString() {
18581 StringBuilder sb = new StringBuilder("getRow_result(");
18582 boolean first = true;
18583
18584 sb.append("success:");
18585 if (this.success == null) {
18586 sb.append("null");
18587 } else {
18588 sb.append(this.success);
18589 }
18590 first = false;
18591 if (!first) sb.append(", ");
18592 sb.append("io:");
18593 if (this.io == null) {
18594 sb.append("null");
18595 } else {
18596 sb.append(this.io);
18597 }
18598 first = false;
18599 sb.append(")");
18600 return sb.toString();
18601 }
18602
18603 public void validate() throws org.apache.thrift.TException {
18604
18605
18606 }
18607
18608 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18609 try {
18610 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18611 } catch (org.apache.thrift.TException te) {
18612 throw new java.io.IOException(te);
18613 }
18614 }
18615
18616 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18617 try {
18618 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18619 } catch (org.apache.thrift.TException te) {
18620 throw new java.io.IOException(te);
18621 }
18622 }
18623
18624 private static class getRow_resultStandardSchemeFactory implements SchemeFactory {
18625 public getRow_resultStandardScheme getScheme() {
18626 return new getRow_resultStandardScheme();
18627 }
18628 }
18629
18630 private static class getRow_resultStandardScheme extends StandardScheme<getRow_result> {
18631
18632 public void read(org.apache.thrift.protocol.TProtocol iprot, getRow_result struct) throws org.apache.thrift.TException {
18633 org.apache.thrift.protocol.TField schemeField;
18634 iprot.readStructBegin();
18635 while (true)
18636 {
18637 schemeField = iprot.readFieldBegin();
18638 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18639 break;
18640 }
18641 switch (schemeField.id) {
18642 case 0:
18643 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
18644 {
18645 org.apache.thrift.protocol.TList _list148 = iprot.readListBegin();
18646 struct.success = new ArrayList<TRowResult>(_list148.size);
18647 for (int _i149 = 0; _i149 < _list148.size; ++_i149)
18648 {
18649 TRowResult _elem150;
18650 _elem150 = new TRowResult();
18651 _elem150.read(iprot);
18652 struct.success.add(_elem150);
18653 }
18654 iprot.readListEnd();
18655 }
18656 struct.setSuccessIsSet(true);
18657 } else {
18658 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18659 }
18660 break;
18661 case 1:
18662 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
18663 struct.io = new IOError();
18664 struct.io.read(iprot);
18665 struct.setIoIsSet(true);
18666 } else {
18667 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18668 }
18669 break;
18670 default:
18671 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18672 }
18673 iprot.readFieldEnd();
18674 }
18675 iprot.readStructEnd();
18676
18677
18678 struct.validate();
18679 }
18680
18681 public void write(org.apache.thrift.protocol.TProtocol oprot, getRow_result struct) throws org.apache.thrift.TException {
18682 struct.validate();
18683
18684 oprot.writeStructBegin(STRUCT_DESC);
18685 if (struct.success != null) {
18686 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18687 {
18688 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
18689 for (TRowResult _iter151 : struct.success)
18690 {
18691 _iter151.write(oprot);
18692 }
18693 oprot.writeListEnd();
18694 }
18695 oprot.writeFieldEnd();
18696 }
18697 if (struct.io != null) {
18698 oprot.writeFieldBegin(IO_FIELD_DESC);
18699 struct.io.write(oprot);
18700 oprot.writeFieldEnd();
18701 }
18702 oprot.writeFieldStop();
18703 oprot.writeStructEnd();
18704 }
18705
18706 }
18707
18708 private static class getRow_resultTupleSchemeFactory implements SchemeFactory {
18709 public getRow_resultTupleScheme getScheme() {
18710 return new getRow_resultTupleScheme();
18711 }
18712 }
18713
18714 private static class getRow_resultTupleScheme extends TupleScheme<getRow_result> {
18715
18716 @Override
18717 public void write(org.apache.thrift.protocol.TProtocol prot, getRow_result struct) throws org.apache.thrift.TException {
18718 TTupleProtocol oprot = (TTupleProtocol) prot;
18719 BitSet optionals = new BitSet();
18720 if (struct.isSetSuccess()) {
18721 optionals.set(0);
18722 }
18723 if (struct.isSetIo()) {
18724 optionals.set(1);
18725 }
18726 oprot.writeBitSet(optionals, 2);
18727 if (struct.isSetSuccess()) {
18728 {
18729 oprot.writeI32(struct.success.size());
18730 for (TRowResult _iter152 : struct.success)
18731 {
18732 _iter152.write(oprot);
18733 }
18734 }
18735 }
18736 if (struct.isSetIo()) {
18737 struct.io.write(oprot);
18738 }
18739 }
18740
18741 @Override
18742 public void read(org.apache.thrift.protocol.TProtocol prot, getRow_result struct) throws org.apache.thrift.TException {
18743 TTupleProtocol iprot = (TTupleProtocol) prot;
18744 BitSet incoming = iprot.readBitSet(2);
18745 if (incoming.get(0)) {
18746 {
18747 org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
18748 struct.success = new ArrayList<TRowResult>(_list153.size);
18749 for (int _i154 = 0; _i154 < _list153.size; ++_i154)
18750 {
18751 TRowResult _elem155;
18752 _elem155 = new TRowResult();
18753 _elem155.read(iprot);
18754 struct.success.add(_elem155);
18755 }
18756 }
18757 struct.setSuccessIsSet(true);
18758 }
18759 if (incoming.get(1)) {
18760 struct.io = new IOError();
18761 struct.io.read(iprot);
18762 struct.setIoIsSet(true);
18763 }
18764 }
18765 }
18766
18767 }
18768
18769 public static class getRowWithColumns_args implements org.apache.thrift.TBase<getRowWithColumns_args, getRowWithColumns_args._Fields>, java.io.Serializable, Cloneable {
18770 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumns_args");
18771
18772 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
18773 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
18774 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
18775 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
18776
18777 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18778 static {
18779 schemes.put(StandardScheme.class, new getRowWithColumns_argsStandardSchemeFactory());
18780 schemes.put(TupleScheme.class, new getRowWithColumns_argsTupleSchemeFactory());
18781 }
18782
18783
18784
18785
18786 public ByteBuffer tableName;
18787
18788
18789
18790 public ByteBuffer row;
18791
18792
18793
18794 public List<ByteBuffer> columns;
18795
18796
18797
18798 public Map<ByteBuffer,ByteBuffer> attributes;
18799
18800
18801 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18802
18803
18804
18805 TABLE_NAME((short)1, "tableName"),
18806
18807
18808
18809 ROW((short)2, "row"),
18810
18811
18812
18813 COLUMNS((short)3, "columns"),
18814
18815
18816
18817 ATTRIBUTES((short)4, "attributes");
18818
18819 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18820
18821 static {
18822 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18823 byName.put(field.getFieldName(), field);
18824 }
18825 }
18826
18827
18828
18829
18830 public static _Fields findByThriftId(int fieldId) {
18831 switch(fieldId) {
18832 case 1:
18833 return TABLE_NAME;
18834 case 2:
18835 return ROW;
18836 case 3:
18837 return COLUMNS;
18838 case 4:
18839 return ATTRIBUTES;
18840 default:
18841 return null;
18842 }
18843 }
18844
18845
18846
18847
18848
18849 public static _Fields findByThriftIdOrThrow(int fieldId) {
18850 _Fields fields = findByThriftId(fieldId);
18851 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18852 return fields;
18853 }
18854
18855
18856
18857
18858 public static _Fields findByName(String name) {
18859 return byName.get(name);
18860 }
18861
18862 private final short _thriftId;
18863 private final String _fieldName;
18864
18865 _Fields(short thriftId, String fieldName) {
18866 _thriftId = thriftId;
18867 _fieldName = fieldName;
18868 }
18869
18870 public short getThriftFieldId() {
18871 return _thriftId;
18872 }
18873
18874 public String getFieldName() {
18875 return _fieldName;
18876 }
18877 }
18878
18879
18880 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18881 static {
18882 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18883 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
18884 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
18885 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
18886 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
18887 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT,
18888 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
18889 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
18890 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
18891 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
18892 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
18893 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
18894 metaDataMap = Collections.unmodifiableMap(tmpMap);
18895 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumns_args.class, metaDataMap);
18896 }
18897
18898 public getRowWithColumns_args() {
18899 }
18900
18901 public getRowWithColumns_args(
18902 ByteBuffer tableName,
18903 ByteBuffer row,
18904 List<ByteBuffer> columns,
18905 Map<ByteBuffer,ByteBuffer> attributes)
18906 {
18907 this();
18908 this.tableName = tableName;
18909 this.row = row;
18910 this.columns = columns;
18911 this.attributes = attributes;
18912 }
18913
18914
18915
18916
18917 public getRowWithColumns_args(getRowWithColumns_args other) {
18918 if (other.isSetTableName()) {
18919 this.tableName = other.tableName;
18920 }
18921 if (other.isSetRow()) {
18922 this.row = other.row;
18923 }
18924 if (other.isSetColumns()) {
18925 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
18926 for (ByteBuffer other_element : other.columns) {
18927 __this__columns.add(other_element);
18928 }
18929 this.columns = __this__columns;
18930 }
18931 if (other.isSetAttributes()) {
18932 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
18933 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
18934
18935 ByteBuffer other_element_key = other_element.getKey();
18936 ByteBuffer other_element_value = other_element.getValue();
18937
18938 ByteBuffer __this__attributes_copy_key = other_element_key;
18939
18940 ByteBuffer __this__attributes_copy_value = other_element_value;
18941
18942 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
18943 }
18944 this.attributes = __this__attributes;
18945 }
18946 }
18947
18948 public getRowWithColumns_args deepCopy() {
18949 return new getRowWithColumns_args(this);
18950 }
18951
18952 @Override
18953 public void clear() {
18954 this.tableName = null;
18955 this.row = null;
18956 this.columns = null;
18957 this.attributes = null;
18958 }
18959
18960
18961
18962
18963 public byte[] getTableName() {
18964 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
18965 return tableName == null ? null : tableName.array();
18966 }
18967
18968 public ByteBuffer bufferForTableName() {
18969 return tableName;
18970 }
18971
18972
18973
18974
18975 public getRowWithColumns_args setTableName(byte[] tableName) {
18976 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
18977 return this;
18978 }
18979
18980 public getRowWithColumns_args setTableName(ByteBuffer tableName) {
18981 this.tableName = tableName;
18982 return this;
18983 }
18984
18985 public void unsetTableName() {
18986 this.tableName = null;
18987 }
18988
18989
18990 public boolean isSetTableName() {
18991 return this.tableName != null;
18992 }
18993
18994 public void setTableNameIsSet(boolean value) {
18995 if (!value) {
18996 this.tableName = null;
18997 }
18998 }
18999
19000
19001
19002
19003 public byte[] getRow() {
19004 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
19005 return row == null ? null : row.array();
19006 }
19007
19008 public ByteBuffer bufferForRow() {
19009 return row;
19010 }
19011
19012
19013
19014
19015 public getRowWithColumns_args setRow(byte[] row) {
19016 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
19017 return this;
19018 }
19019
19020 public getRowWithColumns_args setRow(ByteBuffer row) {
19021 this.row = row;
19022 return this;
19023 }
19024
19025 public void unsetRow() {
19026 this.row = null;
19027 }
19028
19029
19030 public boolean isSetRow() {
19031 return this.row != null;
19032 }
19033
19034 public void setRowIsSet(boolean value) {
19035 if (!value) {
19036 this.row = null;
19037 }
19038 }
19039
19040 public int getColumnsSize() {
19041 return (this.columns == null) ? 0 : this.columns.size();
19042 }
19043
19044 public java.util.Iterator<ByteBuffer> getColumnsIterator() {
19045 return (this.columns == null) ? null : this.columns.iterator();
19046 }
19047
19048 public void addToColumns(ByteBuffer elem) {
19049 if (this.columns == null) {
19050 this.columns = new ArrayList<ByteBuffer>();
19051 }
19052 this.columns.add(elem);
19053 }
19054
19055
19056
19057
19058 public List<ByteBuffer> getColumns() {
19059 return this.columns;
19060 }
19061
19062
19063
19064
19065 public getRowWithColumns_args setColumns(List<ByteBuffer> columns) {
19066 this.columns = columns;
19067 return this;
19068 }
19069
19070 public void unsetColumns() {
19071 this.columns = null;
19072 }
19073
19074
19075 public boolean isSetColumns() {
19076 return this.columns != null;
19077 }
19078
19079 public void setColumnsIsSet(boolean value) {
19080 if (!value) {
19081 this.columns = null;
19082 }
19083 }
19084
19085 public int getAttributesSize() {
19086 return (this.attributes == null) ? 0 : this.attributes.size();
19087 }
19088
19089 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
19090 if (this.attributes == null) {
19091 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
19092 }
19093 this.attributes.put(key, val);
19094 }
19095
19096
19097
19098
19099 public Map<ByteBuffer,ByteBuffer> getAttributes() {
19100 return this.attributes;
19101 }
19102
19103
19104
19105
19106 public getRowWithColumns_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
19107 this.attributes = attributes;
19108 return this;
19109 }
19110
19111 public void unsetAttributes() {
19112 this.attributes = null;
19113 }
19114
19115
19116 public boolean isSetAttributes() {
19117 return this.attributes != null;
19118 }
19119
19120 public void setAttributesIsSet(boolean value) {
19121 if (!value) {
19122 this.attributes = null;
19123 }
19124 }
19125
19126 public void setFieldValue(_Fields field, Object value) {
19127 switch (field) {
19128 case TABLE_NAME:
19129 if (value == null) {
19130 unsetTableName();
19131 } else {
19132 setTableName((ByteBuffer)value);
19133 }
19134 break;
19135
19136 case ROW:
19137 if (value == null) {
19138 unsetRow();
19139 } else {
19140 setRow((ByteBuffer)value);
19141 }
19142 break;
19143
19144 case COLUMNS:
19145 if (value == null) {
19146 unsetColumns();
19147 } else {
19148 setColumns((List<ByteBuffer>)value);
19149 }
19150 break;
19151
19152 case ATTRIBUTES:
19153 if (value == null) {
19154 unsetAttributes();
19155 } else {
19156 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
19157 }
19158 break;
19159
19160 }
19161 }
19162
19163 public Object getFieldValue(_Fields field) {
19164 switch (field) {
19165 case TABLE_NAME:
19166 return getTableName();
19167
19168 case ROW:
19169 return getRow();
19170
19171 case COLUMNS:
19172 return getColumns();
19173
19174 case ATTRIBUTES:
19175 return getAttributes();
19176
19177 }
19178 throw new IllegalStateException();
19179 }
19180
19181
19182 public boolean isSet(_Fields field) {
19183 if (field == null) {
19184 throw new IllegalArgumentException();
19185 }
19186
19187 switch (field) {
19188 case TABLE_NAME:
19189 return isSetTableName();
19190 case ROW:
19191 return isSetRow();
19192 case COLUMNS:
19193 return isSetColumns();
19194 case ATTRIBUTES:
19195 return isSetAttributes();
19196 }
19197 throw new IllegalStateException();
19198 }
19199
19200 @Override
19201 public boolean equals(Object that) {
19202 if (that == null)
19203 return false;
19204 if (that instanceof getRowWithColumns_args)
19205 return this.equals((getRowWithColumns_args)that);
19206 return false;
19207 }
19208
19209 public boolean equals(getRowWithColumns_args that) {
19210 if (that == null)
19211 return false;
19212
19213 boolean this_present_tableName = true && this.isSetTableName();
19214 boolean that_present_tableName = true && that.isSetTableName();
19215 if (this_present_tableName || that_present_tableName) {
19216 if (!(this_present_tableName && that_present_tableName))
19217 return false;
19218 if (!this.tableName.equals(that.tableName))
19219 return false;
19220 }
19221
19222 boolean this_present_row = true && this.isSetRow();
19223 boolean that_present_row = true && that.isSetRow();
19224 if (this_present_row || that_present_row) {
19225 if (!(this_present_row && that_present_row))
19226 return false;
19227 if (!this.row.equals(that.row))
19228 return false;
19229 }
19230
19231 boolean this_present_columns = true && this.isSetColumns();
19232 boolean that_present_columns = true && that.isSetColumns();
19233 if (this_present_columns || that_present_columns) {
19234 if (!(this_present_columns && that_present_columns))
19235 return false;
19236 if (!this.columns.equals(that.columns))
19237 return false;
19238 }
19239
19240 boolean this_present_attributes = true && this.isSetAttributes();
19241 boolean that_present_attributes = true && that.isSetAttributes();
19242 if (this_present_attributes || that_present_attributes) {
19243 if (!(this_present_attributes && that_present_attributes))
19244 return false;
19245 if (!this.attributes.equals(that.attributes))
19246 return false;
19247 }
19248
19249 return true;
19250 }
19251
19252 @Override
19253 public int hashCode() {
19254 HashCodeBuilder builder = new HashCodeBuilder();
19255
19256 boolean present_tableName = true && (isSetTableName());
19257 builder.append(present_tableName);
19258 if (present_tableName)
19259 builder.append(tableName);
19260
19261 boolean present_row = true && (isSetRow());
19262 builder.append(present_row);
19263 if (present_row)
19264 builder.append(row);
19265
19266 boolean present_columns = true && (isSetColumns());
19267 builder.append(present_columns);
19268 if (present_columns)
19269 builder.append(columns);
19270
19271 boolean present_attributes = true && (isSetAttributes());
19272 builder.append(present_attributes);
19273 if (present_attributes)
19274 builder.append(attributes);
19275
19276 return builder.toHashCode();
19277 }
19278
19279 public int compareTo(getRowWithColumns_args other) {
19280 if (!getClass().equals(other.getClass())) {
19281 return getClass().getName().compareTo(other.getClass().getName());
19282 }
19283
19284 int lastComparison = 0;
19285 getRowWithColumns_args typedOther = (getRowWithColumns_args)other;
19286
19287 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
19288 if (lastComparison != 0) {
19289 return lastComparison;
19290 }
19291 if (isSetTableName()) {
19292 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
19293 if (lastComparison != 0) {
19294 return lastComparison;
19295 }
19296 }
19297 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
19298 if (lastComparison != 0) {
19299 return lastComparison;
19300 }
19301 if (isSetRow()) {
19302 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
19303 if (lastComparison != 0) {
19304 return lastComparison;
19305 }
19306 }
19307 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
19308 if (lastComparison != 0) {
19309 return lastComparison;
19310 }
19311 if (isSetColumns()) {
19312 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
19313 if (lastComparison != 0) {
19314 return lastComparison;
19315 }
19316 }
19317 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
19318 if (lastComparison != 0) {
19319 return lastComparison;
19320 }
19321 if (isSetAttributes()) {
19322 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
19323 if (lastComparison != 0) {
19324 return lastComparison;
19325 }
19326 }
19327 return 0;
19328 }
19329
19330 public _Fields fieldForId(int fieldId) {
19331 return _Fields.findByThriftId(fieldId);
19332 }
19333
19334 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19335 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19336 }
19337
19338 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19339 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19340 }
19341
19342 @Override
19343 public String toString() {
19344 StringBuilder sb = new StringBuilder("getRowWithColumns_args(");
19345 boolean first = true;
19346
19347 sb.append("tableName:");
19348 if (this.tableName == null) {
19349 sb.append("null");
19350 } else {
19351 sb.append(this.tableName);
19352 }
19353 first = false;
19354 if (!first) sb.append(", ");
19355 sb.append("row:");
19356 if (this.row == null) {
19357 sb.append("null");
19358 } else {
19359 sb.append(this.row);
19360 }
19361 first = false;
19362 if (!first) sb.append(", ");
19363 sb.append("columns:");
19364 if (this.columns == null) {
19365 sb.append("null");
19366 } else {
19367 sb.append(this.columns);
19368 }
19369 first = false;
19370 if (!first) sb.append(", ");
19371 sb.append("attributes:");
19372 if (this.attributes == null) {
19373 sb.append("null");
19374 } else {
19375 sb.append(this.attributes);
19376 }
19377 first = false;
19378 sb.append(")");
19379 return sb.toString();
19380 }
19381
19382 public void validate() throws org.apache.thrift.TException {
19383
19384
19385 }
19386
19387 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19388 try {
19389 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19390 } catch (org.apache.thrift.TException te) {
19391 throw new java.io.IOException(te);
19392 }
19393 }
19394
19395 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19396 try {
19397 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19398 } catch (org.apache.thrift.TException te) {
19399 throw new java.io.IOException(te);
19400 }
19401 }
19402
19403 private static class getRowWithColumns_argsStandardSchemeFactory implements SchemeFactory {
19404 public getRowWithColumns_argsStandardScheme getScheme() {
19405 return new getRowWithColumns_argsStandardScheme();
19406 }
19407 }
19408
19409 private static class getRowWithColumns_argsStandardScheme extends StandardScheme<getRowWithColumns_args> {
19410
19411 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumns_args struct) throws org.apache.thrift.TException {
19412 org.apache.thrift.protocol.TField schemeField;
19413 iprot.readStructBegin();
19414 while (true)
19415 {
19416 schemeField = iprot.readFieldBegin();
19417 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19418 break;
19419 }
19420 switch (schemeField.id) {
19421 case 1:
19422 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19423 struct.tableName = iprot.readBinary();
19424 struct.setTableNameIsSet(true);
19425 } else {
19426 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19427 }
19428 break;
19429 case 2:
19430 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19431 struct.row = iprot.readBinary();
19432 struct.setRowIsSet(true);
19433 } else {
19434 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19435 }
19436 break;
19437 case 3:
19438 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
19439 {
19440 org.apache.thrift.protocol.TList _list156 = iprot.readListBegin();
19441 struct.columns = new ArrayList<ByteBuffer>(_list156.size);
19442 for (int _i157 = 0; _i157 < _list156.size; ++_i157)
19443 {
19444 ByteBuffer _elem158;
19445 _elem158 = iprot.readBinary();
19446 struct.columns.add(_elem158);
19447 }
19448 iprot.readListEnd();
19449 }
19450 struct.setColumnsIsSet(true);
19451 } else {
19452 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19453 }
19454 break;
19455 case 4:
19456 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
19457 {
19458 org.apache.thrift.protocol.TMap _map159 = iprot.readMapBegin();
19459 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map159.size);
19460 for (int _i160 = 0; _i160 < _map159.size; ++_i160)
19461 {
19462 ByteBuffer _key161;
19463 ByteBuffer _val162;
19464 _key161 = iprot.readBinary();
19465 _val162 = iprot.readBinary();
19466 struct.attributes.put(_key161, _val162);
19467 }
19468 iprot.readMapEnd();
19469 }
19470 struct.setAttributesIsSet(true);
19471 } else {
19472 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19473 }
19474 break;
19475 default:
19476 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19477 }
19478 iprot.readFieldEnd();
19479 }
19480 iprot.readStructEnd();
19481
19482
19483 struct.validate();
19484 }
19485
19486 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumns_args struct) throws org.apache.thrift.TException {
19487 struct.validate();
19488
19489 oprot.writeStructBegin(STRUCT_DESC);
19490 if (struct.tableName != null) {
19491 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
19492 oprot.writeBinary(struct.tableName);
19493 oprot.writeFieldEnd();
19494 }
19495 if (struct.row != null) {
19496 oprot.writeFieldBegin(ROW_FIELD_DESC);
19497 oprot.writeBinary(struct.row);
19498 oprot.writeFieldEnd();
19499 }
19500 if (struct.columns != null) {
19501 oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
19502 {
19503 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
19504 for (ByteBuffer _iter163 : struct.columns)
19505 {
19506 oprot.writeBinary(_iter163);
19507 }
19508 oprot.writeListEnd();
19509 }
19510 oprot.writeFieldEnd();
19511 }
19512 if (struct.attributes != null) {
19513 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
19514 {
19515 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
19516 for (Map.Entry<ByteBuffer, ByteBuffer> _iter164 : struct.attributes.entrySet())
19517 {
19518 oprot.writeBinary(_iter164.getKey());
19519 oprot.writeBinary(_iter164.getValue());
19520 }
19521 oprot.writeMapEnd();
19522 }
19523 oprot.writeFieldEnd();
19524 }
19525 oprot.writeFieldStop();
19526 oprot.writeStructEnd();
19527 }
19528
19529 }
19530
19531 private static class getRowWithColumns_argsTupleSchemeFactory implements SchemeFactory {
19532 public getRowWithColumns_argsTupleScheme getScheme() {
19533 return new getRowWithColumns_argsTupleScheme();
19534 }
19535 }
19536
19537 private static class getRowWithColumns_argsTupleScheme extends TupleScheme<getRowWithColumns_args> {
19538
19539 @Override
19540 public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_args struct) throws org.apache.thrift.TException {
19541 TTupleProtocol oprot = (TTupleProtocol) prot;
19542 BitSet optionals = new BitSet();
19543 if (struct.isSetTableName()) {
19544 optionals.set(0);
19545 }
19546 if (struct.isSetRow()) {
19547 optionals.set(1);
19548 }
19549 if (struct.isSetColumns()) {
19550 optionals.set(2);
19551 }
19552 if (struct.isSetAttributes()) {
19553 optionals.set(3);
19554 }
19555 oprot.writeBitSet(optionals, 4);
19556 if (struct.isSetTableName()) {
19557 oprot.writeBinary(struct.tableName);
19558 }
19559 if (struct.isSetRow()) {
19560 oprot.writeBinary(struct.row);
19561 }
19562 if (struct.isSetColumns()) {
19563 {
19564 oprot.writeI32(struct.columns.size());
19565 for (ByteBuffer _iter165 : struct.columns)
19566 {
19567 oprot.writeBinary(_iter165);
19568 }
19569 }
19570 }
19571 if (struct.isSetAttributes()) {
19572 {
19573 oprot.writeI32(struct.attributes.size());
19574 for (Map.Entry<ByteBuffer, ByteBuffer> _iter166 : struct.attributes.entrySet())
19575 {
19576 oprot.writeBinary(_iter166.getKey());
19577 oprot.writeBinary(_iter166.getValue());
19578 }
19579 }
19580 }
19581 }
19582
19583 @Override
19584 public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_args struct) throws org.apache.thrift.TException {
19585 TTupleProtocol iprot = (TTupleProtocol) prot;
19586 BitSet incoming = iprot.readBitSet(4);
19587 if (incoming.get(0)) {
19588 struct.tableName = iprot.readBinary();
19589 struct.setTableNameIsSet(true);
19590 }
19591 if (incoming.get(1)) {
19592 struct.row = iprot.readBinary();
19593 struct.setRowIsSet(true);
19594 }
19595 if (incoming.get(2)) {
19596 {
19597 org.apache.thrift.protocol.TList _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
19598 struct.columns = new ArrayList<ByteBuffer>(_list167.size);
19599 for (int _i168 = 0; _i168 < _list167.size; ++_i168)
19600 {
19601 ByteBuffer _elem169;
19602 _elem169 = iprot.readBinary();
19603 struct.columns.add(_elem169);
19604 }
19605 }
19606 struct.setColumnsIsSet(true);
19607 }
19608 if (incoming.get(3)) {
19609 {
19610 org.apache.thrift.protocol.TMap _map170 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
19611 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map170.size);
19612 for (int _i171 = 0; _i171 < _map170.size; ++_i171)
19613 {
19614 ByteBuffer _key172;
19615 ByteBuffer _val173;
19616 _key172 = iprot.readBinary();
19617 _val173 = iprot.readBinary();
19618 struct.attributes.put(_key172, _val173);
19619 }
19620 }
19621 struct.setAttributesIsSet(true);
19622 }
19623 }
19624 }
19625
19626 }
19627
19628 public static class getRowWithColumns_result implements org.apache.thrift.TBase<getRowWithColumns_result, getRowWithColumns_result._Fields>, java.io.Serializable, Cloneable {
19629 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumns_result");
19630
19631 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
19632 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
19633
19634 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19635 static {
19636 schemes.put(StandardScheme.class, new getRowWithColumns_resultStandardSchemeFactory());
19637 schemes.put(TupleScheme.class, new getRowWithColumns_resultTupleSchemeFactory());
19638 }
19639
19640 public List<TRowResult> success;
19641 public IOError io;
19642
19643
19644 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19645 SUCCESS((short)0, "success"),
19646 IO((short)1, "io");
19647
19648 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19649
19650 static {
19651 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19652 byName.put(field.getFieldName(), field);
19653 }
19654 }
19655
19656
19657
19658
19659 public static _Fields findByThriftId(int fieldId) {
19660 switch(fieldId) {
19661 case 0:
19662 return SUCCESS;
19663 case 1:
19664 return IO;
19665 default:
19666 return null;
19667 }
19668 }
19669
19670
19671
19672
19673
19674 public static _Fields findByThriftIdOrThrow(int fieldId) {
19675 _Fields fields = findByThriftId(fieldId);
19676 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19677 return fields;
19678 }
19679
19680
19681
19682
19683 public static _Fields findByName(String name) {
19684 return byName.get(name);
19685 }
19686
19687 private final short _thriftId;
19688 private final String _fieldName;
19689
19690 _Fields(short thriftId, String fieldName) {
19691 _thriftId = thriftId;
19692 _fieldName = fieldName;
19693 }
19694
19695 public short getThriftFieldId() {
19696 return _thriftId;
19697 }
19698
19699 public String getFieldName() {
19700 return _fieldName;
19701 }
19702 }
19703
19704
19705 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19706 static {
19707 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19708 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
19709 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
19710 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
19711 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
19712 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19713 metaDataMap = Collections.unmodifiableMap(tmpMap);
19714 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumns_result.class, metaDataMap);
19715 }
19716
19717 public getRowWithColumns_result() {
19718 }
19719
19720 public getRowWithColumns_result(
19721 List<TRowResult> success,
19722 IOError io)
19723 {
19724 this();
19725 this.success = success;
19726 this.io = io;
19727 }
19728
19729
19730
19731
19732 public getRowWithColumns_result(getRowWithColumns_result other) {
19733 if (other.isSetSuccess()) {
19734 List<TRowResult> __this__success = new ArrayList<TRowResult>();
19735 for (TRowResult other_element : other.success) {
19736 __this__success.add(new TRowResult(other_element));
19737 }
19738 this.success = __this__success;
19739 }
19740 if (other.isSetIo()) {
19741 this.io = new IOError(other.io);
19742 }
19743 }
19744
19745 public getRowWithColumns_result deepCopy() {
19746 return new getRowWithColumns_result(this);
19747 }
19748
19749 @Override
19750 public void clear() {
19751 this.success = null;
19752 this.io = null;
19753 }
19754
19755 public int getSuccessSize() {
19756 return (this.success == null) ? 0 : this.success.size();
19757 }
19758
19759 public java.util.Iterator<TRowResult> getSuccessIterator() {
19760 return (this.success == null) ? null : this.success.iterator();
19761 }
19762
19763 public void addToSuccess(TRowResult elem) {
19764 if (this.success == null) {
19765 this.success = new ArrayList<TRowResult>();
19766 }
19767 this.success.add(elem);
19768 }
19769
19770 public List<TRowResult> getSuccess() {
19771 return this.success;
19772 }
19773
19774 public getRowWithColumns_result setSuccess(List<TRowResult> success) {
19775 this.success = success;
19776 return this;
19777 }
19778
19779 public void unsetSuccess() {
19780 this.success = null;
19781 }
19782
19783
19784 public boolean isSetSuccess() {
19785 return this.success != null;
19786 }
19787
19788 public void setSuccessIsSet(boolean value) {
19789 if (!value) {
19790 this.success = null;
19791 }
19792 }
19793
19794 public IOError getIo() {
19795 return this.io;
19796 }
19797
19798 public getRowWithColumns_result setIo(IOError io) {
19799 this.io = io;
19800 return this;
19801 }
19802
19803 public void unsetIo() {
19804 this.io = null;
19805 }
19806
19807
19808 public boolean isSetIo() {
19809 return this.io != null;
19810 }
19811
19812 public void setIoIsSet(boolean value) {
19813 if (!value) {
19814 this.io = null;
19815 }
19816 }
19817
19818 public void setFieldValue(_Fields field, Object value) {
19819 switch (field) {
19820 case SUCCESS:
19821 if (value == null) {
19822 unsetSuccess();
19823 } else {
19824 setSuccess((List<TRowResult>)value);
19825 }
19826 break;
19827
19828 case IO:
19829 if (value == null) {
19830 unsetIo();
19831 } else {
19832 setIo((IOError)value);
19833 }
19834 break;
19835
19836 }
19837 }
19838
19839 public Object getFieldValue(_Fields field) {
19840 switch (field) {
19841 case SUCCESS:
19842 return getSuccess();
19843
19844 case IO:
19845 return getIo();
19846
19847 }
19848 throw new IllegalStateException();
19849 }
19850
19851
19852 public boolean isSet(_Fields field) {
19853 if (field == null) {
19854 throw new IllegalArgumentException();
19855 }
19856
19857 switch (field) {
19858 case SUCCESS:
19859 return isSetSuccess();
19860 case IO:
19861 return isSetIo();
19862 }
19863 throw new IllegalStateException();
19864 }
19865
19866 @Override
19867 public boolean equals(Object that) {
19868 if (that == null)
19869 return false;
19870 if (that instanceof getRowWithColumns_result)
19871 return this.equals((getRowWithColumns_result)that);
19872 return false;
19873 }
19874
19875 public boolean equals(getRowWithColumns_result that) {
19876 if (that == null)
19877 return false;
19878
19879 boolean this_present_success = true && this.isSetSuccess();
19880 boolean that_present_success = true && that.isSetSuccess();
19881 if (this_present_success || that_present_success) {
19882 if (!(this_present_success && that_present_success))
19883 return false;
19884 if (!this.success.equals(that.success))
19885 return false;
19886 }
19887
19888 boolean this_present_io = true && this.isSetIo();
19889 boolean that_present_io = true && that.isSetIo();
19890 if (this_present_io || that_present_io) {
19891 if (!(this_present_io && that_present_io))
19892 return false;
19893 if (!this.io.equals(that.io))
19894 return false;
19895 }
19896
19897 return true;
19898 }
19899
19900 @Override
19901 public int hashCode() {
19902 HashCodeBuilder builder = new HashCodeBuilder();
19903
19904 boolean present_success = true && (isSetSuccess());
19905 builder.append(present_success);
19906 if (present_success)
19907 builder.append(success);
19908
19909 boolean present_io = true && (isSetIo());
19910 builder.append(present_io);
19911 if (present_io)
19912 builder.append(io);
19913
19914 return builder.toHashCode();
19915 }
19916
19917 public int compareTo(getRowWithColumns_result other) {
19918 if (!getClass().equals(other.getClass())) {
19919 return getClass().getName().compareTo(other.getClass().getName());
19920 }
19921
19922 int lastComparison = 0;
19923 getRowWithColumns_result typedOther = (getRowWithColumns_result)other;
19924
19925 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19926 if (lastComparison != 0) {
19927 return lastComparison;
19928 }
19929 if (isSetSuccess()) {
19930 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19931 if (lastComparison != 0) {
19932 return lastComparison;
19933 }
19934 }
19935 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
19936 if (lastComparison != 0) {
19937 return lastComparison;
19938 }
19939 if (isSetIo()) {
19940 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
19941 if (lastComparison != 0) {
19942 return lastComparison;
19943 }
19944 }
19945 return 0;
19946 }
19947
19948 public _Fields fieldForId(int fieldId) {
19949 return _Fields.findByThriftId(fieldId);
19950 }
19951
19952 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19953 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19954 }
19955
19956 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19957 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19958 }
19959
19960 @Override
19961 public String toString() {
19962 StringBuilder sb = new StringBuilder("getRowWithColumns_result(");
19963 boolean first = true;
19964
19965 sb.append("success:");
19966 if (this.success == null) {
19967 sb.append("null");
19968 } else {
19969 sb.append(this.success);
19970 }
19971 first = false;
19972 if (!first) sb.append(", ");
19973 sb.append("io:");
19974 if (this.io == null) {
19975 sb.append("null");
19976 } else {
19977 sb.append(this.io);
19978 }
19979 first = false;
19980 sb.append(")");
19981 return sb.toString();
19982 }
19983
19984 public void validate() throws org.apache.thrift.TException {
19985
19986
19987 }
19988
19989 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19990 try {
19991 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19992 } catch (org.apache.thrift.TException te) {
19993 throw new java.io.IOException(te);
19994 }
19995 }
19996
19997 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19998 try {
19999 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20000 } catch (org.apache.thrift.TException te) {
20001 throw new java.io.IOException(te);
20002 }
20003 }
20004
20005 private static class getRowWithColumns_resultStandardSchemeFactory implements SchemeFactory {
20006 public getRowWithColumns_resultStandardScheme getScheme() {
20007 return new getRowWithColumns_resultStandardScheme();
20008 }
20009 }
20010
20011 private static class getRowWithColumns_resultStandardScheme extends StandardScheme<getRowWithColumns_result> {
20012
20013 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumns_result struct) throws org.apache.thrift.TException {
20014 org.apache.thrift.protocol.TField schemeField;
20015 iprot.readStructBegin();
20016 while (true)
20017 {
20018 schemeField = iprot.readFieldBegin();
20019 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20020 break;
20021 }
20022 switch (schemeField.id) {
20023 case 0:
20024 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
20025 {
20026 org.apache.thrift.protocol.TList _list174 = iprot.readListBegin();
20027 struct.success = new ArrayList<TRowResult>(_list174.size);
20028 for (int _i175 = 0; _i175 < _list174.size; ++_i175)
20029 {
20030 TRowResult _elem176;
20031 _elem176 = new TRowResult();
20032 _elem176.read(iprot);
20033 struct.success.add(_elem176);
20034 }
20035 iprot.readListEnd();
20036 }
20037 struct.setSuccessIsSet(true);
20038 } else {
20039 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20040 }
20041 break;
20042 case 1:
20043 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
20044 struct.io = new IOError();
20045 struct.io.read(iprot);
20046 struct.setIoIsSet(true);
20047 } else {
20048 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20049 }
20050 break;
20051 default:
20052 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20053 }
20054 iprot.readFieldEnd();
20055 }
20056 iprot.readStructEnd();
20057
20058
20059 struct.validate();
20060 }
20061
20062 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumns_result struct) throws org.apache.thrift.TException {
20063 struct.validate();
20064
20065 oprot.writeStructBegin(STRUCT_DESC);
20066 if (struct.success != null) {
20067 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20068 {
20069 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
20070 for (TRowResult _iter177 : struct.success)
20071 {
20072 _iter177.write(oprot);
20073 }
20074 oprot.writeListEnd();
20075 }
20076 oprot.writeFieldEnd();
20077 }
20078 if (struct.io != null) {
20079 oprot.writeFieldBegin(IO_FIELD_DESC);
20080 struct.io.write(oprot);
20081 oprot.writeFieldEnd();
20082 }
20083 oprot.writeFieldStop();
20084 oprot.writeStructEnd();
20085 }
20086
20087 }
20088
20089 private static class getRowWithColumns_resultTupleSchemeFactory implements SchemeFactory {
20090 public getRowWithColumns_resultTupleScheme getScheme() {
20091 return new getRowWithColumns_resultTupleScheme();
20092 }
20093 }
20094
20095 private static class getRowWithColumns_resultTupleScheme extends TupleScheme<getRowWithColumns_result> {
20096
20097 @Override
20098 public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_result struct) throws org.apache.thrift.TException {
20099 TTupleProtocol oprot = (TTupleProtocol) prot;
20100 BitSet optionals = new BitSet();
20101 if (struct.isSetSuccess()) {
20102 optionals.set(0);
20103 }
20104 if (struct.isSetIo()) {
20105 optionals.set(1);
20106 }
20107 oprot.writeBitSet(optionals, 2);
20108 if (struct.isSetSuccess()) {
20109 {
20110 oprot.writeI32(struct.success.size());
20111 for (TRowResult _iter178 : struct.success)
20112 {
20113 _iter178.write(oprot);
20114 }
20115 }
20116 }
20117 if (struct.isSetIo()) {
20118 struct.io.write(oprot);
20119 }
20120 }
20121
20122 @Override
20123 public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumns_result struct) throws org.apache.thrift.TException {
20124 TTupleProtocol iprot = (TTupleProtocol) prot;
20125 BitSet incoming = iprot.readBitSet(2);
20126 if (incoming.get(0)) {
20127 {
20128 org.apache.thrift.protocol.TList _list179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
20129 struct.success = new ArrayList<TRowResult>(_list179.size);
20130 for (int _i180 = 0; _i180 < _list179.size; ++_i180)
20131 {
20132 TRowResult _elem181;
20133 _elem181 = new TRowResult();
20134 _elem181.read(iprot);
20135 struct.success.add(_elem181);
20136 }
20137 }
20138 struct.setSuccessIsSet(true);
20139 }
20140 if (incoming.get(1)) {
20141 struct.io = new IOError();
20142 struct.io.read(iprot);
20143 struct.setIoIsSet(true);
20144 }
20145 }
20146 }
20147
20148 }
20149
20150 public static class getRowTs_args implements org.apache.thrift.TBase<getRowTs_args, getRowTs_args._Fields>, java.io.Serializable, Cloneable {
20151 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowTs_args");
20152
20153 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
20154 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
20155 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
20156 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
20157
20158 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20159 static {
20160 schemes.put(StandardScheme.class, new getRowTs_argsStandardSchemeFactory());
20161 schemes.put(TupleScheme.class, new getRowTs_argsTupleSchemeFactory());
20162 }
20163
20164
20165
20166
20167 public ByteBuffer tableName;
20168
20169
20170
20171 public ByteBuffer row;
20172
20173
20174
20175 public long timestamp;
20176
20177
20178
20179 public Map<ByteBuffer,ByteBuffer> attributes;
20180
20181
20182 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20183
20184
20185
20186 TABLE_NAME((short)1, "tableName"),
20187
20188
20189
20190 ROW((short)2, "row"),
20191
20192
20193
20194 TIMESTAMP((short)3, "timestamp"),
20195
20196
20197
20198 ATTRIBUTES((short)4, "attributes");
20199
20200 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20201
20202 static {
20203 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20204 byName.put(field.getFieldName(), field);
20205 }
20206 }
20207
20208
20209
20210
20211 public static _Fields findByThriftId(int fieldId) {
20212 switch(fieldId) {
20213 case 1:
20214 return TABLE_NAME;
20215 case 2:
20216 return ROW;
20217 case 3:
20218 return TIMESTAMP;
20219 case 4:
20220 return ATTRIBUTES;
20221 default:
20222 return null;
20223 }
20224 }
20225
20226
20227
20228
20229
20230 public static _Fields findByThriftIdOrThrow(int fieldId) {
20231 _Fields fields = findByThriftId(fieldId);
20232 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20233 return fields;
20234 }
20235
20236
20237
20238
20239 public static _Fields findByName(String name) {
20240 return byName.get(name);
20241 }
20242
20243 private final short _thriftId;
20244 private final String _fieldName;
20245
20246 _Fields(short thriftId, String fieldName) {
20247 _thriftId = thriftId;
20248 _fieldName = fieldName;
20249 }
20250
20251 public short getThriftFieldId() {
20252 return _thriftId;
20253 }
20254
20255 public String getFieldName() {
20256 return _fieldName;
20257 }
20258 }
20259
20260
20261 private static final int __TIMESTAMP_ISSET_ID = 0;
20262 private byte __isset_bitfield = 0;
20263 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20264 static {
20265 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20266 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
20267 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
20268 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
20269 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
20270 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
20271 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20272 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
20273 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
20274 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
20275 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
20276 metaDataMap = Collections.unmodifiableMap(tmpMap);
20277 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowTs_args.class, metaDataMap);
20278 }
20279
20280 public getRowTs_args() {
20281 }
20282
20283 public getRowTs_args(
20284 ByteBuffer tableName,
20285 ByteBuffer row,
20286 long timestamp,
20287 Map<ByteBuffer,ByteBuffer> attributes)
20288 {
20289 this();
20290 this.tableName = tableName;
20291 this.row = row;
20292 this.timestamp = timestamp;
20293 setTimestampIsSet(true);
20294 this.attributes = attributes;
20295 }
20296
20297
20298
20299
20300 public getRowTs_args(getRowTs_args other) {
20301 __isset_bitfield = other.__isset_bitfield;
20302 if (other.isSetTableName()) {
20303 this.tableName = other.tableName;
20304 }
20305 if (other.isSetRow()) {
20306 this.row = other.row;
20307 }
20308 this.timestamp = other.timestamp;
20309 if (other.isSetAttributes()) {
20310 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
20311 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
20312
20313 ByteBuffer other_element_key = other_element.getKey();
20314 ByteBuffer other_element_value = other_element.getValue();
20315
20316 ByteBuffer __this__attributes_copy_key = other_element_key;
20317
20318 ByteBuffer __this__attributes_copy_value = other_element_value;
20319
20320 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
20321 }
20322 this.attributes = __this__attributes;
20323 }
20324 }
20325
20326 public getRowTs_args deepCopy() {
20327 return new getRowTs_args(this);
20328 }
20329
20330 @Override
20331 public void clear() {
20332 this.tableName = null;
20333 this.row = null;
20334 setTimestampIsSet(false);
20335 this.timestamp = 0;
20336 this.attributes = null;
20337 }
20338
20339
20340
20341
20342 public byte[] getTableName() {
20343 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
20344 return tableName == null ? null : tableName.array();
20345 }
20346
20347 public ByteBuffer bufferForTableName() {
20348 return tableName;
20349 }
20350
20351
20352
20353
20354 public getRowTs_args setTableName(byte[] tableName) {
20355 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
20356 return this;
20357 }
20358
20359 public getRowTs_args setTableName(ByteBuffer tableName) {
20360 this.tableName = tableName;
20361 return this;
20362 }
20363
20364 public void unsetTableName() {
20365 this.tableName = null;
20366 }
20367
20368
20369 public boolean isSetTableName() {
20370 return this.tableName != null;
20371 }
20372
20373 public void setTableNameIsSet(boolean value) {
20374 if (!value) {
20375 this.tableName = null;
20376 }
20377 }
20378
20379
20380
20381
20382 public byte[] getRow() {
20383 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
20384 return row == null ? null : row.array();
20385 }
20386
20387 public ByteBuffer bufferForRow() {
20388 return row;
20389 }
20390
20391
20392
20393
20394 public getRowTs_args setRow(byte[] row) {
20395 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
20396 return this;
20397 }
20398
20399 public getRowTs_args setRow(ByteBuffer row) {
20400 this.row = row;
20401 return this;
20402 }
20403
20404 public void unsetRow() {
20405 this.row = null;
20406 }
20407
20408
20409 public boolean isSetRow() {
20410 return this.row != null;
20411 }
20412
20413 public void setRowIsSet(boolean value) {
20414 if (!value) {
20415 this.row = null;
20416 }
20417 }
20418
20419
20420
20421
20422 public long getTimestamp() {
20423 return this.timestamp;
20424 }
20425
20426
20427
20428
20429 public getRowTs_args setTimestamp(long timestamp) {
20430 this.timestamp = timestamp;
20431 setTimestampIsSet(true);
20432 return this;
20433 }
20434
20435 public void unsetTimestamp() {
20436 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
20437 }
20438
20439
20440 public boolean isSetTimestamp() {
20441 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
20442 }
20443
20444 public void setTimestampIsSet(boolean value) {
20445 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
20446 }
20447
20448 public int getAttributesSize() {
20449 return (this.attributes == null) ? 0 : this.attributes.size();
20450 }
20451
20452 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
20453 if (this.attributes == null) {
20454 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
20455 }
20456 this.attributes.put(key, val);
20457 }
20458
20459
20460
20461
20462 public Map<ByteBuffer,ByteBuffer> getAttributes() {
20463 return this.attributes;
20464 }
20465
20466
20467
20468
20469 public getRowTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
20470 this.attributes = attributes;
20471 return this;
20472 }
20473
20474 public void unsetAttributes() {
20475 this.attributes = null;
20476 }
20477
20478
20479 public boolean isSetAttributes() {
20480 return this.attributes != null;
20481 }
20482
20483 public void setAttributesIsSet(boolean value) {
20484 if (!value) {
20485 this.attributes = null;
20486 }
20487 }
20488
20489 public void setFieldValue(_Fields field, Object value) {
20490 switch (field) {
20491 case TABLE_NAME:
20492 if (value == null) {
20493 unsetTableName();
20494 } else {
20495 setTableName((ByteBuffer)value);
20496 }
20497 break;
20498
20499 case ROW:
20500 if (value == null) {
20501 unsetRow();
20502 } else {
20503 setRow((ByteBuffer)value);
20504 }
20505 break;
20506
20507 case TIMESTAMP:
20508 if (value == null) {
20509 unsetTimestamp();
20510 } else {
20511 setTimestamp((Long)value);
20512 }
20513 break;
20514
20515 case ATTRIBUTES:
20516 if (value == null) {
20517 unsetAttributes();
20518 } else {
20519 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
20520 }
20521 break;
20522
20523 }
20524 }
20525
20526 public Object getFieldValue(_Fields field) {
20527 switch (field) {
20528 case TABLE_NAME:
20529 return getTableName();
20530
20531 case ROW:
20532 return getRow();
20533
20534 case TIMESTAMP:
20535 return Long.valueOf(getTimestamp());
20536
20537 case ATTRIBUTES:
20538 return getAttributes();
20539
20540 }
20541 throw new IllegalStateException();
20542 }
20543
20544
20545 public boolean isSet(_Fields field) {
20546 if (field == null) {
20547 throw new IllegalArgumentException();
20548 }
20549
20550 switch (field) {
20551 case TABLE_NAME:
20552 return isSetTableName();
20553 case ROW:
20554 return isSetRow();
20555 case TIMESTAMP:
20556 return isSetTimestamp();
20557 case ATTRIBUTES:
20558 return isSetAttributes();
20559 }
20560 throw new IllegalStateException();
20561 }
20562
20563 @Override
20564 public boolean equals(Object that) {
20565 if (that == null)
20566 return false;
20567 if (that instanceof getRowTs_args)
20568 return this.equals((getRowTs_args)that);
20569 return false;
20570 }
20571
20572 public boolean equals(getRowTs_args that) {
20573 if (that == null)
20574 return false;
20575
20576 boolean this_present_tableName = true && this.isSetTableName();
20577 boolean that_present_tableName = true && that.isSetTableName();
20578 if (this_present_tableName || that_present_tableName) {
20579 if (!(this_present_tableName && that_present_tableName))
20580 return false;
20581 if (!this.tableName.equals(that.tableName))
20582 return false;
20583 }
20584
20585 boolean this_present_row = true && this.isSetRow();
20586 boolean that_present_row = true && that.isSetRow();
20587 if (this_present_row || that_present_row) {
20588 if (!(this_present_row && that_present_row))
20589 return false;
20590 if (!this.row.equals(that.row))
20591 return false;
20592 }
20593
20594 boolean this_present_timestamp = true;
20595 boolean that_present_timestamp = true;
20596 if (this_present_timestamp || that_present_timestamp) {
20597 if (!(this_present_timestamp && that_present_timestamp))
20598 return false;
20599 if (this.timestamp != that.timestamp)
20600 return false;
20601 }
20602
20603 boolean this_present_attributes = true && this.isSetAttributes();
20604 boolean that_present_attributes = true && that.isSetAttributes();
20605 if (this_present_attributes || that_present_attributes) {
20606 if (!(this_present_attributes && that_present_attributes))
20607 return false;
20608 if (!this.attributes.equals(that.attributes))
20609 return false;
20610 }
20611
20612 return true;
20613 }
20614
20615 @Override
20616 public int hashCode() {
20617 HashCodeBuilder builder = new HashCodeBuilder();
20618
20619 boolean present_tableName = true && (isSetTableName());
20620 builder.append(present_tableName);
20621 if (present_tableName)
20622 builder.append(tableName);
20623
20624 boolean present_row = true && (isSetRow());
20625 builder.append(present_row);
20626 if (present_row)
20627 builder.append(row);
20628
20629 boolean present_timestamp = true;
20630 builder.append(present_timestamp);
20631 if (present_timestamp)
20632 builder.append(timestamp);
20633
20634 boolean present_attributes = true && (isSetAttributes());
20635 builder.append(present_attributes);
20636 if (present_attributes)
20637 builder.append(attributes);
20638
20639 return builder.toHashCode();
20640 }
20641
20642 public int compareTo(getRowTs_args other) {
20643 if (!getClass().equals(other.getClass())) {
20644 return getClass().getName().compareTo(other.getClass().getName());
20645 }
20646
20647 int lastComparison = 0;
20648 getRowTs_args typedOther = (getRowTs_args)other;
20649
20650 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
20651 if (lastComparison != 0) {
20652 return lastComparison;
20653 }
20654 if (isSetTableName()) {
20655 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
20656 if (lastComparison != 0) {
20657 return lastComparison;
20658 }
20659 }
20660 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
20661 if (lastComparison != 0) {
20662 return lastComparison;
20663 }
20664 if (isSetRow()) {
20665 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
20666 if (lastComparison != 0) {
20667 return lastComparison;
20668 }
20669 }
20670 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
20671 if (lastComparison != 0) {
20672 return lastComparison;
20673 }
20674 if (isSetTimestamp()) {
20675 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
20676 if (lastComparison != 0) {
20677 return lastComparison;
20678 }
20679 }
20680 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
20681 if (lastComparison != 0) {
20682 return lastComparison;
20683 }
20684 if (isSetAttributes()) {
20685 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
20686 if (lastComparison != 0) {
20687 return lastComparison;
20688 }
20689 }
20690 return 0;
20691 }
20692
20693 public _Fields fieldForId(int fieldId) {
20694 return _Fields.findByThriftId(fieldId);
20695 }
20696
20697 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20698 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20699 }
20700
20701 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20702 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20703 }
20704
20705 @Override
20706 public String toString() {
20707 StringBuilder sb = new StringBuilder("getRowTs_args(");
20708 boolean first = true;
20709
20710 sb.append("tableName:");
20711 if (this.tableName == null) {
20712 sb.append("null");
20713 } else {
20714 sb.append(this.tableName);
20715 }
20716 first = false;
20717 if (!first) sb.append(", ");
20718 sb.append("row:");
20719 if (this.row == null) {
20720 sb.append("null");
20721 } else {
20722 sb.append(this.row);
20723 }
20724 first = false;
20725 if (!first) sb.append(", ");
20726 sb.append("timestamp:");
20727 sb.append(this.timestamp);
20728 first = false;
20729 if (!first) sb.append(", ");
20730 sb.append("attributes:");
20731 if (this.attributes == null) {
20732 sb.append("null");
20733 } else {
20734 sb.append(this.attributes);
20735 }
20736 first = false;
20737 sb.append(")");
20738 return sb.toString();
20739 }
20740
20741 public void validate() throws org.apache.thrift.TException {
20742
20743
20744 }
20745
20746 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20747 try {
20748 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20749 } catch (org.apache.thrift.TException te) {
20750 throw new java.io.IOException(te);
20751 }
20752 }
20753
20754 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20755 try {
20756
20757 __isset_bitfield = 0;
20758 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20759 } catch (org.apache.thrift.TException te) {
20760 throw new java.io.IOException(te);
20761 }
20762 }
20763
20764 private static class getRowTs_argsStandardSchemeFactory implements SchemeFactory {
20765 public getRowTs_argsStandardScheme getScheme() {
20766 return new getRowTs_argsStandardScheme();
20767 }
20768 }
20769
20770 private static class getRowTs_argsStandardScheme extends StandardScheme<getRowTs_args> {
20771
20772 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowTs_args struct) throws org.apache.thrift.TException {
20773 org.apache.thrift.protocol.TField schemeField;
20774 iprot.readStructBegin();
20775 while (true)
20776 {
20777 schemeField = iprot.readFieldBegin();
20778 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20779 break;
20780 }
20781 switch (schemeField.id) {
20782 case 1:
20783 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
20784 struct.tableName = iprot.readBinary();
20785 struct.setTableNameIsSet(true);
20786 } else {
20787 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20788 }
20789 break;
20790 case 2:
20791 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
20792 struct.row = iprot.readBinary();
20793 struct.setRowIsSet(true);
20794 } else {
20795 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20796 }
20797 break;
20798 case 3:
20799 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
20800 struct.timestamp = iprot.readI64();
20801 struct.setTimestampIsSet(true);
20802 } else {
20803 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20804 }
20805 break;
20806 case 4:
20807 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
20808 {
20809 org.apache.thrift.protocol.TMap _map182 = iprot.readMapBegin();
20810 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map182.size);
20811 for (int _i183 = 0; _i183 < _map182.size; ++_i183)
20812 {
20813 ByteBuffer _key184;
20814 ByteBuffer _val185;
20815 _key184 = iprot.readBinary();
20816 _val185 = iprot.readBinary();
20817 struct.attributes.put(_key184, _val185);
20818 }
20819 iprot.readMapEnd();
20820 }
20821 struct.setAttributesIsSet(true);
20822 } else {
20823 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20824 }
20825 break;
20826 default:
20827 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20828 }
20829 iprot.readFieldEnd();
20830 }
20831 iprot.readStructEnd();
20832
20833
20834 struct.validate();
20835 }
20836
20837 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowTs_args struct) throws org.apache.thrift.TException {
20838 struct.validate();
20839
20840 oprot.writeStructBegin(STRUCT_DESC);
20841 if (struct.tableName != null) {
20842 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
20843 oprot.writeBinary(struct.tableName);
20844 oprot.writeFieldEnd();
20845 }
20846 if (struct.row != null) {
20847 oprot.writeFieldBegin(ROW_FIELD_DESC);
20848 oprot.writeBinary(struct.row);
20849 oprot.writeFieldEnd();
20850 }
20851 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
20852 oprot.writeI64(struct.timestamp);
20853 oprot.writeFieldEnd();
20854 if (struct.attributes != null) {
20855 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
20856 {
20857 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
20858 for (Map.Entry<ByteBuffer, ByteBuffer> _iter186 : struct.attributes.entrySet())
20859 {
20860 oprot.writeBinary(_iter186.getKey());
20861 oprot.writeBinary(_iter186.getValue());
20862 }
20863 oprot.writeMapEnd();
20864 }
20865 oprot.writeFieldEnd();
20866 }
20867 oprot.writeFieldStop();
20868 oprot.writeStructEnd();
20869 }
20870
20871 }
20872
20873 private static class getRowTs_argsTupleSchemeFactory implements SchemeFactory {
20874 public getRowTs_argsTupleScheme getScheme() {
20875 return new getRowTs_argsTupleScheme();
20876 }
20877 }
20878
20879 private static class getRowTs_argsTupleScheme extends TupleScheme<getRowTs_args> {
20880
20881 @Override
20882 public void write(org.apache.thrift.protocol.TProtocol prot, getRowTs_args struct) throws org.apache.thrift.TException {
20883 TTupleProtocol oprot = (TTupleProtocol) prot;
20884 BitSet optionals = new BitSet();
20885 if (struct.isSetTableName()) {
20886 optionals.set(0);
20887 }
20888 if (struct.isSetRow()) {
20889 optionals.set(1);
20890 }
20891 if (struct.isSetTimestamp()) {
20892 optionals.set(2);
20893 }
20894 if (struct.isSetAttributes()) {
20895 optionals.set(3);
20896 }
20897 oprot.writeBitSet(optionals, 4);
20898 if (struct.isSetTableName()) {
20899 oprot.writeBinary(struct.tableName);
20900 }
20901 if (struct.isSetRow()) {
20902 oprot.writeBinary(struct.row);
20903 }
20904 if (struct.isSetTimestamp()) {
20905 oprot.writeI64(struct.timestamp);
20906 }
20907 if (struct.isSetAttributes()) {
20908 {
20909 oprot.writeI32(struct.attributes.size());
20910 for (Map.Entry<ByteBuffer, ByteBuffer> _iter187 : struct.attributes.entrySet())
20911 {
20912 oprot.writeBinary(_iter187.getKey());
20913 oprot.writeBinary(_iter187.getValue());
20914 }
20915 }
20916 }
20917 }
20918
20919 @Override
20920 public void read(org.apache.thrift.protocol.TProtocol prot, getRowTs_args struct) throws org.apache.thrift.TException {
20921 TTupleProtocol iprot = (TTupleProtocol) prot;
20922 BitSet incoming = iprot.readBitSet(4);
20923 if (incoming.get(0)) {
20924 struct.tableName = iprot.readBinary();
20925 struct.setTableNameIsSet(true);
20926 }
20927 if (incoming.get(1)) {
20928 struct.row = iprot.readBinary();
20929 struct.setRowIsSet(true);
20930 }
20931 if (incoming.get(2)) {
20932 struct.timestamp = iprot.readI64();
20933 struct.setTimestampIsSet(true);
20934 }
20935 if (incoming.get(3)) {
20936 {
20937 org.apache.thrift.protocol.TMap _map188 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
20938 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map188.size);
20939 for (int _i189 = 0; _i189 < _map188.size; ++_i189)
20940 {
20941 ByteBuffer _key190;
20942 ByteBuffer _val191;
20943 _key190 = iprot.readBinary();
20944 _val191 = iprot.readBinary();
20945 struct.attributes.put(_key190, _val191);
20946 }
20947 }
20948 struct.setAttributesIsSet(true);
20949 }
20950 }
20951 }
20952
20953 }
20954
20955 public static class getRowTs_result implements org.apache.thrift.TBase<getRowTs_result, getRowTs_result._Fields>, java.io.Serializable, Cloneable {
20956 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowTs_result");
20957
20958 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
20959 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
20960
20961 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20962 static {
20963 schemes.put(StandardScheme.class, new getRowTs_resultStandardSchemeFactory());
20964 schemes.put(TupleScheme.class, new getRowTs_resultTupleSchemeFactory());
20965 }
20966
20967 public List<TRowResult> success;
20968 public IOError io;
20969
20970
20971 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20972 SUCCESS((short)0, "success"),
20973 IO((short)1, "io");
20974
20975 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20976
20977 static {
20978 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20979 byName.put(field.getFieldName(), field);
20980 }
20981 }
20982
20983
20984
20985
20986 public static _Fields findByThriftId(int fieldId) {
20987 switch(fieldId) {
20988 case 0:
20989 return SUCCESS;
20990 case 1:
20991 return IO;
20992 default:
20993 return null;
20994 }
20995 }
20996
20997
20998
20999
21000
21001 public static _Fields findByThriftIdOrThrow(int fieldId) {
21002 _Fields fields = findByThriftId(fieldId);
21003 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21004 return fields;
21005 }
21006
21007
21008
21009
21010 public static _Fields findByName(String name) {
21011 return byName.get(name);
21012 }
21013
21014 private final short _thriftId;
21015 private final String _fieldName;
21016
21017 _Fields(short thriftId, String fieldName) {
21018 _thriftId = thriftId;
21019 _fieldName = fieldName;
21020 }
21021
21022 public short getThriftFieldId() {
21023 return _thriftId;
21024 }
21025
21026 public String getFieldName() {
21027 return _fieldName;
21028 }
21029 }
21030
21031
21032 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21033 static {
21034 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21035 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
21036 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
21037 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
21038 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
21039 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21040 metaDataMap = Collections.unmodifiableMap(tmpMap);
21041 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowTs_result.class, metaDataMap);
21042 }
21043
21044 public getRowTs_result() {
21045 }
21046
21047 public getRowTs_result(
21048 List<TRowResult> success,
21049 IOError io)
21050 {
21051 this();
21052 this.success = success;
21053 this.io = io;
21054 }
21055
21056
21057
21058
21059 public getRowTs_result(getRowTs_result other) {
21060 if (other.isSetSuccess()) {
21061 List<TRowResult> __this__success = new ArrayList<TRowResult>();
21062 for (TRowResult other_element : other.success) {
21063 __this__success.add(new TRowResult(other_element));
21064 }
21065 this.success = __this__success;
21066 }
21067 if (other.isSetIo()) {
21068 this.io = new IOError(other.io);
21069 }
21070 }
21071
21072 public getRowTs_result deepCopy() {
21073 return new getRowTs_result(this);
21074 }
21075
21076 @Override
21077 public void clear() {
21078 this.success = null;
21079 this.io = null;
21080 }
21081
21082 public int getSuccessSize() {
21083 return (this.success == null) ? 0 : this.success.size();
21084 }
21085
21086 public java.util.Iterator<TRowResult> getSuccessIterator() {
21087 return (this.success == null) ? null : this.success.iterator();
21088 }
21089
21090 public void addToSuccess(TRowResult elem) {
21091 if (this.success == null) {
21092 this.success = new ArrayList<TRowResult>();
21093 }
21094 this.success.add(elem);
21095 }
21096
21097 public List<TRowResult> getSuccess() {
21098 return this.success;
21099 }
21100
21101 public getRowTs_result setSuccess(List<TRowResult> success) {
21102 this.success = success;
21103 return this;
21104 }
21105
21106 public void unsetSuccess() {
21107 this.success = null;
21108 }
21109
21110
21111 public boolean isSetSuccess() {
21112 return this.success != null;
21113 }
21114
21115 public void setSuccessIsSet(boolean value) {
21116 if (!value) {
21117 this.success = null;
21118 }
21119 }
21120
21121 public IOError getIo() {
21122 return this.io;
21123 }
21124
21125 public getRowTs_result setIo(IOError io) {
21126 this.io = io;
21127 return this;
21128 }
21129
21130 public void unsetIo() {
21131 this.io = null;
21132 }
21133
21134
21135 public boolean isSetIo() {
21136 return this.io != null;
21137 }
21138
21139 public void setIoIsSet(boolean value) {
21140 if (!value) {
21141 this.io = null;
21142 }
21143 }
21144
21145 public void setFieldValue(_Fields field, Object value) {
21146 switch (field) {
21147 case SUCCESS:
21148 if (value == null) {
21149 unsetSuccess();
21150 } else {
21151 setSuccess((List<TRowResult>)value);
21152 }
21153 break;
21154
21155 case IO:
21156 if (value == null) {
21157 unsetIo();
21158 } else {
21159 setIo((IOError)value);
21160 }
21161 break;
21162
21163 }
21164 }
21165
21166 public Object getFieldValue(_Fields field) {
21167 switch (field) {
21168 case SUCCESS:
21169 return getSuccess();
21170
21171 case IO:
21172 return getIo();
21173
21174 }
21175 throw new IllegalStateException();
21176 }
21177
21178
21179 public boolean isSet(_Fields field) {
21180 if (field == null) {
21181 throw new IllegalArgumentException();
21182 }
21183
21184 switch (field) {
21185 case SUCCESS:
21186 return isSetSuccess();
21187 case IO:
21188 return isSetIo();
21189 }
21190 throw new IllegalStateException();
21191 }
21192
21193 @Override
21194 public boolean equals(Object that) {
21195 if (that == null)
21196 return false;
21197 if (that instanceof getRowTs_result)
21198 return this.equals((getRowTs_result)that);
21199 return false;
21200 }
21201
21202 public boolean equals(getRowTs_result that) {
21203 if (that == null)
21204 return false;
21205
21206 boolean this_present_success = true && this.isSetSuccess();
21207 boolean that_present_success = true && that.isSetSuccess();
21208 if (this_present_success || that_present_success) {
21209 if (!(this_present_success && that_present_success))
21210 return false;
21211 if (!this.success.equals(that.success))
21212 return false;
21213 }
21214
21215 boolean this_present_io = true && this.isSetIo();
21216 boolean that_present_io = true && that.isSetIo();
21217 if (this_present_io || that_present_io) {
21218 if (!(this_present_io && that_present_io))
21219 return false;
21220 if (!this.io.equals(that.io))
21221 return false;
21222 }
21223
21224 return true;
21225 }
21226
21227 @Override
21228 public int hashCode() {
21229 HashCodeBuilder builder = new HashCodeBuilder();
21230
21231 boolean present_success = true && (isSetSuccess());
21232 builder.append(present_success);
21233 if (present_success)
21234 builder.append(success);
21235
21236 boolean present_io = true && (isSetIo());
21237 builder.append(present_io);
21238 if (present_io)
21239 builder.append(io);
21240
21241 return builder.toHashCode();
21242 }
21243
21244 public int compareTo(getRowTs_result other) {
21245 if (!getClass().equals(other.getClass())) {
21246 return getClass().getName().compareTo(other.getClass().getName());
21247 }
21248
21249 int lastComparison = 0;
21250 getRowTs_result typedOther = (getRowTs_result)other;
21251
21252 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21253 if (lastComparison != 0) {
21254 return lastComparison;
21255 }
21256 if (isSetSuccess()) {
21257 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21258 if (lastComparison != 0) {
21259 return lastComparison;
21260 }
21261 }
21262 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
21263 if (lastComparison != 0) {
21264 return lastComparison;
21265 }
21266 if (isSetIo()) {
21267 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
21268 if (lastComparison != 0) {
21269 return lastComparison;
21270 }
21271 }
21272 return 0;
21273 }
21274
21275 public _Fields fieldForId(int fieldId) {
21276 return _Fields.findByThriftId(fieldId);
21277 }
21278
21279 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21280 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21281 }
21282
21283 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21284 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21285 }
21286
21287 @Override
21288 public String toString() {
21289 StringBuilder sb = new StringBuilder("getRowTs_result(");
21290 boolean first = true;
21291
21292 sb.append("success:");
21293 if (this.success == null) {
21294 sb.append("null");
21295 } else {
21296 sb.append(this.success);
21297 }
21298 first = false;
21299 if (!first) sb.append(", ");
21300 sb.append("io:");
21301 if (this.io == null) {
21302 sb.append("null");
21303 } else {
21304 sb.append(this.io);
21305 }
21306 first = false;
21307 sb.append(")");
21308 return sb.toString();
21309 }
21310
21311 public void validate() throws org.apache.thrift.TException {
21312
21313
21314 }
21315
21316 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21317 try {
21318 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21319 } catch (org.apache.thrift.TException te) {
21320 throw new java.io.IOException(te);
21321 }
21322 }
21323
21324 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21325 try {
21326 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21327 } catch (org.apache.thrift.TException te) {
21328 throw new java.io.IOException(te);
21329 }
21330 }
21331
21332 private static class getRowTs_resultStandardSchemeFactory implements SchemeFactory {
21333 public getRowTs_resultStandardScheme getScheme() {
21334 return new getRowTs_resultStandardScheme();
21335 }
21336 }
21337
21338 private static class getRowTs_resultStandardScheme extends StandardScheme<getRowTs_result> {
21339
21340 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowTs_result struct) throws org.apache.thrift.TException {
21341 org.apache.thrift.protocol.TField schemeField;
21342 iprot.readStructBegin();
21343 while (true)
21344 {
21345 schemeField = iprot.readFieldBegin();
21346 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21347 break;
21348 }
21349 switch (schemeField.id) {
21350 case 0:
21351 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
21352 {
21353 org.apache.thrift.protocol.TList _list192 = iprot.readListBegin();
21354 struct.success = new ArrayList<TRowResult>(_list192.size);
21355 for (int _i193 = 0; _i193 < _list192.size; ++_i193)
21356 {
21357 TRowResult _elem194;
21358 _elem194 = new TRowResult();
21359 _elem194.read(iprot);
21360 struct.success.add(_elem194);
21361 }
21362 iprot.readListEnd();
21363 }
21364 struct.setSuccessIsSet(true);
21365 } else {
21366 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21367 }
21368 break;
21369 case 1:
21370 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
21371 struct.io = new IOError();
21372 struct.io.read(iprot);
21373 struct.setIoIsSet(true);
21374 } else {
21375 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21376 }
21377 break;
21378 default:
21379 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21380 }
21381 iprot.readFieldEnd();
21382 }
21383 iprot.readStructEnd();
21384
21385
21386 struct.validate();
21387 }
21388
21389 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowTs_result struct) throws org.apache.thrift.TException {
21390 struct.validate();
21391
21392 oprot.writeStructBegin(STRUCT_DESC);
21393 if (struct.success != null) {
21394 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21395 {
21396 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
21397 for (TRowResult _iter195 : struct.success)
21398 {
21399 _iter195.write(oprot);
21400 }
21401 oprot.writeListEnd();
21402 }
21403 oprot.writeFieldEnd();
21404 }
21405 if (struct.io != null) {
21406 oprot.writeFieldBegin(IO_FIELD_DESC);
21407 struct.io.write(oprot);
21408 oprot.writeFieldEnd();
21409 }
21410 oprot.writeFieldStop();
21411 oprot.writeStructEnd();
21412 }
21413
21414 }
21415
21416 private static class getRowTs_resultTupleSchemeFactory implements SchemeFactory {
21417 public getRowTs_resultTupleScheme getScheme() {
21418 return new getRowTs_resultTupleScheme();
21419 }
21420 }
21421
21422 private static class getRowTs_resultTupleScheme extends TupleScheme<getRowTs_result> {
21423
21424 @Override
21425 public void write(org.apache.thrift.protocol.TProtocol prot, getRowTs_result struct) throws org.apache.thrift.TException {
21426 TTupleProtocol oprot = (TTupleProtocol) prot;
21427 BitSet optionals = new BitSet();
21428 if (struct.isSetSuccess()) {
21429 optionals.set(0);
21430 }
21431 if (struct.isSetIo()) {
21432 optionals.set(1);
21433 }
21434 oprot.writeBitSet(optionals, 2);
21435 if (struct.isSetSuccess()) {
21436 {
21437 oprot.writeI32(struct.success.size());
21438 for (TRowResult _iter196 : struct.success)
21439 {
21440 _iter196.write(oprot);
21441 }
21442 }
21443 }
21444 if (struct.isSetIo()) {
21445 struct.io.write(oprot);
21446 }
21447 }
21448
21449 @Override
21450 public void read(org.apache.thrift.protocol.TProtocol prot, getRowTs_result struct) throws org.apache.thrift.TException {
21451 TTupleProtocol iprot = (TTupleProtocol) prot;
21452 BitSet incoming = iprot.readBitSet(2);
21453 if (incoming.get(0)) {
21454 {
21455 org.apache.thrift.protocol.TList _list197 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
21456 struct.success = new ArrayList<TRowResult>(_list197.size);
21457 for (int _i198 = 0; _i198 < _list197.size; ++_i198)
21458 {
21459 TRowResult _elem199;
21460 _elem199 = new TRowResult();
21461 _elem199.read(iprot);
21462 struct.success.add(_elem199);
21463 }
21464 }
21465 struct.setSuccessIsSet(true);
21466 }
21467 if (incoming.get(1)) {
21468 struct.io = new IOError();
21469 struct.io.read(iprot);
21470 struct.setIoIsSet(true);
21471 }
21472 }
21473 }
21474
21475 }
21476
21477 public static class getRowWithColumnsTs_args implements org.apache.thrift.TBase<getRowWithColumnsTs_args, getRowWithColumnsTs_args._Fields>, java.io.Serializable, Cloneable {
21478 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumnsTs_args");
21479
21480 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
21481 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
21482 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
21483 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
21484 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
21485
21486 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21487 static {
21488 schemes.put(StandardScheme.class, new getRowWithColumnsTs_argsStandardSchemeFactory());
21489 schemes.put(TupleScheme.class, new getRowWithColumnsTs_argsTupleSchemeFactory());
21490 }
21491
21492
21493
21494
21495 public ByteBuffer tableName;
21496
21497
21498
21499 public ByteBuffer row;
21500
21501
21502
21503 public List<ByteBuffer> columns;
21504 public long timestamp;
21505
21506
21507
21508 public Map<ByteBuffer,ByteBuffer> attributes;
21509
21510
21511 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21512
21513
21514
21515 TABLE_NAME((short)1, "tableName"),
21516
21517
21518
21519 ROW((short)2, "row"),
21520
21521
21522
21523 COLUMNS((short)3, "columns"),
21524 TIMESTAMP((short)4, "timestamp"),
21525
21526
21527
21528 ATTRIBUTES((short)5, "attributes");
21529
21530 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21531
21532 static {
21533 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21534 byName.put(field.getFieldName(), field);
21535 }
21536 }
21537
21538
21539
21540
21541 public static _Fields findByThriftId(int fieldId) {
21542 switch(fieldId) {
21543 case 1:
21544 return TABLE_NAME;
21545 case 2:
21546 return ROW;
21547 case 3:
21548 return COLUMNS;
21549 case 4:
21550 return TIMESTAMP;
21551 case 5:
21552 return ATTRIBUTES;
21553 default:
21554 return null;
21555 }
21556 }
21557
21558
21559
21560
21561
21562 public static _Fields findByThriftIdOrThrow(int fieldId) {
21563 _Fields fields = findByThriftId(fieldId);
21564 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21565 return fields;
21566 }
21567
21568
21569
21570
21571 public static _Fields findByName(String name) {
21572 return byName.get(name);
21573 }
21574
21575 private final short _thriftId;
21576 private final String _fieldName;
21577
21578 _Fields(short thriftId, String fieldName) {
21579 _thriftId = thriftId;
21580 _fieldName = fieldName;
21581 }
21582
21583 public short getThriftFieldId() {
21584 return _thriftId;
21585 }
21586
21587 public String getFieldName() {
21588 return _fieldName;
21589 }
21590 }
21591
21592
21593 private static final int __TIMESTAMP_ISSET_ID = 0;
21594 private byte __isset_bitfield = 0;
21595 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21596 static {
21597 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21598 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
21599 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
21600 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
21601 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
21602 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT,
21603 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
21604 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
21605 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
21606 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21607 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
21608 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
21609 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
21610 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
21611 metaDataMap = Collections.unmodifiableMap(tmpMap);
21612 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumnsTs_args.class, metaDataMap);
21613 }
21614
21615 public getRowWithColumnsTs_args() {
21616 }
21617
21618 public getRowWithColumnsTs_args(
21619 ByteBuffer tableName,
21620 ByteBuffer row,
21621 List<ByteBuffer> columns,
21622 long timestamp,
21623 Map<ByteBuffer,ByteBuffer> attributes)
21624 {
21625 this();
21626 this.tableName = tableName;
21627 this.row = row;
21628 this.columns = columns;
21629 this.timestamp = timestamp;
21630 setTimestampIsSet(true);
21631 this.attributes = attributes;
21632 }
21633
21634
21635
21636
21637 public getRowWithColumnsTs_args(getRowWithColumnsTs_args other) {
21638 __isset_bitfield = other.__isset_bitfield;
21639 if (other.isSetTableName()) {
21640 this.tableName = other.tableName;
21641 }
21642 if (other.isSetRow()) {
21643 this.row = other.row;
21644 }
21645 if (other.isSetColumns()) {
21646 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
21647 for (ByteBuffer other_element : other.columns) {
21648 __this__columns.add(other_element);
21649 }
21650 this.columns = __this__columns;
21651 }
21652 this.timestamp = other.timestamp;
21653 if (other.isSetAttributes()) {
21654 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
21655 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
21656
21657 ByteBuffer other_element_key = other_element.getKey();
21658 ByteBuffer other_element_value = other_element.getValue();
21659
21660 ByteBuffer __this__attributes_copy_key = other_element_key;
21661
21662 ByteBuffer __this__attributes_copy_value = other_element_value;
21663
21664 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
21665 }
21666 this.attributes = __this__attributes;
21667 }
21668 }
21669
21670 public getRowWithColumnsTs_args deepCopy() {
21671 return new getRowWithColumnsTs_args(this);
21672 }
21673
21674 @Override
21675 public void clear() {
21676 this.tableName = null;
21677 this.row = null;
21678 this.columns = null;
21679 setTimestampIsSet(false);
21680 this.timestamp = 0;
21681 this.attributes = null;
21682 }
21683
21684
21685
21686
21687 public byte[] getTableName() {
21688 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
21689 return tableName == null ? null : tableName.array();
21690 }
21691
21692 public ByteBuffer bufferForTableName() {
21693 return tableName;
21694 }
21695
21696
21697
21698
21699 public getRowWithColumnsTs_args setTableName(byte[] tableName) {
21700 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
21701 return this;
21702 }
21703
21704 public getRowWithColumnsTs_args setTableName(ByteBuffer tableName) {
21705 this.tableName = tableName;
21706 return this;
21707 }
21708
21709 public void unsetTableName() {
21710 this.tableName = null;
21711 }
21712
21713
21714 public boolean isSetTableName() {
21715 return this.tableName != null;
21716 }
21717
21718 public void setTableNameIsSet(boolean value) {
21719 if (!value) {
21720 this.tableName = null;
21721 }
21722 }
21723
21724
21725
21726
21727 public byte[] getRow() {
21728 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
21729 return row == null ? null : row.array();
21730 }
21731
21732 public ByteBuffer bufferForRow() {
21733 return row;
21734 }
21735
21736
21737
21738
21739 public getRowWithColumnsTs_args setRow(byte[] row) {
21740 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
21741 return this;
21742 }
21743
21744 public getRowWithColumnsTs_args setRow(ByteBuffer row) {
21745 this.row = row;
21746 return this;
21747 }
21748
21749 public void unsetRow() {
21750 this.row = null;
21751 }
21752
21753
21754 public boolean isSetRow() {
21755 return this.row != null;
21756 }
21757
21758 public void setRowIsSet(boolean value) {
21759 if (!value) {
21760 this.row = null;
21761 }
21762 }
21763
21764 public int getColumnsSize() {
21765 return (this.columns == null) ? 0 : this.columns.size();
21766 }
21767
21768 public java.util.Iterator<ByteBuffer> getColumnsIterator() {
21769 return (this.columns == null) ? null : this.columns.iterator();
21770 }
21771
21772 public void addToColumns(ByteBuffer elem) {
21773 if (this.columns == null) {
21774 this.columns = new ArrayList<ByteBuffer>();
21775 }
21776 this.columns.add(elem);
21777 }
21778
21779
21780
21781
21782 public List<ByteBuffer> getColumns() {
21783 return this.columns;
21784 }
21785
21786
21787
21788
21789 public getRowWithColumnsTs_args setColumns(List<ByteBuffer> columns) {
21790 this.columns = columns;
21791 return this;
21792 }
21793
21794 public void unsetColumns() {
21795 this.columns = null;
21796 }
21797
21798
21799 public boolean isSetColumns() {
21800 return this.columns != null;
21801 }
21802
21803 public void setColumnsIsSet(boolean value) {
21804 if (!value) {
21805 this.columns = null;
21806 }
21807 }
21808
21809 public long getTimestamp() {
21810 return this.timestamp;
21811 }
21812
21813 public getRowWithColumnsTs_args setTimestamp(long timestamp) {
21814 this.timestamp = timestamp;
21815 setTimestampIsSet(true);
21816 return this;
21817 }
21818
21819 public void unsetTimestamp() {
21820 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
21821 }
21822
21823
21824 public boolean isSetTimestamp() {
21825 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
21826 }
21827
21828 public void setTimestampIsSet(boolean value) {
21829 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
21830 }
21831
21832 public int getAttributesSize() {
21833 return (this.attributes == null) ? 0 : this.attributes.size();
21834 }
21835
21836 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
21837 if (this.attributes == null) {
21838 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
21839 }
21840 this.attributes.put(key, val);
21841 }
21842
21843
21844
21845
21846 public Map<ByteBuffer,ByteBuffer> getAttributes() {
21847 return this.attributes;
21848 }
21849
21850
21851
21852
21853 public getRowWithColumnsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
21854 this.attributes = attributes;
21855 return this;
21856 }
21857
21858 public void unsetAttributes() {
21859 this.attributes = null;
21860 }
21861
21862
21863 public boolean isSetAttributes() {
21864 return this.attributes != null;
21865 }
21866
21867 public void setAttributesIsSet(boolean value) {
21868 if (!value) {
21869 this.attributes = null;
21870 }
21871 }
21872
21873 public void setFieldValue(_Fields field, Object value) {
21874 switch (field) {
21875 case TABLE_NAME:
21876 if (value == null) {
21877 unsetTableName();
21878 } else {
21879 setTableName((ByteBuffer)value);
21880 }
21881 break;
21882
21883 case ROW:
21884 if (value == null) {
21885 unsetRow();
21886 } else {
21887 setRow((ByteBuffer)value);
21888 }
21889 break;
21890
21891 case COLUMNS:
21892 if (value == null) {
21893 unsetColumns();
21894 } else {
21895 setColumns((List<ByteBuffer>)value);
21896 }
21897 break;
21898
21899 case TIMESTAMP:
21900 if (value == null) {
21901 unsetTimestamp();
21902 } else {
21903 setTimestamp((Long)value);
21904 }
21905 break;
21906
21907 case ATTRIBUTES:
21908 if (value == null) {
21909 unsetAttributes();
21910 } else {
21911 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
21912 }
21913 break;
21914
21915 }
21916 }
21917
21918 public Object getFieldValue(_Fields field) {
21919 switch (field) {
21920 case TABLE_NAME:
21921 return getTableName();
21922
21923 case ROW:
21924 return getRow();
21925
21926 case COLUMNS:
21927 return getColumns();
21928
21929 case TIMESTAMP:
21930 return Long.valueOf(getTimestamp());
21931
21932 case ATTRIBUTES:
21933 return getAttributes();
21934
21935 }
21936 throw new IllegalStateException();
21937 }
21938
21939
21940 public boolean isSet(_Fields field) {
21941 if (field == null) {
21942 throw new IllegalArgumentException();
21943 }
21944
21945 switch (field) {
21946 case TABLE_NAME:
21947 return isSetTableName();
21948 case ROW:
21949 return isSetRow();
21950 case COLUMNS:
21951 return isSetColumns();
21952 case TIMESTAMP:
21953 return isSetTimestamp();
21954 case ATTRIBUTES:
21955 return isSetAttributes();
21956 }
21957 throw new IllegalStateException();
21958 }
21959
21960 @Override
21961 public boolean equals(Object that) {
21962 if (that == null)
21963 return false;
21964 if (that instanceof getRowWithColumnsTs_args)
21965 return this.equals((getRowWithColumnsTs_args)that);
21966 return false;
21967 }
21968
21969 public boolean equals(getRowWithColumnsTs_args that) {
21970 if (that == null)
21971 return false;
21972
21973 boolean this_present_tableName = true && this.isSetTableName();
21974 boolean that_present_tableName = true && that.isSetTableName();
21975 if (this_present_tableName || that_present_tableName) {
21976 if (!(this_present_tableName && that_present_tableName))
21977 return false;
21978 if (!this.tableName.equals(that.tableName))
21979 return false;
21980 }
21981
21982 boolean this_present_row = true && this.isSetRow();
21983 boolean that_present_row = true && that.isSetRow();
21984 if (this_present_row || that_present_row) {
21985 if (!(this_present_row && that_present_row))
21986 return false;
21987 if (!this.row.equals(that.row))
21988 return false;
21989 }
21990
21991 boolean this_present_columns = true && this.isSetColumns();
21992 boolean that_present_columns = true && that.isSetColumns();
21993 if (this_present_columns || that_present_columns) {
21994 if (!(this_present_columns && that_present_columns))
21995 return false;
21996 if (!this.columns.equals(that.columns))
21997 return false;
21998 }
21999
22000 boolean this_present_timestamp = true;
22001 boolean that_present_timestamp = true;
22002 if (this_present_timestamp || that_present_timestamp) {
22003 if (!(this_present_timestamp && that_present_timestamp))
22004 return false;
22005 if (this.timestamp != that.timestamp)
22006 return false;
22007 }
22008
22009 boolean this_present_attributes = true && this.isSetAttributes();
22010 boolean that_present_attributes = true && that.isSetAttributes();
22011 if (this_present_attributes || that_present_attributes) {
22012 if (!(this_present_attributes && that_present_attributes))
22013 return false;
22014 if (!this.attributes.equals(that.attributes))
22015 return false;
22016 }
22017
22018 return true;
22019 }
22020
22021 @Override
22022 public int hashCode() {
22023 HashCodeBuilder builder = new HashCodeBuilder();
22024
22025 boolean present_tableName = true && (isSetTableName());
22026 builder.append(present_tableName);
22027 if (present_tableName)
22028 builder.append(tableName);
22029
22030 boolean present_row = true && (isSetRow());
22031 builder.append(present_row);
22032 if (present_row)
22033 builder.append(row);
22034
22035 boolean present_columns = true && (isSetColumns());
22036 builder.append(present_columns);
22037 if (present_columns)
22038 builder.append(columns);
22039
22040 boolean present_timestamp = true;
22041 builder.append(present_timestamp);
22042 if (present_timestamp)
22043 builder.append(timestamp);
22044
22045 boolean present_attributes = true && (isSetAttributes());
22046 builder.append(present_attributes);
22047 if (present_attributes)
22048 builder.append(attributes);
22049
22050 return builder.toHashCode();
22051 }
22052
22053 public int compareTo(getRowWithColumnsTs_args other) {
22054 if (!getClass().equals(other.getClass())) {
22055 return getClass().getName().compareTo(other.getClass().getName());
22056 }
22057
22058 int lastComparison = 0;
22059 getRowWithColumnsTs_args typedOther = (getRowWithColumnsTs_args)other;
22060
22061 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
22062 if (lastComparison != 0) {
22063 return lastComparison;
22064 }
22065 if (isSetTableName()) {
22066 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
22067 if (lastComparison != 0) {
22068 return lastComparison;
22069 }
22070 }
22071 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
22072 if (lastComparison != 0) {
22073 return lastComparison;
22074 }
22075 if (isSetRow()) {
22076 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
22077 if (lastComparison != 0) {
22078 return lastComparison;
22079 }
22080 }
22081 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
22082 if (lastComparison != 0) {
22083 return lastComparison;
22084 }
22085 if (isSetColumns()) {
22086 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
22087 if (lastComparison != 0) {
22088 return lastComparison;
22089 }
22090 }
22091 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
22092 if (lastComparison != 0) {
22093 return lastComparison;
22094 }
22095 if (isSetTimestamp()) {
22096 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
22097 if (lastComparison != 0) {
22098 return lastComparison;
22099 }
22100 }
22101 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
22102 if (lastComparison != 0) {
22103 return lastComparison;
22104 }
22105 if (isSetAttributes()) {
22106 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
22107 if (lastComparison != 0) {
22108 return lastComparison;
22109 }
22110 }
22111 return 0;
22112 }
22113
22114 public _Fields fieldForId(int fieldId) {
22115 return _Fields.findByThriftId(fieldId);
22116 }
22117
22118 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22119 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22120 }
22121
22122 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22123 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22124 }
22125
22126 @Override
22127 public String toString() {
22128 StringBuilder sb = new StringBuilder("getRowWithColumnsTs_args(");
22129 boolean first = true;
22130
22131 sb.append("tableName:");
22132 if (this.tableName == null) {
22133 sb.append("null");
22134 } else {
22135 sb.append(this.tableName);
22136 }
22137 first = false;
22138 if (!first) sb.append(", ");
22139 sb.append("row:");
22140 if (this.row == null) {
22141 sb.append("null");
22142 } else {
22143 sb.append(this.row);
22144 }
22145 first = false;
22146 if (!first) sb.append(", ");
22147 sb.append("columns:");
22148 if (this.columns == null) {
22149 sb.append("null");
22150 } else {
22151 sb.append(this.columns);
22152 }
22153 first = false;
22154 if (!first) sb.append(", ");
22155 sb.append("timestamp:");
22156 sb.append(this.timestamp);
22157 first = false;
22158 if (!first) sb.append(", ");
22159 sb.append("attributes:");
22160 if (this.attributes == null) {
22161 sb.append("null");
22162 } else {
22163 sb.append(this.attributes);
22164 }
22165 first = false;
22166 sb.append(")");
22167 return sb.toString();
22168 }
22169
22170 public void validate() throws org.apache.thrift.TException {
22171
22172
22173 }
22174
22175 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22176 try {
22177 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22178 } catch (org.apache.thrift.TException te) {
22179 throw new java.io.IOException(te);
22180 }
22181 }
22182
22183 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22184 try {
22185
22186 __isset_bitfield = 0;
22187 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22188 } catch (org.apache.thrift.TException te) {
22189 throw new java.io.IOException(te);
22190 }
22191 }
22192
22193 private static class getRowWithColumnsTs_argsStandardSchemeFactory implements SchemeFactory {
22194 public getRowWithColumnsTs_argsStandardScheme getScheme() {
22195 return new getRowWithColumnsTs_argsStandardScheme();
22196 }
22197 }
22198
22199 private static class getRowWithColumnsTs_argsStandardScheme extends StandardScheme<getRowWithColumnsTs_args> {
22200
22201 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException {
22202 org.apache.thrift.protocol.TField schemeField;
22203 iprot.readStructBegin();
22204 while (true)
22205 {
22206 schemeField = iprot.readFieldBegin();
22207 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22208 break;
22209 }
22210 switch (schemeField.id) {
22211 case 1:
22212 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
22213 struct.tableName = iprot.readBinary();
22214 struct.setTableNameIsSet(true);
22215 } else {
22216 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22217 }
22218 break;
22219 case 2:
22220 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
22221 struct.row = iprot.readBinary();
22222 struct.setRowIsSet(true);
22223 } else {
22224 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22225 }
22226 break;
22227 case 3:
22228 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
22229 {
22230 org.apache.thrift.protocol.TList _list200 = iprot.readListBegin();
22231 struct.columns = new ArrayList<ByteBuffer>(_list200.size);
22232 for (int _i201 = 0; _i201 < _list200.size; ++_i201)
22233 {
22234 ByteBuffer _elem202;
22235 _elem202 = iprot.readBinary();
22236 struct.columns.add(_elem202);
22237 }
22238 iprot.readListEnd();
22239 }
22240 struct.setColumnsIsSet(true);
22241 } else {
22242 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22243 }
22244 break;
22245 case 4:
22246 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
22247 struct.timestamp = iprot.readI64();
22248 struct.setTimestampIsSet(true);
22249 } else {
22250 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22251 }
22252 break;
22253 case 5:
22254 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
22255 {
22256 org.apache.thrift.protocol.TMap _map203 = iprot.readMapBegin();
22257 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map203.size);
22258 for (int _i204 = 0; _i204 < _map203.size; ++_i204)
22259 {
22260 ByteBuffer _key205;
22261 ByteBuffer _val206;
22262 _key205 = iprot.readBinary();
22263 _val206 = iprot.readBinary();
22264 struct.attributes.put(_key205, _val206);
22265 }
22266 iprot.readMapEnd();
22267 }
22268 struct.setAttributesIsSet(true);
22269 } else {
22270 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22271 }
22272 break;
22273 default:
22274 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22275 }
22276 iprot.readFieldEnd();
22277 }
22278 iprot.readStructEnd();
22279
22280
22281 struct.validate();
22282 }
22283
22284 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException {
22285 struct.validate();
22286
22287 oprot.writeStructBegin(STRUCT_DESC);
22288 if (struct.tableName != null) {
22289 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
22290 oprot.writeBinary(struct.tableName);
22291 oprot.writeFieldEnd();
22292 }
22293 if (struct.row != null) {
22294 oprot.writeFieldBegin(ROW_FIELD_DESC);
22295 oprot.writeBinary(struct.row);
22296 oprot.writeFieldEnd();
22297 }
22298 if (struct.columns != null) {
22299 oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
22300 {
22301 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
22302 for (ByteBuffer _iter207 : struct.columns)
22303 {
22304 oprot.writeBinary(_iter207);
22305 }
22306 oprot.writeListEnd();
22307 }
22308 oprot.writeFieldEnd();
22309 }
22310 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
22311 oprot.writeI64(struct.timestamp);
22312 oprot.writeFieldEnd();
22313 if (struct.attributes != null) {
22314 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
22315 {
22316 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
22317 for (Map.Entry<ByteBuffer, ByteBuffer> _iter208 : struct.attributes.entrySet())
22318 {
22319 oprot.writeBinary(_iter208.getKey());
22320 oprot.writeBinary(_iter208.getValue());
22321 }
22322 oprot.writeMapEnd();
22323 }
22324 oprot.writeFieldEnd();
22325 }
22326 oprot.writeFieldStop();
22327 oprot.writeStructEnd();
22328 }
22329
22330 }
22331
22332 private static class getRowWithColumnsTs_argsTupleSchemeFactory implements SchemeFactory {
22333 public getRowWithColumnsTs_argsTupleScheme getScheme() {
22334 return new getRowWithColumnsTs_argsTupleScheme();
22335 }
22336 }
22337
22338 private static class getRowWithColumnsTs_argsTupleScheme extends TupleScheme<getRowWithColumnsTs_args> {
22339
22340 @Override
22341 public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException {
22342 TTupleProtocol oprot = (TTupleProtocol) prot;
22343 BitSet optionals = new BitSet();
22344 if (struct.isSetTableName()) {
22345 optionals.set(0);
22346 }
22347 if (struct.isSetRow()) {
22348 optionals.set(1);
22349 }
22350 if (struct.isSetColumns()) {
22351 optionals.set(2);
22352 }
22353 if (struct.isSetTimestamp()) {
22354 optionals.set(3);
22355 }
22356 if (struct.isSetAttributes()) {
22357 optionals.set(4);
22358 }
22359 oprot.writeBitSet(optionals, 5);
22360 if (struct.isSetTableName()) {
22361 oprot.writeBinary(struct.tableName);
22362 }
22363 if (struct.isSetRow()) {
22364 oprot.writeBinary(struct.row);
22365 }
22366 if (struct.isSetColumns()) {
22367 {
22368 oprot.writeI32(struct.columns.size());
22369 for (ByteBuffer _iter209 : struct.columns)
22370 {
22371 oprot.writeBinary(_iter209);
22372 }
22373 }
22374 }
22375 if (struct.isSetTimestamp()) {
22376 oprot.writeI64(struct.timestamp);
22377 }
22378 if (struct.isSetAttributes()) {
22379 {
22380 oprot.writeI32(struct.attributes.size());
22381 for (Map.Entry<ByteBuffer, ByteBuffer> _iter210 : struct.attributes.entrySet())
22382 {
22383 oprot.writeBinary(_iter210.getKey());
22384 oprot.writeBinary(_iter210.getValue());
22385 }
22386 }
22387 }
22388 }
22389
22390 @Override
22391 public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_args struct) throws org.apache.thrift.TException {
22392 TTupleProtocol iprot = (TTupleProtocol) prot;
22393 BitSet incoming = iprot.readBitSet(5);
22394 if (incoming.get(0)) {
22395 struct.tableName = iprot.readBinary();
22396 struct.setTableNameIsSet(true);
22397 }
22398 if (incoming.get(1)) {
22399 struct.row = iprot.readBinary();
22400 struct.setRowIsSet(true);
22401 }
22402 if (incoming.get(2)) {
22403 {
22404 org.apache.thrift.protocol.TList _list211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
22405 struct.columns = new ArrayList<ByteBuffer>(_list211.size);
22406 for (int _i212 = 0; _i212 < _list211.size; ++_i212)
22407 {
22408 ByteBuffer _elem213;
22409 _elem213 = iprot.readBinary();
22410 struct.columns.add(_elem213);
22411 }
22412 }
22413 struct.setColumnsIsSet(true);
22414 }
22415 if (incoming.get(3)) {
22416 struct.timestamp = iprot.readI64();
22417 struct.setTimestampIsSet(true);
22418 }
22419 if (incoming.get(4)) {
22420 {
22421 org.apache.thrift.protocol.TMap _map214 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
22422 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map214.size);
22423 for (int _i215 = 0; _i215 < _map214.size; ++_i215)
22424 {
22425 ByteBuffer _key216;
22426 ByteBuffer _val217;
22427 _key216 = iprot.readBinary();
22428 _val217 = iprot.readBinary();
22429 struct.attributes.put(_key216, _val217);
22430 }
22431 }
22432 struct.setAttributesIsSet(true);
22433 }
22434 }
22435 }
22436
22437 }
22438
22439 public static class getRowWithColumnsTs_result implements org.apache.thrift.TBase<getRowWithColumnsTs_result, getRowWithColumnsTs_result._Fields>, java.io.Serializable, Cloneable {
22440 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowWithColumnsTs_result");
22441
22442 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
22443 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
22444
22445 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22446 static {
22447 schemes.put(StandardScheme.class, new getRowWithColumnsTs_resultStandardSchemeFactory());
22448 schemes.put(TupleScheme.class, new getRowWithColumnsTs_resultTupleSchemeFactory());
22449 }
22450
22451 public List<TRowResult> success;
22452 public IOError io;
22453
22454
22455 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22456 SUCCESS((short)0, "success"),
22457 IO((short)1, "io");
22458
22459 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22460
22461 static {
22462 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22463 byName.put(field.getFieldName(), field);
22464 }
22465 }
22466
22467
22468
22469
22470 public static _Fields findByThriftId(int fieldId) {
22471 switch(fieldId) {
22472 case 0:
22473 return SUCCESS;
22474 case 1:
22475 return IO;
22476 default:
22477 return null;
22478 }
22479 }
22480
22481
22482
22483
22484
22485 public static _Fields findByThriftIdOrThrow(int fieldId) {
22486 _Fields fields = findByThriftId(fieldId);
22487 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22488 return fields;
22489 }
22490
22491
22492
22493
22494 public static _Fields findByName(String name) {
22495 return byName.get(name);
22496 }
22497
22498 private final short _thriftId;
22499 private final String _fieldName;
22500
22501 _Fields(short thriftId, String fieldName) {
22502 _thriftId = thriftId;
22503 _fieldName = fieldName;
22504 }
22505
22506 public short getThriftFieldId() {
22507 return _thriftId;
22508 }
22509
22510 public String getFieldName() {
22511 return _fieldName;
22512 }
22513 }
22514
22515
22516 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22517 static {
22518 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22519 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
22520 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
22521 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
22522 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
22523 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22524 metaDataMap = Collections.unmodifiableMap(tmpMap);
22525 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowWithColumnsTs_result.class, metaDataMap);
22526 }
22527
22528 public getRowWithColumnsTs_result() {
22529 }
22530
22531 public getRowWithColumnsTs_result(
22532 List<TRowResult> success,
22533 IOError io)
22534 {
22535 this();
22536 this.success = success;
22537 this.io = io;
22538 }
22539
22540
22541
22542
22543 public getRowWithColumnsTs_result(getRowWithColumnsTs_result other) {
22544 if (other.isSetSuccess()) {
22545 List<TRowResult> __this__success = new ArrayList<TRowResult>();
22546 for (TRowResult other_element : other.success) {
22547 __this__success.add(new TRowResult(other_element));
22548 }
22549 this.success = __this__success;
22550 }
22551 if (other.isSetIo()) {
22552 this.io = new IOError(other.io);
22553 }
22554 }
22555
22556 public getRowWithColumnsTs_result deepCopy() {
22557 return new getRowWithColumnsTs_result(this);
22558 }
22559
22560 @Override
22561 public void clear() {
22562 this.success = null;
22563 this.io = null;
22564 }
22565
22566 public int getSuccessSize() {
22567 return (this.success == null) ? 0 : this.success.size();
22568 }
22569
22570 public java.util.Iterator<TRowResult> getSuccessIterator() {
22571 return (this.success == null) ? null : this.success.iterator();
22572 }
22573
22574 public void addToSuccess(TRowResult elem) {
22575 if (this.success == null) {
22576 this.success = new ArrayList<TRowResult>();
22577 }
22578 this.success.add(elem);
22579 }
22580
22581 public List<TRowResult> getSuccess() {
22582 return this.success;
22583 }
22584
22585 public getRowWithColumnsTs_result setSuccess(List<TRowResult> success) {
22586 this.success = success;
22587 return this;
22588 }
22589
22590 public void unsetSuccess() {
22591 this.success = null;
22592 }
22593
22594
22595 public boolean isSetSuccess() {
22596 return this.success != null;
22597 }
22598
22599 public void setSuccessIsSet(boolean value) {
22600 if (!value) {
22601 this.success = null;
22602 }
22603 }
22604
22605 public IOError getIo() {
22606 return this.io;
22607 }
22608
22609 public getRowWithColumnsTs_result setIo(IOError io) {
22610 this.io = io;
22611 return this;
22612 }
22613
22614 public void unsetIo() {
22615 this.io = null;
22616 }
22617
22618
22619 public boolean isSetIo() {
22620 return this.io != null;
22621 }
22622
22623 public void setIoIsSet(boolean value) {
22624 if (!value) {
22625 this.io = null;
22626 }
22627 }
22628
22629 public void setFieldValue(_Fields field, Object value) {
22630 switch (field) {
22631 case SUCCESS:
22632 if (value == null) {
22633 unsetSuccess();
22634 } else {
22635 setSuccess((List<TRowResult>)value);
22636 }
22637 break;
22638
22639 case IO:
22640 if (value == null) {
22641 unsetIo();
22642 } else {
22643 setIo((IOError)value);
22644 }
22645 break;
22646
22647 }
22648 }
22649
22650 public Object getFieldValue(_Fields field) {
22651 switch (field) {
22652 case SUCCESS:
22653 return getSuccess();
22654
22655 case IO:
22656 return getIo();
22657
22658 }
22659 throw new IllegalStateException();
22660 }
22661
22662
22663 public boolean isSet(_Fields field) {
22664 if (field == null) {
22665 throw new IllegalArgumentException();
22666 }
22667
22668 switch (field) {
22669 case SUCCESS:
22670 return isSetSuccess();
22671 case IO:
22672 return isSetIo();
22673 }
22674 throw new IllegalStateException();
22675 }
22676
22677 @Override
22678 public boolean equals(Object that) {
22679 if (that == null)
22680 return false;
22681 if (that instanceof getRowWithColumnsTs_result)
22682 return this.equals((getRowWithColumnsTs_result)that);
22683 return false;
22684 }
22685
22686 public boolean equals(getRowWithColumnsTs_result that) {
22687 if (that == null)
22688 return false;
22689
22690 boolean this_present_success = true && this.isSetSuccess();
22691 boolean that_present_success = true && that.isSetSuccess();
22692 if (this_present_success || that_present_success) {
22693 if (!(this_present_success && that_present_success))
22694 return false;
22695 if (!this.success.equals(that.success))
22696 return false;
22697 }
22698
22699 boolean this_present_io = true && this.isSetIo();
22700 boolean that_present_io = true && that.isSetIo();
22701 if (this_present_io || that_present_io) {
22702 if (!(this_present_io && that_present_io))
22703 return false;
22704 if (!this.io.equals(that.io))
22705 return false;
22706 }
22707
22708 return true;
22709 }
22710
22711 @Override
22712 public int hashCode() {
22713 HashCodeBuilder builder = new HashCodeBuilder();
22714
22715 boolean present_success = true && (isSetSuccess());
22716 builder.append(present_success);
22717 if (present_success)
22718 builder.append(success);
22719
22720 boolean present_io = true && (isSetIo());
22721 builder.append(present_io);
22722 if (present_io)
22723 builder.append(io);
22724
22725 return builder.toHashCode();
22726 }
22727
22728 public int compareTo(getRowWithColumnsTs_result other) {
22729 if (!getClass().equals(other.getClass())) {
22730 return getClass().getName().compareTo(other.getClass().getName());
22731 }
22732
22733 int lastComparison = 0;
22734 getRowWithColumnsTs_result typedOther = (getRowWithColumnsTs_result)other;
22735
22736 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22737 if (lastComparison != 0) {
22738 return lastComparison;
22739 }
22740 if (isSetSuccess()) {
22741 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22742 if (lastComparison != 0) {
22743 return lastComparison;
22744 }
22745 }
22746 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
22747 if (lastComparison != 0) {
22748 return lastComparison;
22749 }
22750 if (isSetIo()) {
22751 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
22752 if (lastComparison != 0) {
22753 return lastComparison;
22754 }
22755 }
22756 return 0;
22757 }
22758
22759 public _Fields fieldForId(int fieldId) {
22760 return _Fields.findByThriftId(fieldId);
22761 }
22762
22763 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22764 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22765 }
22766
22767 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22768 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22769 }
22770
22771 @Override
22772 public String toString() {
22773 StringBuilder sb = new StringBuilder("getRowWithColumnsTs_result(");
22774 boolean first = true;
22775
22776 sb.append("success:");
22777 if (this.success == null) {
22778 sb.append("null");
22779 } else {
22780 sb.append(this.success);
22781 }
22782 first = false;
22783 if (!first) sb.append(", ");
22784 sb.append("io:");
22785 if (this.io == null) {
22786 sb.append("null");
22787 } else {
22788 sb.append(this.io);
22789 }
22790 first = false;
22791 sb.append(")");
22792 return sb.toString();
22793 }
22794
22795 public void validate() throws org.apache.thrift.TException {
22796
22797
22798 }
22799
22800 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22801 try {
22802 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22803 } catch (org.apache.thrift.TException te) {
22804 throw new java.io.IOException(te);
22805 }
22806 }
22807
22808 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22809 try {
22810 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22811 } catch (org.apache.thrift.TException te) {
22812 throw new java.io.IOException(te);
22813 }
22814 }
22815
22816 private static class getRowWithColumnsTs_resultStandardSchemeFactory implements SchemeFactory {
22817 public getRowWithColumnsTs_resultStandardScheme getScheme() {
22818 return new getRowWithColumnsTs_resultStandardScheme();
22819 }
22820 }
22821
22822 private static class getRowWithColumnsTs_resultStandardScheme extends StandardScheme<getRowWithColumnsTs_result> {
22823
22824 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException {
22825 org.apache.thrift.protocol.TField schemeField;
22826 iprot.readStructBegin();
22827 while (true)
22828 {
22829 schemeField = iprot.readFieldBegin();
22830 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22831 break;
22832 }
22833 switch (schemeField.id) {
22834 case 0:
22835 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
22836 {
22837 org.apache.thrift.protocol.TList _list218 = iprot.readListBegin();
22838 struct.success = new ArrayList<TRowResult>(_list218.size);
22839 for (int _i219 = 0; _i219 < _list218.size; ++_i219)
22840 {
22841 TRowResult _elem220;
22842 _elem220 = new TRowResult();
22843 _elem220.read(iprot);
22844 struct.success.add(_elem220);
22845 }
22846 iprot.readListEnd();
22847 }
22848 struct.setSuccessIsSet(true);
22849 } else {
22850 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22851 }
22852 break;
22853 case 1:
22854 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
22855 struct.io = new IOError();
22856 struct.io.read(iprot);
22857 struct.setIoIsSet(true);
22858 } else {
22859 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22860 }
22861 break;
22862 default:
22863 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22864 }
22865 iprot.readFieldEnd();
22866 }
22867 iprot.readStructEnd();
22868
22869
22870 struct.validate();
22871 }
22872
22873 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException {
22874 struct.validate();
22875
22876 oprot.writeStructBegin(STRUCT_DESC);
22877 if (struct.success != null) {
22878 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22879 {
22880 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
22881 for (TRowResult _iter221 : struct.success)
22882 {
22883 _iter221.write(oprot);
22884 }
22885 oprot.writeListEnd();
22886 }
22887 oprot.writeFieldEnd();
22888 }
22889 if (struct.io != null) {
22890 oprot.writeFieldBegin(IO_FIELD_DESC);
22891 struct.io.write(oprot);
22892 oprot.writeFieldEnd();
22893 }
22894 oprot.writeFieldStop();
22895 oprot.writeStructEnd();
22896 }
22897
22898 }
22899
22900 private static class getRowWithColumnsTs_resultTupleSchemeFactory implements SchemeFactory {
22901 public getRowWithColumnsTs_resultTupleScheme getScheme() {
22902 return new getRowWithColumnsTs_resultTupleScheme();
22903 }
22904 }
22905
22906 private static class getRowWithColumnsTs_resultTupleScheme extends TupleScheme<getRowWithColumnsTs_result> {
22907
22908 @Override
22909 public void write(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException {
22910 TTupleProtocol oprot = (TTupleProtocol) prot;
22911 BitSet optionals = new BitSet();
22912 if (struct.isSetSuccess()) {
22913 optionals.set(0);
22914 }
22915 if (struct.isSetIo()) {
22916 optionals.set(1);
22917 }
22918 oprot.writeBitSet(optionals, 2);
22919 if (struct.isSetSuccess()) {
22920 {
22921 oprot.writeI32(struct.success.size());
22922 for (TRowResult _iter222 : struct.success)
22923 {
22924 _iter222.write(oprot);
22925 }
22926 }
22927 }
22928 if (struct.isSetIo()) {
22929 struct.io.write(oprot);
22930 }
22931 }
22932
22933 @Override
22934 public void read(org.apache.thrift.protocol.TProtocol prot, getRowWithColumnsTs_result struct) throws org.apache.thrift.TException {
22935 TTupleProtocol iprot = (TTupleProtocol) prot;
22936 BitSet incoming = iprot.readBitSet(2);
22937 if (incoming.get(0)) {
22938 {
22939 org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
22940 struct.success = new ArrayList<TRowResult>(_list223.size);
22941 for (int _i224 = 0; _i224 < _list223.size; ++_i224)
22942 {
22943 TRowResult _elem225;
22944 _elem225 = new TRowResult();
22945 _elem225.read(iprot);
22946 struct.success.add(_elem225);
22947 }
22948 }
22949 struct.setSuccessIsSet(true);
22950 }
22951 if (incoming.get(1)) {
22952 struct.io = new IOError();
22953 struct.io.read(iprot);
22954 struct.setIoIsSet(true);
22955 }
22956 }
22957 }
22958
22959 }
22960
22961 public static class getRows_args implements org.apache.thrift.TBase<getRows_args, getRows_args._Fields>, java.io.Serializable, Cloneable {
22962 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRows_args");
22963
22964 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
22965 private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2);
22966 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3);
22967
22968 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22969 static {
22970 schemes.put(StandardScheme.class, new getRows_argsStandardSchemeFactory());
22971 schemes.put(TupleScheme.class, new getRows_argsTupleSchemeFactory());
22972 }
22973
22974
22975
22976
22977 public ByteBuffer tableName;
22978
22979
22980
22981 public List<ByteBuffer> rows;
22982
22983
22984
22985 public Map<ByteBuffer,ByteBuffer> attributes;
22986
22987
22988 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22989
22990
22991
22992 TABLE_NAME((short)1, "tableName"),
22993
22994
22995
22996 ROWS((short)2, "rows"),
22997
22998
22999
23000 ATTRIBUTES((short)3, "attributes");
23001
23002 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23003
23004 static {
23005 for (_Fields field : EnumSet.allOf(_Fields.class)) {
23006 byName.put(field.getFieldName(), field);
23007 }
23008 }
23009
23010
23011
23012
23013 public static _Fields findByThriftId(int fieldId) {
23014 switch(fieldId) {
23015 case 1:
23016 return TABLE_NAME;
23017 case 2:
23018 return ROWS;
23019 case 3:
23020 return ATTRIBUTES;
23021 default:
23022 return null;
23023 }
23024 }
23025
23026
23027
23028
23029
23030 public static _Fields findByThriftIdOrThrow(int fieldId) {
23031 _Fields fields = findByThriftId(fieldId);
23032 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23033 return fields;
23034 }
23035
23036
23037
23038
23039 public static _Fields findByName(String name) {
23040 return byName.get(name);
23041 }
23042
23043 private final short _thriftId;
23044 private final String _fieldName;
23045
23046 _Fields(short thriftId, String fieldName) {
23047 _thriftId = thriftId;
23048 _fieldName = fieldName;
23049 }
23050
23051 public short getThriftFieldId() {
23052 return _thriftId;
23053 }
23054
23055 public String getFieldName() {
23056 return _fieldName;
23057 }
23058 }
23059
23060
23061 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23062 static {
23063 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23064 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
23065 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
23066 tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT,
23067 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
23068 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
23069 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
23070 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
23071 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
23072 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
23073 metaDataMap = Collections.unmodifiableMap(tmpMap);
23074 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRows_args.class, metaDataMap);
23075 }
23076
23077 public getRows_args() {
23078 }
23079
23080 public getRows_args(
23081 ByteBuffer tableName,
23082 List<ByteBuffer> rows,
23083 Map<ByteBuffer,ByteBuffer> attributes)
23084 {
23085 this();
23086 this.tableName = tableName;
23087 this.rows = rows;
23088 this.attributes = attributes;
23089 }
23090
23091
23092
23093
23094 public getRows_args(getRows_args other) {
23095 if (other.isSetTableName()) {
23096 this.tableName = other.tableName;
23097 }
23098 if (other.isSetRows()) {
23099 List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>();
23100 for (ByteBuffer other_element : other.rows) {
23101 __this__rows.add(other_element);
23102 }
23103 this.rows = __this__rows;
23104 }
23105 if (other.isSetAttributes()) {
23106 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
23107 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
23108
23109 ByteBuffer other_element_key = other_element.getKey();
23110 ByteBuffer other_element_value = other_element.getValue();
23111
23112 ByteBuffer __this__attributes_copy_key = other_element_key;
23113
23114 ByteBuffer __this__attributes_copy_value = other_element_value;
23115
23116 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
23117 }
23118 this.attributes = __this__attributes;
23119 }
23120 }
23121
23122 public getRows_args deepCopy() {
23123 return new getRows_args(this);
23124 }
23125
23126 @Override
23127 public void clear() {
23128 this.tableName = null;
23129 this.rows = null;
23130 this.attributes = null;
23131 }
23132
23133
23134
23135
23136 public byte[] getTableName() {
23137 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
23138 return tableName == null ? null : tableName.array();
23139 }
23140
23141 public ByteBuffer bufferForTableName() {
23142 return tableName;
23143 }
23144
23145
23146
23147
23148 public getRows_args setTableName(byte[] tableName) {
23149 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
23150 return this;
23151 }
23152
23153 public getRows_args setTableName(ByteBuffer tableName) {
23154 this.tableName = tableName;
23155 return this;
23156 }
23157
23158 public void unsetTableName() {
23159 this.tableName = null;
23160 }
23161
23162
23163 public boolean isSetTableName() {
23164 return this.tableName != null;
23165 }
23166
23167 public void setTableNameIsSet(boolean value) {
23168 if (!value) {
23169 this.tableName = null;
23170 }
23171 }
23172
23173 public int getRowsSize() {
23174 return (this.rows == null) ? 0 : this.rows.size();
23175 }
23176
23177 public java.util.Iterator<ByteBuffer> getRowsIterator() {
23178 return (this.rows == null) ? null : this.rows.iterator();
23179 }
23180
23181 public void addToRows(ByteBuffer elem) {
23182 if (this.rows == null) {
23183 this.rows = new ArrayList<ByteBuffer>();
23184 }
23185 this.rows.add(elem);
23186 }
23187
23188
23189
23190
23191 public List<ByteBuffer> getRows() {
23192 return this.rows;
23193 }
23194
23195
23196
23197
23198 public getRows_args setRows(List<ByteBuffer> rows) {
23199 this.rows = rows;
23200 return this;
23201 }
23202
23203 public void unsetRows() {
23204 this.rows = null;
23205 }
23206
23207
23208 public boolean isSetRows() {
23209 return this.rows != null;
23210 }
23211
23212 public void setRowsIsSet(boolean value) {
23213 if (!value) {
23214 this.rows = null;
23215 }
23216 }
23217
23218 public int getAttributesSize() {
23219 return (this.attributes == null) ? 0 : this.attributes.size();
23220 }
23221
23222 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
23223 if (this.attributes == null) {
23224 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
23225 }
23226 this.attributes.put(key, val);
23227 }
23228
23229
23230
23231
23232 public Map<ByteBuffer,ByteBuffer> getAttributes() {
23233 return this.attributes;
23234 }
23235
23236
23237
23238
23239 public getRows_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
23240 this.attributes = attributes;
23241 return this;
23242 }
23243
23244 public void unsetAttributes() {
23245 this.attributes = null;
23246 }
23247
23248
23249 public boolean isSetAttributes() {
23250 return this.attributes != null;
23251 }
23252
23253 public void setAttributesIsSet(boolean value) {
23254 if (!value) {
23255 this.attributes = null;
23256 }
23257 }
23258
23259 public void setFieldValue(_Fields field, Object value) {
23260 switch (field) {
23261 case TABLE_NAME:
23262 if (value == null) {
23263 unsetTableName();
23264 } else {
23265 setTableName((ByteBuffer)value);
23266 }
23267 break;
23268
23269 case ROWS:
23270 if (value == null) {
23271 unsetRows();
23272 } else {
23273 setRows((List<ByteBuffer>)value);
23274 }
23275 break;
23276
23277 case ATTRIBUTES:
23278 if (value == null) {
23279 unsetAttributes();
23280 } else {
23281 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
23282 }
23283 break;
23284
23285 }
23286 }
23287
23288 public Object getFieldValue(_Fields field) {
23289 switch (field) {
23290 case TABLE_NAME:
23291 return getTableName();
23292
23293 case ROWS:
23294 return getRows();
23295
23296 case ATTRIBUTES:
23297 return getAttributes();
23298
23299 }
23300 throw new IllegalStateException();
23301 }
23302
23303
23304 public boolean isSet(_Fields field) {
23305 if (field == null) {
23306 throw new IllegalArgumentException();
23307 }
23308
23309 switch (field) {
23310 case TABLE_NAME:
23311 return isSetTableName();
23312 case ROWS:
23313 return isSetRows();
23314 case ATTRIBUTES:
23315 return isSetAttributes();
23316 }
23317 throw new IllegalStateException();
23318 }
23319
23320 @Override
23321 public boolean equals(Object that) {
23322 if (that == null)
23323 return false;
23324 if (that instanceof getRows_args)
23325 return this.equals((getRows_args)that);
23326 return false;
23327 }
23328
23329 public boolean equals(getRows_args that) {
23330 if (that == null)
23331 return false;
23332
23333 boolean this_present_tableName = true && this.isSetTableName();
23334 boolean that_present_tableName = true && that.isSetTableName();
23335 if (this_present_tableName || that_present_tableName) {
23336 if (!(this_present_tableName && that_present_tableName))
23337 return false;
23338 if (!this.tableName.equals(that.tableName))
23339 return false;
23340 }
23341
23342 boolean this_present_rows = true && this.isSetRows();
23343 boolean that_present_rows = true && that.isSetRows();
23344 if (this_present_rows || that_present_rows) {
23345 if (!(this_present_rows && that_present_rows))
23346 return false;
23347 if (!this.rows.equals(that.rows))
23348 return false;
23349 }
23350
23351 boolean this_present_attributes = true && this.isSetAttributes();
23352 boolean that_present_attributes = true && that.isSetAttributes();
23353 if (this_present_attributes || that_present_attributes) {
23354 if (!(this_present_attributes && that_present_attributes))
23355 return false;
23356 if (!this.attributes.equals(that.attributes))
23357 return false;
23358 }
23359
23360 return true;
23361 }
23362
23363 @Override
23364 public int hashCode() {
23365 HashCodeBuilder builder = new HashCodeBuilder();
23366
23367 boolean present_tableName = true && (isSetTableName());
23368 builder.append(present_tableName);
23369 if (present_tableName)
23370 builder.append(tableName);
23371
23372 boolean present_rows = true && (isSetRows());
23373 builder.append(present_rows);
23374 if (present_rows)
23375 builder.append(rows);
23376
23377 boolean present_attributes = true && (isSetAttributes());
23378 builder.append(present_attributes);
23379 if (present_attributes)
23380 builder.append(attributes);
23381
23382 return builder.toHashCode();
23383 }
23384
23385 public int compareTo(getRows_args other) {
23386 if (!getClass().equals(other.getClass())) {
23387 return getClass().getName().compareTo(other.getClass().getName());
23388 }
23389
23390 int lastComparison = 0;
23391 getRows_args typedOther = (getRows_args)other;
23392
23393 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
23394 if (lastComparison != 0) {
23395 return lastComparison;
23396 }
23397 if (isSetTableName()) {
23398 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
23399 if (lastComparison != 0) {
23400 return lastComparison;
23401 }
23402 }
23403 lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows());
23404 if (lastComparison != 0) {
23405 return lastComparison;
23406 }
23407 if (isSetRows()) {
23408 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows);
23409 if (lastComparison != 0) {
23410 return lastComparison;
23411 }
23412 }
23413 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
23414 if (lastComparison != 0) {
23415 return lastComparison;
23416 }
23417 if (isSetAttributes()) {
23418 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
23419 if (lastComparison != 0) {
23420 return lastComparison;
23421 }
23422 }
23423 return 0;
23424 }
23425
23426 public _Fields fieldForId(int fieldId) {
23427 return _Fields.findByThriftId(fieldId);
23428 }
23429
23430 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23431 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23432 }
23433
23434 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23435 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23436 }
23437
23438 @Override
23439 public String toString() {
23440 StringBuilder sb = new StringBuilder("getRows_args(");
23441 boolean first = true;
23442
23443 sb.append("tableName:");
23444 if (this.tableName == null) {
23445 sb.append("null");
23446 } else {
23447 sb.append(this.tableName);
23448 }
23449 first = false;
23450 if (!first) sb.append(", ");
23451 sb.append("rows:");
23452 if (this.rows == null) {
23453 sb.append("null");
23454 } else {
23455 sb.append(this.rows);
23456 }
23457 first = false;
23458 if (!first) sb.append(", ");
23459 sb.append("attributes:");
23460 if (this.attributes == null) {
23461 sb.append("null");
23462 } else {
23463 sb.append(this.attributes);
23464 }
23465 first = false;
23466 sb.append(")");
23467 return sb.toString();
23468 }
23469
23470 public void validate() throws org.apache.thrift.TException {
23471
23472
23473 }
23474
23475 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23476 try {
23477 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23478 } catch (org.apache.thrift.TException te) {
23479 throw new java.io.IOException(te);
23480 }
23481 }
23482
23483 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23484 try {
23485 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23486 } catch (org.apache.thrift.TException te) {
23487 throw new java.io.IOException(te);
23488 }
23489 }
23490
23491 private static class getRows_argsStandardSchemeFactory implements SchemeFactory {
23492 public getRows_argsStandardScheme getScheme() {
23493 return new getRows_argsStandardScheme();
23494 }
23495 }
23496
23497 private static class getRows_argsStandardScheme extends StandardScheme<getRows_args> {
23498
23499 public void read(org.apache.thrift.protocol.TProtocol iprot, getRows_args struct) throws org.apache.thrift.TException {
23500 org.apache.thrift.protocol.TField schemeField;
23501 iprot.readStructBegin();
23502 while (true)
23503 {
23504 schemeField = iprot.readFieldBegin();
23505 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23506 break;
23507 }
23508 switch (schemeField.id) {
23509 case 1:
23510 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
23511 struct.tableName = iprot.readBinary();
23512 struct.setTableNameIsSet(true);
23513 } else {
23514 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23515 }
23516 break;
23517 case 2:
23518 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
23519 {
23520 org.apache.thrift.protocol.TList _list226 = iprot.readListBegin();
23521 struct.rows = new ArrayList<ByteBuffer>(_list226.size);
23522 for (int _i227 = 0; _i227 < _list226.size; ++_i227)
23523 {
23524 ByteBuffer _elem228;
23525 _elem228 = iprot.readBinary();
23526 struct.rows.add(_elem228);
23527 }
23528 iprot.readListEnd();
23529 }
23530 struct.setRowsIsSet(true);
23531 } else {
23532 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23533 }
23534 break;
23535 case 3:
23536 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
23537 {
23538 org.apache.thrift.protocol.TMap _map229 = iprot.readMapBegin();
23539 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map229.size);
23540 for (int _i230 = 0; _i230 < _map229.size; ++_i230)
23541 {
23542 ByteBuffer _key231;
23543 ByteBuffer _val232;
23544 _key231 = iprot.readBinary();
23545 _val232 = iprot.readBinary();
23546 struct.attributes.put(_key231, _val232);
23547 }
23548 iprot.readMapEnd();
23549 }
23550 struct.setAttributesIsSet(true);
23551 } else {
23552 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23553 }
23554 break;
23555 default:
23556 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23557 }
23558 iprot.readFieldEnd();
23559 }
23560 iprot.readStructEnd();
23561
23562
23563 struct.validate();
23564 }
23565
23566 public void write(org.apache.thrift.protocol.TProtocol oprot, getRows_args struct) throws org.apache.thrift.TException {
23567 struct.validate();
23568
23569 oprot.writeStructBegin(STRUCT_DESC);
23570 if (struct.tableName != null) {
23571 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
23572 oprot.writeBinary(struct.tableName);
23573 oprot.writeFieldEnd();
23574 }
23575 if (struct.rows != null) {
23576 oprot.writeFieldBegin(ROWS_FIELD_DESC);
23577 {
23578 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size()));
23579 for (ByteBuffer _iter233 : struct.rows)
23580 {
23581 oprot.writeBinary(_iter233);
23582 }
23583 oprot.writeListEnd();
23584 }
23585 oprot.writeFieldEnd();
23586 }
23587 if (struct.attributes != null) {
23588 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
23589 {
23590 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
23591 for (Map.Entry<ByteBuffer, ByteBuffer> _iter234 : struct.attributes.entrySet())
23592 {
23593 oprot.writeBinary(_iter234.getKey());
23594 oprot.writeBinary(_iter234.getValue());
23595 }
23596 oprot.writeMapEnd();
23597 }
23598 oprot.writeFieldEnd();
23599 }
23600 oprot.writeFieldStop();
23601 oprot.writeStructEnd();
23602 }
23603
23604 }
23605
23606 private static class getRows_argsTupleSchemeFactory implements SchemeFactory {
23607 public getRows_argsTupleScheme getScheme() {
23608 return new getRows_argsTupleScheme();
23609 }
23610 }
23611
23612 private static class getRows_argsTupleScheme extends TupleScheme<getRows_args> {
23613
23614 @Override
23615 public void write(org.apache.thrift.protocol.TProtocol prot, getRows_args struct) throws org.apache.thrift.TException {
23616 TTupleProtocol oprot = (TTupleProtocol) prot;
23617 BitSet optionals = new BitSet();
23618 if (struct.isSetTableName()) {
23619 optionals.set(0);
23620 }
23621 if (struct.isSetRows()) {
23622 optionals.set(1);
23623 }
23624 if (struct.isSetAttributes()) {
23625 optionals.set(2);
23626 }
23627 oprot.writeBitSet(optionals, 3);
23628 if (struct.isSetTableName()) {
23629 oprot.writeBinary(struct.tableName);
23630 }
23631 if (struct.isSetRows()) {
23632 {
23633 oprot.writeI32(struct.rows.size());
23634 for (ByteBuffer _iter235 : struct.rows)
23635 {
23636 oprot.writeBinary(_iter235);
23637 }
23638 }
23639 }
23640 if (struct.isSetAttributes()) {
23641 {
23642 oprot.writeI32(struct.attributes.size());
23643 for (Map.Entry<ByteBuffer, ByteBuffer> _iter236 : struct.attributes.entrySet())
23644 {
23645 oprot.writeBinary(_iter236.getKey());
23646 oprot.writeBinary(_iter236.getValue());
23647 }
23648 }
23649 }
23650 }
23651
23652 @Override
23653 public void read(org.apache.thrift.protocol.TProtocol prot, getRows_args struct) throws org.apache.thrift.TException {
23654 TTupleProtocol iprot = (TTupleProtocol) prot;
23655 BitSet incoming = iprot.readBitSet(3);
23656 if (incoming.get(0)) {
23657 struct.tableName = iprot.readBinary();
23658 struct.setTableNameIsSet(true);
23659 }
23660 if (incoming.get(1)) {
23661 {
23662 org.apache.thrift.protocol.TList _list237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
23663 struct.rows = new ArrayList<ByteBuffer>(_list237.size);
23664 for (int _i238 = 0; _i238 < _list237.size; ++_i238)
23665 {
23666 ByteBuffer _elem239;
23667 _elem239 = iprot.readBinary();
23668 struct.rows.add(_elem239);
23669 }
23670 }
23671 struct.setRowsIsSet(true);
23672 }
23673 if (incoming.get(2)) {
23674 {
23675 org.apache.thrift.protocol.TMap _map240 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
23676 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map240.size);
23677 for (int _i241 = 0; _i241 < _map240.size; ++_i241)
23678 {
23679 ByteBuffer _key242;
23680 ByteBuffer _val243;
23681 _key242 = iprot.readBinary();
23682 _val243 = iprot.readBinary();
23683 struct.attributes.put(_key242, _val243);
23684 }
23685 }
23686 struct.setAttributesIsSet(true);
23687 }
23688 }
23689 }
23690
23691 }
23692
23693 public static class getRows_result implements org.apache.thrift.TBase<getRows_result, getRows_result._Fields>, java.io.Serializable, Cloneable {
23694 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRows_result");
23695
23696 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
23697 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
23698
23699 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23700 static {
23701 schemes.put(StandardScheme.class, new getRows_resultStandardSchemeFactory());
23702 schemes.put(TupleScheme.class, new getRows_resultTupleSchemeFactory());
23703 }
23704
23705 public List<TRowResult> success;
23706 public IOError io;
23707
23708
23709 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23710 SUCCESS((short)0, "success"),
23711 IO((short)1, "io");
23712
23713 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23714
23715 static {
23716 for (_Fields field : EnumSet.allOf(_Fields.class)) {
23717 byName.put(field.getFieldName(), field);
23718 }
23719 }
23720
23721
23722
23723
23724 public static _Fields findByThriftId(int fieldId) {
23725 switch(fieldId) {
23726 case 0:
23727 return SUCCESS;
23728 case 1:
23729 return IO;
23730 default:
23731 return null;
23732 }
23733 }
23734
23735
23736
23737
23738
23739 public static _Fields findByThriftIdOrThrow(int fieldId) {
23740 _Fields fields = findByThriftId(fieldId);
23741 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23742 return fields;
23743 }
23744
23745
23746
23747
23748 public static _Fields findByName(String name) {
23749 return byName.get(name);
23750 }
23751
23752 private final short _thriftId;
23753 private final String _fieldName;
23754
23755 _Fields(short thriftId, String fieldName) {
23756 _thriftId = thriftId;
23757 _fieldName = fieldName;
23758 }
23759
23760 public short getThriftFieldId() {
23761 return _thriftId;
23762 }
23763
23764 public String getFieldName() {
23765 return _fieldName;
23766 }
23767 }
23768
23769
23770 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23771 static {
23772 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23773 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
23774 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
23775 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
23776 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
23777 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23778 metaDataMap = Collections.unmodifiableMap(tmpMap);
23779 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRows_result.class, metaDataMap);
23780 }
23781
23782 public getRows_result() {
23783 }
23784
23785 public getRows_result(
23786 List<TRowResult> success,
23787 IOError io)
23788 {
23789 this();
23790 this.success = success;
23791 this.io = io;
23792 }
23793
23794
23795
23796
23797 public getRows_result(getRows_result other) {
23798 if (other.isSetSuccess()) {
23799 List<TRowResult> __this__success = new ArrayList<TRowResult>();
23800 for (TRowResult other_element : other.success) {
23801 __this__success.add(new TRowResult(other_element));
23802 }
23803 this.success = __this__success;
23804 }
23805 if (other.isSetIo()) {
23806 this.io = new IOError(other.io);
23807 }
23808 }
23809
23810 public getRows_result deepCopy() {
23811 return new getRows_result(this);
23812 }
23813
23814 @Override
23815 public void clear() {
23816 this.success = null;
23817 this.io = null;
23818 }
23819
23820 public int getSuccessSize() {
23821 return (this.success == null) ? 0 : this.success.size();
23822 }
23823
23824 public java.util.Iterator<TRowResult> getSuccessIterator() {
23825 return (this.success == null) ? null : this.success.iterator();
23826 }
23827
23828 public void addToSuccess(TRowResult elem) {
23829 if (this.success == null) {
23830 this.success = new ArrayList<TRowResult>();
23831 }
23832 this.success.add(elem);
23833 }
23834
23835 public List<TRowResult> getSuccess() {
23836 return this.success;
23837 }
23838
23839 public getRows_result setSuccess(List<TRowResult> success) {
23840 this.success = success;
23841 return this;
23842 }
23843
23844 public void unsetSuccess() {
23845 this.success = null;
23846 }
23847
23848
23849 public boolean isSetSuccess() {
23850 return this.success != null;
23851 }
23852
23853 public void setSuccessIsSet(boolean value) {
23854 if (!value) {
23855 this.success = null;
23856 }
23857 }
23858
23859 public IOError getIo() {
23860 return this.io;
23861 }
23862
23863 public getRows_result setIo(IOError io) {
23864 this.io = io;
23865 return this;
23866 }
23867
23868 public void unsetIo() {
23869 this.io = null;
23870 }
23871
23872
23873 public boolean isSetIo() {
23874 return this.io != null;
23875 }
23876
23877 public void setIoIsSet(boolean value) {
23878 if (!value) {
23879 this.io = null;
23880 }
23881 }
23882
23883 public void setFieldValue(_Fields field, Object value) {
23884 switch (field) {
23885 case SUCCESS:
23886 if (value == null) {
23887 unsetSuccess();
23888 } else {
23889 setSuccess((List<TRowResult>)value);
23890 }
23891 break;
23892
23893 case IO:
23894 if (value == null) {
23895 unsetIo();
23896 } else {
23897 setIo((IOError)value);
23898 }
23899 break;
23900
23901 }
23902 }
23903
23904 public Object getFieldValue(_Fields field) {
23905 switch (field) {
23906 case SUCCESS:
23907 return getSuccess();
23908
23909 case IO:
23910 return getIo();
23911
23912 }
23913 throw new IllegalStateException();
23914 }
23915
23916
23917 public boolean isSet(_Fields field) {
23918 if (field == null) {
23919 throw new IllegalArgumentException();
23920 }
23921
23922 switch (field) {
23923 case SUCCESS:
23924 return isSetSuccess();
23925 case IO:
23926 return isSetIo();
23927 }
23928 throw new IllegalStateException();
23929 }
23930
23931 @Override
23932 public boolean equals(Object that) {
23933 if (that == null)
23934 return false;
23935 if (that instanceof getRows_result)
23936 return this.equals((getRows_result)that);
23937 return false;
23938 }
23939
23940 public boolean equals(getRows_result that) {
23941 if (that == null)
23942 return false;
23943
23944 boolean this_present_success = true && this.isSetSuccess();
23945 boolean that_present_success = true && that.isSetSuccess();
23946 if (this_present_success || that_present_success) {
23947 if (!(this_present_success && that_present_success))
23948 return false;
23949 if (!this.success.equals(that.success))
23950 return false;
23951 }
23952
23953 boolean this_present_io = true && this.isSetIo();
23954 boolean that_present_io = true && that.isSetIo();
23955 if (this_present_io || that_present_io) {
23956 if (!(this_present_io && that_present_io))
23957 return false;
23958 if (!this.io.equals(that.io))
23959 return false;
23960 }
23961
23962 return true;
23963 }
23964
23965 @Override
23966 public int hashCode() {
23967 HashCodeBuilder builder = new HashCodeBuilder();
23968
23969 boolean present_success = true && (isSetSuccess());
23970 builder.append(present_success);
23971 if (present_success)
23972 builder.append(success);
23973
23974 boolean present_io = true && (isSetIo());
23975 builder.append(present_io);
23976 if (present_io)
23977 builder.append(io);
23978
23979 return builder.toHashCode();
23980 }
23981
23982 public int compareTo(getRows_result other) {
23983 if (!getClass().equals(other.getClass())) {
23984 return getClass().getName().compareTo(other.getClass().getName());
23985 }
23986
23987 int lastComparison = 0;
23988 getRows_result typedOther = (getRows_result)other;
23989
23990 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23991 if (lastComparison != 0) {
23992 return lastComparison;
23993 }
23994 if (isSetSuccess()) {
23995 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23996 if (lastComparison != 0) {
23997 return lastComparison;
23998 }
23999 }
24000 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
24001 if (lastComparison != 0) {
24002 return lastComparison;
24003 }
24004 if (isSetIo()) {
24005 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
24006 if (lastComparison != 0) {
24007 return lastComparison;
24008 }
24009 }
24010 return 0;
24011 }
24012
24013 public _Fields fieldForId(int fieldId) {
24014 return _Fields.findByThriftId(fieldId);
24015 }
24016
24017 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24018 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24019 }
24020
24021 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24022 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24023 }
24024
24025 @Override
24026 public String toString() {
24027 StringBuilder sb = new StringBuilder("getRows_result(");
24028 boolean first = true;
24029
24030 sb.append("success:");
24031 if (this.success == null) {
24032 sb.append("null");
24033 } else {
24034 sb.append(this.success);
24035 }
24036 first = false;
24037 if (!first) sb.append(", ");
24038 sb.append("io:");
24039 if (this.io == null) {
24040 sb.append("null");
24041 } else {
24042 sb.append(this.io);
24043 }
24044 first = false;
24045 sb.append(")");
24046 return sb.toString();
24047 }
24048
24049 public void validate() throws org.apache.thrift.TException {
24050
24051
24052 }
24053
24054 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24055 try {
24056 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24057 } catch (org.apache.thrift.TException te) {
24058 throw new java.io.IOException(te);
24059 }
24060 }
24061
24062 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24063 try {
24064 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24065 } catch (org.apache.thrift.TException te) {
24066 throw new java.io.IOException(te);
24067 }
24068 }
24069
24070 private static class getRows_resultStandardSchemeFactory implements SchemeFactory {
24071 public getRows_resultStandardScheme getScheme() {
24072 return new getRows_resultStandardScheme();
24073 }
24074 }
24075
24076 private static class getRows_resultStandardScheme extends StandardScheme<getRows_result> {
24077
24078 public void read(org.apache.thrift.protocol.TProtocol iprot, getRows_result struct) throws org.apache.thrift.TException {
24079 org.apache.thrift.protocol.TField schemeField;
24080 iprot.readStructBegin();
24081 while (true)
24082 {
24083 schemeField = iprot.readFieldBegin();
24084 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24085 break;
24086 }
24087 switch (schemeField.id) {
24088 case 0:
24089 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
24090 {
24091 org.apache.thrift.protocol.TList _list244 = iprot.readListBegin();
24092 struct.success = new ArrayList<TRowResult>(_list244.size);
24093 for (int _i245 = 0; _i245 < _list244.size; ++_i245)
24094 {
24095 TRowResult _elem246;
24096 _elem246 = new TRowResult();
24097 _elem246.read(iprot);
24098 struct.success.add(_elem246);
24099 }
24100 iprot.readListEnd();
24101 }
24102 struct.setSuccessIsSet(true);
24103 } else {
24104 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24105 }
24106 break;
24107 case 1:
24108 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
24109 struct.io = new IOError();
24110 struct.io.read(iprot);
24111 struct.setIoIsSet(true);
24112 } else {
24113 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24114 }
24115 break;
24116 default:
24117 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24118 }
24119 iprot.readFieldEnd();
24120 }
24121 iprot.readStructEnd();
24122
24123
24124 struct.validate();
24125 }
24126
24127 public void write(org.apache.thrift.protocol.TProtocol oprot, getRows_result struct) throws org.apache.thrift.TException {
24128 struct.validate();
24129
24130 oprot.writeStructBegin(STRUCT_DESC);
24131 if (struct.success != null) {
24132 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24133 {
24134 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
24135 for (TRowResult _iter247 : struct.success)
24136 {
24137 _iter247.write(oprot);
24138 }
24139 oprot.writeListEnd();
24140 }
24141 oprot.writeFieldEnd();
24142 }
24143 if (struct.io != null) {
24144 oprot.writeFieldBegin(IO_FIELD_DESC);
24145 struct.io.write(oprot);
24146 oprot.writeFieldEnd();
24147 }
24148 oprot.writeFieldStop();
24149 oprot.writeStructEnd();
24150 }
24151
24152 }
24153
24154 private static class getRows_resultTupleSchemeFactory implements SchemeFactory {
24155 public getRows_resultTupleScheme getScheme() {
24156 return new getRows_resultTupleScheme();
24157 }
24158 }
24159
24160 private static class getRows_resultTupleScheme extends TupleScheme<getRows_result> {
24161
24162 @Override
24163 public void write(org.apache.thrift.protocol.TProtocol prot, getRows_result struct) throws org.apache.thrift.TException {
24164 TTupleProtocol oprot = (TTupleProtocol) prot;
24165 BitSet optionals = new BitSet();
24166 if (struct.isSetSuccess()) {
24167 optionals.set(0);
24168 }
24169 if (struct.isSetIo()) {
24170 optionals.set(1);
24171 }
24172 oprot.writeBitSet(optionals, 2);
24173 if (struct.isSetSuccess()) {
24174 {
24175 oprot.writeI32(struct.success.size());
24176 for (TRowResult _iter248 : struct.success)
24177 {
24178 _iter248.write(oprot);
24179 }
24180 }
24181 }
24182 if (struct.isSetIo()) {
24183 struct.io.write(oprot);
24184 }
24185 }
24186
24187 @Override
24188 public void read(org.apache.thrift.protocol.TProtocol prot, getRows_result struct) throws org.apache.thrift.TException {
24189 TTupleProtocol iprot = (TTupleProtocol) prot;
24190 BitSet incoming = iprot.readBitSet(2);
24191 if (incoming.get(0)) {
24192 {
24193 org.apache.thrift.protocol.TList _list249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
24194 struct.success = new ArrayList<TRowResult>(_list249.size);
24195 for (int _i250 = 0; _i250 < _list249.size; ++_i250)
24196 {
24197 TRowResult _elem251;
24198 _elem251 = new TRowResult();
24199 _elem251.read(iprot);
24200 struct.success.add(_elem251);
24201 }
24202 }
24203 struct.setSuccessIsSet(true);
24204 }
24205 if (incoming.get(1)) {
24206 struct.io = new IOError();
24207 struct.io.read(iprot);
24208 struct.setIoIsSet(true);
24209 }
24210 }
24211 }
24212
24213 }
24214
24215 public static class getRowsWithColumns_args implements org.apache.thrift.TBase<getRowsWithColumns_args, getRowsWithColumns_args._Fields>, java.io.Serializable, Cloneable {
24216 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumns_args");
24217
24218 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
24219 private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2);
24220 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
24221 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
24222
24223 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24224 static {
24225 schemes.put(StandardScheme.class, new getRowsWithColumns_argsStandardSchemeFactory());
24226 schemes.put(TupleScheme.class, new getRowsWithColumns_argsTupleSchemeFactory());
24227 }
24228
24229
24230
24231
24232 public ByteBuffer tableName;
24233
24234
24235
24236 public List<ByteBuffer> rows;
24237
24238
24239
24240 public List<ByteBuffer> columns;
24241
24242
24243
24244 public Map<ByteBuffer,ByteBuffer> attributes;
24245
24246
24247 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24248
24249
24250
24251 TABLE_NAME((short)1, "tableName"),
24252
24253
24254
24255 ROWS((short)2, "rows"),
24256
24257
24258
24259 COLUMNS((short)3, "columns"),
24260
24261
24262
24263 ATTRIBUTES((short)4, "attributes");
24264
24265 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24266
24267 static {
24268 for (_Fields field : EnumSet.allOf(_Fields.class)) {
24269 byName.put(field.getFieldName(), field);
24270 }
24271 }
24272
24273
24274
24275
24276 public static _Fields findByThriftId(int fieldId) {
24277 switch(fieldId) {
24278 case 1:
24279 return TABLE_NAME;
24280 case 2:
24281 return ROWS;
24282 case 3:
24283 return COLUMNS;
24284 case 4:
24285 return ATTRIBUTES;
24286 default:
24287 return null;
24288 }
24289 }
24290
24291
24292
24293
24294
24295 public static _Fields findByThriftIdOrThrow(int fieldId) {
24296 _Fields fields = findByThriftId(fieldId);
24297 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24298 return fields;
24299 }
24300
24301
24302
24303
24304 public static _Fields findByName(String name) {
24305 return byName.get(name);
24306 }
24307
24308 private final short _thriftId;
24309 private final String _fieldName;
24310
24311 _Fields(short thriftId, String fieldName) {
24312 _thriftId = thriftId;
24313 _fieldName = fieldName;
24314 }
24315
24316 public short getThriftFieldId() {
24317 return _thriftId;
24318 }
24319
24320 public String getFieldName() {
24321 return _fieldName;
24322 }
24323 }
24324
24325
24326 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24327 static {
24328 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24329 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
24330 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
24331 tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT,
24332 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
24333 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
24334 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT,
24335 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
24336 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
24337 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
24338 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
24339 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
24340 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
24341 metaDataMap = Collections.unmodifiableMap(tmpMap);
24342 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumns_args.class, metaDataMap);
24343 }
24344
24345 public getRowsWithColumns_args() {
24346 }
24347
24348 public getRowsWithColumns_args(
24349 ByteBuffer tableName,
24350 List<ByteBuffer> rows,
24351 List<ByteBuffer> columns,
24352 Map<ByteBuffer,ByteBuffer> attributes)
24353 {
24354 this();
24355 this.tableName = tableName;
24356 this.rows = rows;
24357 this.columns = columns;
24358 this.attributes = attributes;
24359 }
24360
24361
24362
24363
24364 public getRowsWithColumns_args(getRowsWithColumns_args other) {
24365 if (other.isSetTableName()) {
24366 this.tableName = other.tableName;
24367 }
24368 if (other.isSetRows()) {
24369 List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>();
24370 for (ByteBuffer other_element : other.rows) {
24371 __this__rows.add(other_element);
24372 }
24373 this.rows = __this__rows;
24374 }
24375 if (other.isSetColumns()) {
24376 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
24377 for (ByteBuffer other_element : other.columns) {
24378 __this__columns.add(other_element);
24379 }
24380 this.columns = __this__columns;
24381 }
24382 if (other.isSetAttributes()) {
24383 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
24384 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
24385
24386 ByteBuffer other_element_key = other_element.getKey();
24387 ByteBuffer other_element_value = other_element.getValue();
24388
24389 ByteBuffer __this__attributes_copy_key = other_element_key;
24390
24391 ByteBuffer __this__attributes_copy_value = other_element_value;
24392
24393 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
24394 }
24395 this.attributes = __this__attributes;
24396 }
24397 }
24398
24399 public getRowsWithColumns_args deepCopy() {
24400 return new getRowsWithColumns_args(this);
24401 }
24402
24403 @Override
24404 public void clear() {
24405 this.tableName = null;
24406 this.rows = null;
24407 this.columns = null;
24408 this.attributes = null;
24409 }
24410
24411
24412
24413
24414 public byte[] getTableName() {
24415 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
24416 return tableName == null ? null : tableName.array();
24417 }
24418
24419 public ByteBuffer bufferForTableName() {
24420 return tableName;
24421 }
24422
24423
24424
24425
24426 public getRowsWithColumns_args setTableName(byte[] tableName) {
24427 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
24428 return this;
24429 }
24430
24431 public getRowsWithColumns_args setTableName(ByteBuffer tableName) {
24432 this.tableName = tableName;
24433 return this;
24434 }
24435
24436 public void unsetTableName() {
24437 this.tableName = null;
24438 }
24439
24440
24441 public boolean isSetTableName() {
24442 return this.tableName != null;
24443 }
24444
24445 public void setTableNameIsSet(boolean value) {
24446 if (!value) {
24447 this.tableName = null;
24448 }
24449 }
24450
24451 public int getRowsSize() {
24452 return (this.rows == null) ? 0 : this.rows.size();
24453 }
24454
24455 public java.util.Iterator<ByteBuffer> getRowsIterator() {
24456 return (this.rows == null) ? null : this.rows.iterator();
24457 }
24458
24459 public void addToRows(ByteBuffer elem) {
24460 if (this.rows == null) {
24461 this.rows = new ArrayList<ByteBuffer>();
24462 }
24463 this.rows.add(elem);
24464 }
24465
24466
24467
24468
24469 public List<ByteBuffer> getRows() {
24470 return this.rows;
24471 }
24472
24473
24474
24475
24476 public getRowsWithColumns_args setRows(List<ByteBuffer> rows) {
24477 this.rows = rows;
24478 return this;
24479 }
24480
24481 public void unsetRows() {
24482 this.rows = null;
24483 }
24484
24485
24486 public boolean isSetRows() {
24487 return this.rows != null;
24488 }
24489
24490 public void setRowsIsSet(boolean value) {
24491 if (!value) {
24492 this.rows = null;
24493 }
24494 }
24495
24496 public int getColumnsSize() {
24497 return (this.columns == null) ? 0 : this.columns.size();
24498 }
24499
24500 public java.util.Iterator<ByteBuffer> getColumnsIterator() {
24501 return (this.columns == null) ? null : this.columns.iterator();
24502 }
24503
24504 public void addToColumns(ByteBuffer elem) {
24505 if (this.columns == null) {
24506 this.columns = new ArrayList<ByteBuffer>();
24507 }
24508 this.columns.add(elem);
24509 }
24510
24511
24512
24513
24514 public List<ByteBuffer> getColumns() {
24515 return this.columns;
24516 }
24517
24518
24519
24520
24521 public getRowsWithColumns_args setColumns(List<ByteBuffer> columns) {
24522 this.columns = columns;
24523 return this;
24524 }
24525
24526 public void unsetColumns() {
24527 this.columns = null;
24528 }
24529
24530
24531 public boolean isSetColumns() {
24532 return this.columns != null;
24533 }
24534
24535 public void setColumnsIsSet(boolean value) {
24536 if (!value) {
24537 this.columns = null;
24538 }
24539 }
24540
24541 public int getAttributesSize() {
24542 return (this.attributes == null) ? 0 : this.attributes.size();
24543 }
24544
24545 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
24546 if (this.attributes == null) {
24547 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
24548 }
24549 this.attributes.put(key, val);
24550 }
24551
24552
24553
24554
24555 public Map<ByteBuffer,ByteBuffer> getAttributes() {
24556 return this.attributes;
24557 }
24558
24559
24560
24561
24562 public getRowsWithColumns_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
24563 this.attributes = attributes;
24564 return this;
24565 }
24566
24567 public void unsetAttributes() {
24568 this.attributes = null;
24569 }
24570
24571
24572 public boolean isSetAttributes() {
24573 return this.attributes != null;
24574 }
24575
24576 public void setAttributesIsSet(boolean value) {
24577 if (!value) {
24578 this.attributes = null;
24579 }
24580 }
24581
24582 public void setFieldValue(_Fields field, Object value) {
24583 switch (field) {
24584 case TABLE_NAME:
24585 if (value == null) {
24586 unsetTableName();
24587 } else {
24588 setTableName((ByteBuffer)value);
24589 }
24590 break;
24591
24592 case ROWS:
24593 if (value == null) {
24594 unsetRows();
24595 } else {
24596 setRows((List<ByteBuffer>)value);
24597 }
24598 break;
24599
24600 case COLUMNS:
24601 if (value == null) {
24602 unsetColumns();
24603 } else {
24604 setColumns((List<ByteBuffer>)value);
24605 }
24606 break;
24607
24608 case ATTRIBUTES:
24609 if (value == null) {
24610 unsetAttributes();
24611 } else {
24612 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
24613 }
24614 break;
24615
24616 }
24617 }
24618
24619 public Object getFieldValue(_Fields field) {
24620 switch (field) {
24621 case TABLE_NAME:
24622 return getTableName();
24623
24624 case ROWS:
24625 return getRows();
24626
24627 case COLUMNS:
24628 return getColumns();
24629
24630 case ATTRIBUTES:
24631 return getAttributes();
24632
24633 }
24634 throw new IllegalStateException();
24635 }
24636
24637
24638 public boolean isSet(_Fields field) {
24639 if (field == null) {
24640 throw new IllegalArgumentException();
24641 }
24642
24643 switch (field) {
24644 case TABLE_NAME:
24645 return isSetTableName();
24646 case ROWS:
24647 return isSetRows();
24648 case COLUMNS:
24649 return isSetColumns();
24650 case ATTRIBUTES:
24651 return isSetAttributes();
24652 }
24653 throw new IllegalStateException();
24654 }
24655
24656 @Override
24657 public boolean equals(Object that) {
24658 if (that == null)
24659 return false;
24660 if (that instanceof getRowsWithColumns_args)
24661 return this.equals((getRowsWithColumns_args)that);
24662 return false;
24663 }
24664
24665 public boolean equals(getRowsWithColumns_args that) {
24666 if (that == null)
24667 return false;
24668
24669 boolean this_present_tableName = true && this.isSetTableName();
24670 boolean that_present_tableName = true && that.isSetTableName();
24671 if (this_present_tableName || that_present_tableName) {
24672 if (!(this_present_tableName && that_present_tableName))
24673 return false;
24674 if (!this.tableName.equals(that.tableName))
24675 return false;
24676 }
24677
24678 boolean this_present_rows = true && this.isSetRows();
24679 boolean that_present_rows = true && that.isSetRows();
24680 if (this_present_rows || that_present_rows) {
24681 if (!(this_present_rows && that_present_rows))
24682 return false;
24683 if (!this.rows.equals(that.rows))
24684 return false;
24685 }
24686
24687 boolean this_present_columns = true && this.isSetColumns();
24688 boolean that_present_columns = true && that.isSetColumns();
24689 if (this_present_columns || that_present_columns) {
24690 if (!(this_present_columns && that_present_columns))
24691 return false;
24692 if (!this.columns.equals(that.columns))
24693 return false;
24694 }
24695
24696 boolean this_present_attributes = true && this.isSetAttributes();
24697 boolean that_present_attributes = true && that.isSetAttributes();
24698 if (this_present_attributes || that_present_attributes) {
24699 if (!(this_present_attributes && that_present_attributes))
24700 return false;
24701 if (!this.attributes.equals(that.attributes))
24702 return false;
24703 }
24704
24705 return true;
24706 }
24707
24708 @Override
24709 public int hashCode() {
24710 HashCodeBuilder builder = new HashCodeBuilder();
24711
24712 boolean present_tableName = true && (isSetTableName());
24713 builder.append(present_tableName);
24714 if (present_tableName)
24715 builder.append(tableName);
24716
24717 boolean present_rows = true && (isSetRows());
24718 builder.append(present_rows);
24719 if (present_rows)
24720 builder.append(rows);
24721
24722 boolean present_columns = true && (isSetColumns());
24723 builder.append(present_columns);
24724 if (present_columns)
24725 builder.append(columns);
24726
24727 boolean present_attributes = true && (isSetAttributes());
24728 builder.append(present_attributes);
24729 if (present_attributes)
24730 builder.append(attributes);
24731
24732 return builder.toHashCode();
24733 }
24734
24735 public int compareTo(getRowsWithColumns_args other) {
24736 if (!getClass().equals(other.getClass())) {
24737 return getClass().getName().compareTo(other.getClass().getName());
24738 }
24739
24740 int lastComparison = 0;
24741 getRowsWithColumns_args typedOther = (getRowsWithColumns_args)other;
24742
24743 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
24744 if (lastComparison != 0) {
24745 return lastComparison;
24746 }
24747 if (isSetTableName()) {
24748 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
24749 if (lastComparison != 0) {
24750 return lastComparison;
24751 }
24752 }
24753 lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows());
24754 if (lastComparison != 0) {
24755 return lastComparison;
24756 }
24757 if (isSetRows()) {
24758 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows);
24759 if (lastComparison != 0) {
24760 return lastComparison;
24761 }
24762 }
24763 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
24764 if (lastComparison != 0) {
24765 return lastComparison;
24766 }
24767 if (isSetColumns()) {
24768 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
24769 if (lastComparison != 0) {
24770 return lastComparison;
24771 }
24772 }
24773 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
24774 if (lastComparison != 0) {
24775 return lastComparison;
24776 }
24777 if (isSetAttributes()) {
24778 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
24779 if (lastComparison != 0) {
24780 return lastComparison;
24781 }
24782 }
24783 return 0;
24784 }
24785
24786 public _Fields fieldForId(int fieldId) {
24787 return _Fields.findByThriftId(fieldId);
24788 }
24789
24790 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24791 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24792 }
24793
24794 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24795 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24796 }
24797
24798 @Override
24799 public String toString() {
24800 StringBuilder sb = new StringBuilder("getRowsWithColumns_args(");
24801 boolean first = true;
24802
24803 sb.append("tableName:");
24804 if (this.tableName == null) {
24805 sb.append("null");
24806 } else {
24807 sb.append(this.tableName);
24808 }
24809 first = false;
24810 if (!first) sb.append(", ");
24811 sb.append("rows:");
24812 if (this.rows == null) {
24813 sb.append("null");
24814 } else {
24815 sb.append(this.rows);
24816 }
24817 first = false;
24818 if (!first) sb.append(", ");
24819 sb.append("columns:");
24820 if (this.columns == null) {
24821 sb.append("null");
24822 } else {
24823 sb.append(this.columns);
24824 }
24825 first = false;
24826 if (!first) sb.append(", ");
24827 sb.append("attributes:");
24828 if (this.attributes == null) {
24829 sb.append("null");
24830 } else {
24831 sb.append(this.attributes);
24832 }
24833 first = false;
24834 sb.append(")");
24835 return sb.toString();
24836 }
24837
24838 public void validate() throws org.apache.thrift.TException {
24839
24840
24841 }
24842
24843 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24844 try {
24845 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24846 } catch (org.apache.thrift.TException te) {
24847 throw new java.io.IOException(te);
24848 }
24849 }
24850
24851 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24852 try {
24853 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24854 } catch (org.apache.thrift.TException te) {
24855 throw new java.io.IOException(te);
24856 }
24857 }
24858
24859 private static class getRowsWithColumns_argsStandardSchemeFactory implements SchemeFactory {
24860 public getRowsWithColumns_argsStandardScheme getScheme() {
24861 return new getRowsWithColumns_argsStandardScheme();
24862 }
24863 }
24864
24865 private static class getRowsWithColumns_argsStandardScheme extends StandardScheme<getRowsWithColumns_args> {
24866
24867 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumns_args struct) throws org.apache.thrift.TException {
24868 org.apache.thrift.protocol.TField schemeField;
24869 iprot.readStructBegin();
24870 while (true)
24871 {
24872 schemeField = iprot.readFieldBegin();
24873 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24874 break;
24875 }
24876 switch (schemeField.id) {
24877 case 1:
24878 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
24879 struct.tableName = iprot.readBinary();
24880 struct.setTableNameIsSet(true);
24881 } else {
24882 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24883 }
24884 break;
24885 case 2:
24886 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
24887 {
24888 org.apache.thrift.protocol.TList _list252 = iprot.readListBegin();
24889 struct.rows = new ArrayList<ByteBuffer>(_list252.size);
24890 for (int _i253 = 0; _i253 < _list252.size; ++_i253)
24891 {
24892 ByteBuffer _elem254;
24893 _elem254 = iprot.readBinary();
24894 struct.rows.add(_elem254);
24895 }
24896 iprot.readListEnd();
24897 }
24898 struct.setRowsIsSet(true);
24899 } else {
24900 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24901 }
24902 break;
24903 case 3:
24904 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
24905 {
24906 org.apache.thrift.protocol.TList _list255 = iprot.readListBegin();
24907 struct.columns = new ArrayList<ByteBuffer>(_list255.size);
24908 for (int _i256 = 0; _i256 < _list255.size; ++_i256)
24909 {
24910 ByteBuffer _elem257;
24911 _elem257 = iprot.readBinary();
24912 struct.columns.add(_elem257);
24913 }
24914 iprot.readListEnd();
24915 }
24916 struct.setColumnsIsSet(true);
24917 } else {
24918 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24919 }
24920 break;
24921 case 4:
24922 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
24923 {
24924 org.apache.thrift.protocol.TMap _map258 = iprot.readMapBegin();
24925 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map258.size);
24926 for (int _i259 = 0; _i259 < _map258.size; ++_i259)
24927 {
24928 ByteBuffer _key260;
24929 ByteBuffer _val261;
24930 _key260 = iprot.readBinary();
24931 _val261 = iprot.readBinary();
24932 struct.attributes.put(_key260, _val261);
24933 }
24934 iprot.readMapEnd();
24935 }
24936 struct.setAttributesIsSet(true);
24937 } else {
24938 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24939 }
24940 break;
24941 default:
24942 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24943 }
24944 iprot.readFieldEnd();
24945 }
24946 iprot.readStructEnd();
24947
24948
24949 struct.validate();
24950 }
24951
24952 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumns_args struct) throws org.apache.thrift.TException {
24953 struct.validate();
24954
24955 oprot.writeStructBegin(STRUCT_DESC);
24956 if (struct.tableName != null) {
24957 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
24958 oprot.writeBinary(struct.tableName);
24959 oprot.writeFieldEnd();
24960 }
24961 if (struct.rows != null) {
24962 oprot.writeFieldBegin(ROWS_FIELD_DESC);
24963 {
24964 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size()));
24965 for (ByteBuffer _iter262 : struct.rows)
24966 {
24967 oprot.writeBinary(_iter262);
24968 }
24969 oprot.writeListEnd();
24970 }
24971 oprot.writeFieldEnd();
24972 }
24973 if (struct.columns != null) {
24974 oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
24975 {
24976 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
24977 for (ByteBuffer _iter263 : struct.columns)
24978 {
24979 oprot.writeBinary(_iter263);
24980 }
24981 oprot.writeListEnd();
24982 }
24983 oprot.writeFieldEnd();
24984 }
24985 if (struct.attributes != null) {
24986 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
24987 {
24988 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
24989 for (Map.Entry<ByteBuffer, ByteBuffer> _iter264 : struct.attributes.entrySet())
24990 {
24991 oprot.writeBinary(_iter264.getKey());
24992 oprot.writeBinary(_iter264.getValue());
24993 }
24994 oprot.writeMapEnd();
24995 }
24996 oprot.writeFieldEnd();
24997 }
24998 oprot.writeFieldStop();
24999 oprot.writeStructEnd();
25000 }
25001
25002 }
25003
25004 private static class getRowsWithColumns_argsTupleSchemeFactory implements SchemeFactory {
25005 public getRowsWithColumns_argsTupleScheme getScheme() {
25006 return new getRowsWithColumns_argsTupleScheme();
25007 }
25008 }
25009
25010 private static class getRowsWithColumns_argsTupleScheme extends TupleScheme<getRowsWithColumns_args> {
25011
25012 @Override
25013 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_args struct) throws org.apache.thrift.TException {
25014 TTupleProtocol oprot = (TTupleProtocol) prot;
25015 BitSet optionals = new BitSet();
25016 if (struct.isSetTableName()) {
25017 optionals.set(0);
25018 }
25019 if (struct.isSetRows()) {
25020 optionals.set(1);
25021 }
25022 if (struct.isSetColumns()) {
25023 optionals.set(2);
25024 }
25025 if (struct.isSetAttributes()) {
25026 optionals.set(3);
25027 }
25028 oprot.writeBitSet(optionals, 4);
25029 if (struct.isSetTableName()) {
25030 oprot.writeBinary(struct.tableName);
25031 }
25032 if (struct.isSetRows()) {
25033 {
25034 oprot.writeI32(struct.rows.size());
25035 for (ByteBuffer _iter265 : struct.rows)
25036 {
25037 oprot.writeBinary(_iter265);
25038 }
25039 }
25040 }
25041 if (struct.isSetColumns()) {
25042 {
25043 oprot.writeI32(struct.columns.size());
25044 for (ByteBuffer _iter266 : struct.columns)
25045 {
25046 oprot.writeBinary(_iter266);
25047 }
25048 }
25049 }
25050 if (struct.isSetAttributes()) {
25051 {
25052 oprot.writeI32(struct.attributes.size());
25053 for (Map.Entry<ByteBuffer, ByteBuffer> _iter267 : struct.attributes.entrySet())
25054 {
25055 oprot.writeBinary(_iter267.getKey());
25056 oprot.writeBinary(_iter267.getValue());
25057 }
25058 }
25059 }
25060 }
25061
25062 @Override
25063 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_args struct) throws org.apache.thrift.TException {
25064 TTupleProtocol iprot = (TTupleProtocol) prot;
25065 BitSet incoming = iprot.readBitSet(4);
25066 if (incoming.get(0)) {
25067 struct.tableName = iprot.readBinary();
25068 struct.setTableNameIsSet(true);
25069 }
25070 if (incoming.get(1)) {
25071 {
25072 org.apache.thrift.protocol.TList _list268 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
25073 struct.rows = new ArrayList<ByteBuffer>(_list268.size);
25074 for (int _i269 = 0; _i269 < _list268.size; ++_i269)
25075 {
25076 ByteBuffer _elem270;
25077 _elem270 = iprot.readBinary();
25078 struct.rows.add(_elem270);
25079 }
25080 }
25081 struct.setRowsIsSet(true);
25082 }
25083 if (incoming.get(2)) {
25084 {
25085 org.apache.thrift.protocol.TList _list271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
25086 struct.columns = new ArrayList<ByteBuffer>(_list271.size);
25087 for (int _i272 = 0; _i272 < _list271.size; ++_i272)
25088 {
25089 ByteBuffer _elem273;
25090 _elem273 = iprot.readBinary();
25091 struct.columns.add(_elem273);
25092 }
25093 }
25094 struct.setColumnsIsSet(true);
25095 }
25096 if (incoming.get(3)) {
25097 {
25098 org.apache.thrift.protocol.TMap _map274 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
25099 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map274.size);
25100 for (int _i275 = 0; _i275 < _map274.size; ++_i275)
25101 {
25102 ByteBuffer _key276;
25103 ByteBuffer _val277;
25104 _key276 = iprot.readBinary();
25105 _val277 = iprot.readBinary();
25106 struct.attributes.put(_key276, _val277);
25107 }
25108 }
25109 struct.setAttributesIsSet(true);
25110 }
25111 }
25112 }
25113
25114 }
25115
25116 public static class getRowsWithColumns_result implements org.apache.thrift.TBase<getRowsWithColumns_result, getRowsWithColumns_result._Fields>, java.io.Serializable, Cloneable {
25117 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumns_result");
25118
25119 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
25120 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
25121
25122 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25123 static {
25124 schemes.put(StandardScheme.class, new getRowsWithColumns_resultStandardSchemeFactory());
25125 schemes.put(TupleScheme.class, new getRowsWithColumns_resultTupleSchemeFactory());
25126 }
25127
25128 public List<TRowResult> success;
25129 public IOError io;
25130
25131
25132 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25133 SUCCESS((short)0, "success"),
25134 IO((short)1, "io");
25135
25136 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25137
25138 static {
25139 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25140 byName.put(field.getFieldName(), field);
25141 }
25142 }
25143
25144
25145
25146
25147 public static _Fields findByThriftId(int fieldId) {
25148 switch(fieldId) {
25149 case 0:
25150 return SUCCESS;
25151 case 1:
25152 return IO;
25153 default:
25154 return null;
25155 }
25156 }
25157
25158
25159
25160
25161
25162 public static _Fields findByThriftIdOrThrow(int fieldId) {
25163 _Fields fields = findByThriftId(fieldId);
25164 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25165 return fields;
25166 }
25167
25168
25169
25170
25171 public static _Fields findByName(String name) {
25172 return byName.get(name);
25173 }
25174
25175 private final short _thriftId;
25176 private final String _fieldName;
25177
25178 _Fields(short thriftId, String fieldName) {
25179 _thriftId = thriftId;
25180 _fieldName = fieldName;
25181 }
25182
25183 public short getThriftFieldId() {
25184 return _thriftId;
25185 }
25186
25187 public String getFieldName() {
25188 return _fieldName;
25189 }
25190 }
25191
25192
25193 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25194 static {
25195 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25196 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
25197 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
25198 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
25199 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
25200 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25201 metaDataMap = Collections.unmodifiableMap(tmpMap);
25202 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumns_result.class, metaDataMap);
25203 }
25204
25205 public getRowsWithColumns_result() {
25206 }
25207
25208 public getRowsWithColumns_result(
25209 List<TRowResult> success,
25210 IOError io)
25211 {
25212 this();
25213 this.success = success;
25214 this.io = io;
25215 }
25216
25217
25218
25219
25220 public getRowsWithColumns_result(getRowsWithColumns_result other) {
25221 if (other.isSetSuccess()) {
25222 List<TRowResult> __this__success = new ArrayList<TRowResult>();
25223 for (TRowResult other_element : other.success) {
25224 __this__success.add(new TRowResult(other_element));
25225 }
25226 this.success = __this__success;
25227 }
25228 if (other.isSetIo()) {
25229 this.io = new IOError(other.io);
25230 }
25231 }
25232
25233 public getRowsWithColumns_result deepCopy() {
25234 return new getRowsWithColumns_result(this);
25235 }
25236
25237 @Override
25238 public void clear() {
25239 this.success = null;
25240 this.io = null;
25241 }
25242
25243 public int getSuccessSize() {
25244 return (this.success == null) ? 0 : this.success.size();
25245 }
25246
25247 public java.util.Iterator<TRowResult> getSuccessIterator() {
25248 return (this.success == null) ? null : this.success.iterator();
25249 }
25250
25251 public void addToSuccess(TRowResult elem) {
25252 if (this.success == null) {
25253 this.success = new ArrayList<TRowResult>();
25254 }
25255 this.success.add(elem);
25256 }
25257
25258 public List<TRowResult> getSuccess() {
25259 return this.success;
25260 }
25261
25262 public getRowsWithColumns_result setSuccess(List<TRowResult> success) {
25263 this.success = success;
25264 return this;
25265 }
25266
25267 public void unsetSuccess() {
25268 this.success = null;
25269 }
25270
25271
25272 public boolean isSetSuccess() {
25273 return this.success != null;
25274 }
25275
25276 public void setSuccessIsSet(boolean value) {
25277 if (!value) {
25278 this.success = null;
25279 }
25280 }
25281
25282 public IOError getIo() {
25283 return this.io;
25284 }
25285
25286 public getRowsWithColumns_result setIo(IOError io) {
25287 this.io = io;
25288 return this;
25289 }
25290
25291 public void unsetIo() {
25292 this.io = null;
25293 }
25294
25295
25296 public boolean isSetIo() {
25297 return this.io != null;
25298 }
25299
25300 public void setIoIsSet(boolean value) {
25301 if (!value) {
25302 this.io = null;
25303 }
25304 }
25305
25306 public void setFieldValue(_Fields field, Object value) {
25307 switch (field) {
25308 case SUCCESS:
25309 if (value == null) {
25310 unsetSuccess();
25311 } else {
25312 setSuccess((List<TRowResult>)value);
25313 }
25314 break;
25315
25316 case IO:
25317 if (value == null) {
25318 unsetIo();
25319 } else {
25320 setIo((IOError)value);
25321 }
25322 break;
25323
25324 }
25325 }
25326
25327 public Object getFieldValue(_Fields field) {
25328 switch (field) {
25329 case SUCCESS:
25330 return getSuccess();
25331
25332 case IO:
25333 return getIo();
25334
25335 }
25336 throw new IllegalStateException();
25337 }
25338
25339
25340 public boolean isSet(_Fields field) {
25341 if (field == null) {
25342 throw new IllegalArgumentException();
25343 }
25344
25345 switch (field) {
25346 case SUCCESS:
25347 return isSetSuccess();
25348 case IO:
25349 return isSetIo();
25350 }
25351 throw new IllegalStateException();
25352 }
25353
25354 @Override
25355 public boolean equals(Object that) {
25356 if (that == null)
25357 return false;
25358 if (that instanceof getRowsWithColumns_result)
25359 return this.equals((getRowsWithColumns_result)that);
25360 return false;
25361 }
25362
25363 public boolean equals(getRowsWithColumns_result that) {
25364 if (that == null)
25365 return false;
25366
25367 boolean this_present_success = true && this.isSetSuccess();
25368 boolean that_present_success = true && that.isSetSuccess();
25369 if (this_present_success || that_present_success) {
25370 if (!(this_present_success && that_present_success))
25371 return false;
25372 if (!this.success.equals(that.success))
25373 return false;
25374 }
25375
25376 boolean this_present_io = true && this.isSetIo();
25377 boolean that_present_io = true && that.isSetIo();
25378 if (this_present_io || that_present_io) {
25379 if (!(this_present_io && that_present_io))
25380 return false;
25381 if (!this.io.equals(that.io))
25382 return false;
25383 }
25384
25385 return true;
25386 }
25387
25388 @Override
25389 public int hashCode() {
25390 HashCodeBuilder builder = new HashCodeBuilder();
25391
25392 boolean present_success = true && (isSetSuccess());
25393 builder.append(present_success);
25394 if (present_success)
25395 builder.append(success);
25396
25397 boolean present_io = true && (isSetIo());
25398 builder.append(present_io);
25399 if (present_io)
25400 builder.append(io);
25401
25402 return builder.toHashCode();
25403 }
25404
25405 public int compareTo(getRowsWithColumns_result other) {
25406 if (!getClass().equals(other.getClass())) {
25407 return getClass().getName().compareTo(other.getClass().getName());
25408 }
25409
25410 int lastComparison = 0;
25411 getRowsWithColumns_result typedOther = (getRowsWithColumns_result)other;
25412
25413 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25414 if (lastComparison != 0) {
25415 return lastComparison;
25416 }
25417 if (isSetSuccess()) {
25418 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25419 if (lastComparison != 0) {
25420 return lastComparison;
25421 }
25422 }
25423 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
25424 if (lastComparison != 0) {
25425 return lastComparison;
25426 }
25427 if (isSetIo()) {
25428 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
25429 if (lastComparison != 0) {
25430 return lastComparison;
25431 }
25432 }
25433 return 0;
25434 }
25435
25436 public _Fields fieldForId(int fieldId) {
25437 return _Fields.findByThriftId(fieldId);
25438 }
25439
25440 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25441 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25442 }
25443
25444 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25445 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25446 }
25447
25448 @Override
25449 public String toString() {
25450 StringBuilder sb = new StringBuilder("getRowsWithColumns_result(");
25451 boolean first = true;
25452
25453 sb.append("success:");
25454 if (this.success == null) {
25455 sb.append("null");
25456 } else {
25457 sb.append(this.success);
25458 }
25459 first = false;
25460 if (!first) sb.append(", ");
25461 sb.append("io:");
25462 if (this.io == null) {
25463 sb.append("null");
25464 } else {
25465 sb.append(this.io);
25466 }
25467 first = false;
25468 sb.append(")");
25469 return sb.toString();
25470 }
25471
25472 public void validate() throws org.apache.thrift.TException {
25473
25474
25475 }
25476
25477 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25478 try {
25479 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25480 } catch (org.apache.thrift.TException te) {
25481 throw new java.io.IOException(te);
25482 }
25483 }
25484
25485 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25486 try {
25487 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25488 } catch (org.apache.thrift.TException te) {
25489 throw new java.io.IOException(te);
25490 }
25491 }
25492
25493 private static class getRowsWithColumns_resultStandardSchemeFactory implements SchemeFactory {
25494 public getRowsWithColumns_resultStandardScheme getScheme() {
25495 return new getRowsWithColumns_resultStandardScheme();
25496 }
25497 }
25498
25499 private static class getRowsWithColumns_resultStandardScheme extends StandardScheme<getRowsWithColumns_result> {
25500
25501 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumns_result struct) throws org.apache.thrift.TException {
25502 org.apache.thrift.protocol.TField schemeField;
25503 iprot.readStructBegin();
25504 while (true)
25505 {
25506 schemeField = iprot.readFieldBegin();
25507 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25508 break;
25509 }
25510 switch (schemeField.id) {
25511 case 0:
25512 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
25513 {
25514 org.apache.thrift.protocol.TList _list278 = iprot.readListBegin();
25515 struct.success = new ArrayList<TRowResult>(_list278.size);
25516 for (int _i279 = 0; _i279 < _list278.size; ++_i279)
25517 {
25518 TRowResult _elem280;
25519 _elem280 = new TRowResult();
25520 _elem280.read(iprot);
25521 struct.success.add(_elem280);
25522 }
25523 iprot.readListEnd();
25524 }
25525 struct.setSuccessIsSet(true);
25526 } else {
25527 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25528 }
25529 break;
25530 case 1:
25531 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
25532 struct.io = new IOError();
25533 struct.io.read(iprot);
25534 struct.setIoIsSet(true);
25535 } else {
25536 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25537 }
25538 break;
25539 default:
25540 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25541 }
25542 iprot.readFieldEnd();
25543 }
25544 iprot.readStructEnd();
25545
25546
25547 struct.validate();
25548 }
25549
25550 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumns_result struct) throws org.apache.thrift.TException {
25551 struct.validate();
25552
25553 oprot.writeStructBegin(STRUCT_DESC);
25554 if (struct.success != null) {
25555 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25556 {
25557 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
25558 for (TRowResult _iter281 : struct.success)
25559 {
25560 _iter281.write(oprot);
25561 }
25562 oprot.writeListEnd();
25563 }
25564 oprot.writeFieldEnd();
25565 }
25566 if (struct.io != null) {
25567 oprot.writeFieldBegin(IO_FIELD_DESC);
25568 struct.io.write(oprot);
25569 oprot.writeFieldEnd();
25570 }
25571 oprot.writeFieldStop();
25572 oprot.writeStructEnd();
25573 }
25574
25575 }
25576
25577 private static class getRowsWithColumns_resultTupleSchemeFactory implements SchemeFactory {
25578 public getRowsWithColumns_resultTupleScheme getScheme() {
25579 return new getRowsWithColumns_resultTupleScheme();
25580 }
25581 }
25582
25583 private static class getRowsWithColumns_resultTupleScheme extends TupleScheme<getRowsWithColumns_result> {
25584
25585 @Override
25586 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_result struct) throws org.apache.thrift.TException {
25587 TTupleProtocol oprot = (TTupleProtocol) prot;
25588 BitSet optionals = new BitSet();
25589 if (struct.isSetSuccess()) {
25590 optionals.set(0);
25591 }
25592 if (struct.isSetIo()) {
25593 optionals.set(1);
25594 }
25595 oprot.writeBitSet(optionals, 2);
25596 if (struct.isSetSuccess()) {
25597 {
25598 oprot.writeI32(struct.success.size());
25599 for (TRowResult _iter282 : struct.success)
25600 {
25601 _iter282.write(oprot);
25602 }
25603 }
25604 }
25605 if (struct.isSetIo()) {
25606 struct.io.write(oprot);
25607 }
25608 }
25609
25610 @Override
25611 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumns_result struct) throws org.apache.thrift.TException {
25612 TTupleProtocol iprot = (TTupleProtocol) prot;
25613 BitSet incoming = iprot.readBitSet(2);
25614 if (incoming.get(0)) {
25615 {
25616 org.apache.thrift.protocol.TList _list283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
25617 struct.success = new ArrayList<TRowResult>(_list283.size);
25618 for (int _i284 = 0; _i284 < _list283.size; ++_i284)
25619 {
25620 TRowResult _elem285;
25621 _elem285 = new TRowResult();
25622 _elem285.read(iprot);
25623 struct.success.add(_elem285);
25624 }
25625 }
25626 struct.setSuccessIsSet(true);
25627 }
25628 if (incoming.get(1)) {
25629 struct.io = new IOError();
25630 struct.io.read(iprot);
25631 struct.setIoIsSet(true);
25632 }
25633 }
25634 }
25635
25636 }
25637
25638 public static class getRowsTs_args implements org.apache.thrift.TBase<getRowsTs_args, getRowsTs_args._Fields>, java.io.Serializable, Cloneable {
25639 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsTs_args");
25640
25641 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
25642 private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2);
25643 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
25644 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
25645
25646 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25647 static {
25648 schemes.put(StandardScheme.class, new getRowsTs_argsStandardSchemeFactory());
25649 schemes.put(TupleScheme.class, new getRowsTs_argsTupleSchemeFactory());
25650 }
25651
25652
25653
25654
25655 public ByteBuffer tableName;
25656
25657
25658
25659 public List<ByteBuffer> rows;
25660
25661
25662
25663 public long timestamp;
25664
25665
25666
25667 public Map<ByteBuffer,ByteBuffer> attributes;
25668
25669
25670 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25671
25672
25673
25674 TABLE_NAME((short)1, "tableName"),
25675
25676
25677
25678 ROWS((short)2, "rows"),
25679
25680
25681
25682 TIMESTAMP((short)3, "timestamp"),
25683
25684
25685
25686 ATTRIBUTES((short)4, "attributes");
25687
25688 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25689
25690 static {
25691 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25692 byName.put(field.getFieldName(), field);
25693 }
25694 }
25695
25696
25697
25698
25699 public static _Fields findByThriftId(int fieldId) {
25700 switch(fieldId) {
25701 case 1:
25702 return TABLE_NAME;
25703 case 2:
25704 return ROWS;
25705 case 3:
25706 return TIMESTAMP;
25707 case 4:
25708 return ATTRIBUTES;
25709 default:
25710 return null;
25711 }
25712 }
25713
25714
25715
25716
25717
25718 public static _Fields findByThriftIdOrThrow(int fieldId) {
25719 _Fields fields = findByThriftId(fieldId);
25720 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25721 return fields;
25722 }
25723
25724
25725
25726
25727 public static _Fields findByName(String name) {
25728 return byName.get(name);
25729 }
25730
25731 private final short _thriftId;
25732 private final String _fieldName;
25733
25734 _Fields(short thriftId, String fieldName) {
25735 _thriftId = thriftId;
25736 _fieldName = fieldName;
25737 }
25738
25739 public short getThriftFieldId() {
25740 return _thriftId;
25741 }
25742
25743 public String getFieldName() {
25744 return _fieldName;
25745 }
25746 }
25747
25748
25749 private static final int __TIMESTAMP_ISSET_ID = 0;
25750 private byte __isset_bitfield = 0;
25751 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25752 static {
25753 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25754 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
25755 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
25756 tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT,
25757 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
25758 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
25759 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
25760 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25761 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
25762 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
25763 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
25764 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
25765 metaDataMap = Collections.unmodifiableMap(tmpMap);
25766 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsTs_args.class, metaDataMap);
25767 }
25768
25769 public getRowsTs_args() {
25770 }
25771
25772 public getRowsTs_args(
25773 ByteBuffer tableName,
25774 List<ByteBuffer> rows,
25775 long timestamp,
25776 Map<ByteBuffer,ByteBuffer> attributes)
25777 {
25778 this();
25779 this.tableName = tableName;
25780 this.rows = rows;
25781 this.timestamp = timestamp;
25782 setTimestampIsSet(true);
25783 this.attributes = attributes;
25784 }
25785
25786
25787
25788
25789 public getRowsTs_args(getRowsTs_args other) {
25790 __isset_bitfield = other.__isset_bitfield;
25791 if (other.isSetTableName()) {
25792 this.tableName = other.tableName;
25793 }
25794 if (other.isSetRows()) {
25795 List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>();
25796 for (ByteBuffer other_element : other.rows) {
25797 __this__rows.add(other_element);
25798 }
25799 this.rows = __this__rows;
25800 }
25801 this.timestamp = other.timestamp;
25802 if (other.isSetAttributes()) {
25803 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
25804 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
25805
25806 ByteBuffer other_element_key = other_element.getKey();
25807 ByteBuffer other_element_value = other_element.getValue();
25808
25809 ByteBuffer __this__attributes_copy_key = other_element_key;
25810
25811 ByteBuffer __this__attributes_copy_value = other_element_value;
25812
25813 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
25814 }
25815 this.attributes = __this__attributes;
25816 }
25817 }
25818
25819 public getRowsTs_args deepCopy() {
25820 return new getRowsTs_args(this);
25821 }
25822
25823 @Override
25824 public void clear() {
25825 this.tableName = null;
25826 this.rows = null;
25827 setTimestampIsSet(false);
25828 this.timestamp = 0;
25829 this.attributes = null;
25830 }
25831
25832
25833
25834
25835 public byte[] getTableName() {
25836 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
25837 return tableName == null ? null : tableName.array();
25838 }
25839
25840 public ByteBuffer bufferForTableName() {
25841 return tableName;
25842 }
25843
25844
25845
25846
25847 public getRowsTs_args setTableName(byte[] tableName) {
25848 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
25849 return this;
25850 }
25851
25852 public getRowsTs_args setTableName(ByteBuffer tableName) {
25853 this.tableName = tableName;
25854 return this;
25855 }
25856
25857 public void unsetTableName() {
25858 this.tableName = null;
25859 }
25860
25861
25862 public boolean isSetTableName() {
25863 return this.tableName != null;
25864 }
25865
25866 public void setTableNameIsSet(boolean value) {
25867 if (!value) {
25868 this.tableName = null;
25869 }
25870 }
25871
25872 public int getRowsSize() {
25873 return (this.rows == null) ? 0 : this.rows.size();
25874 }
25875
25876 public java.util.Iterator<ByteBuffer> getRowsIterator() {
25877 return (this.rows == null) ? null : this.rows.iterator();
25878 }
25879
25880 public void addToRows(ByteBuffer elem) {
25881 if (this.rows == null) {
25882 this.rows = new ArrayList<ByteBuffer>();
25883 }
25884 this.rows.add(elem);
25885 }
25886
25887
25888
25889
25890 public List<ByteBuffer> getRows() {
25891 return this.rows;
25892 }
25893
25894
25895
25896
25897 public getRowsTs_args setRows(List<ByteBuffer> rows) {
25898 this.rows = rows;
25899 return this;
25900 }
25901
25902 public void unsetRows() {
25903 this.rows = null;
25904 }
25905
25906
25907 public boolean isSetRows() {
25908 return this.rows != null;
25909 }
25910
25911 public void setRowsIsSet(boolean value) {
25912 if (!value) {
25913 this.rows = null;
25914 }
25915 }
25916
25917
25918
25919
25920 public long getTimestamp() {
25921 return this.timestamp;
25922 }
25923
25924
25925
25926
25927 public getRowsTs_args setTimestamp(long timestamp) {
25928 this.timestamp = timestamp;
25929 setTimestampIsSet(true);
25930 return this;
25931 }
25932
25933 public void unsetTimestamp() {
25934 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
25935 }
25936
25937
25938 public boolean isSetTimestamp() {
25939 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
25940 }
25941
25942 public void setTimestampIsSet(boolean value) {
25943 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
25944 }
25945
25946 public int getAttributesSize() {
25947 return (this.attributes == null) ? 0 : this.attributes.size();
25948 }
25949
25950 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
25951 if (this.attributes == null) {
25952 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
25953 }
25954 this.attributes.put(key, val);
25955 }
25956
25957
25958
25959
25960 public Map<ByteBuffer,ByteBuffer> getAttributes() {
25961 return this.attributes;
25962 }
25963
25964
25965
25966
25967 public getRowsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
25968 this.attributes = attributes;
25969 return this;
25970 }
25971
25972 public void unsetAttributes() {
25973 this.attributes = null;
25974 }
25975
25976
25977 public boolean isSetAttributes() {
25978 return this.attributes != null;
25979 }
25980
25981 public void setAttributesIsSet(boolean value) {
25982 if (!value) {
25983 this.attributes = null;
25984 }
25985 }
25986
25987 public void setFieldValue(_Fields field, Object value) {
25988 switch (field) {
25989 case TABLE_NAME:
25990 if (value == null) {
25991 unsetTableName();
25992 } else {
25993 setTableName((ByteBuffer)value);
25994 }
25995 break;
25996
25997 case ROWS:
25998 if (value == null) {
25999 unsetRows();
26000 } else {
26001 setRows((List<ByteBuffer>)value);
26002 }
26003 break;
26004
26005 case TIMESTAMP:
26006 if (value == null) {
26007 unsetTimestamp();
26008 } else {
26009 setTimestamp((Long)value);
26010 }
26011 break;
26012
26013 case ATTRIBUTES:
26014 if (value == null) {
26015 unsetAttributes();
26016 } else {
26017 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
26018 }
26019 break;
26020
26021 }
26022 }
26023
26024 public Object getFieldValue(_Fields field) {
26025 switch (field) {
26026 case TABLE_NAME:
26027 return getTableName();
26028
26029 case ROWS:
26030 return getRows();
26031
26032 case TIMESTAMP:
26033 return Long.valueOf(getTimestamp());
26034
26035 case ATTRIBUTES:
26036 return getAttributes();
26037
26038 }
26039 throw new IllegalStateException();
26040 }
26041
26042
26043 public boolean isSet(_Fields field) {
26044 if (field == null) {
26045 throw new IllegalArgumentException();
26046 }
26047
26048 switch (field) {
26049 case TABLE_NAME:
26050 return isSetTableName();
26051 case ROWS:
26052 return isSetRows();
26053 case TIMESTAMP:
26054 return isSetTimestamp();
26055 case ATTRIBUTES:
26056 return isSetAttributes();
26057 }
26058 throw new IllegalStateException();
26059 }
26060
26061 @Override
26062 public boolean equals(Object that) {
26063 if (that == null)
26064 return false;
26065 if (that instanceof getRowsTs_args)
26066 return this.equals((getRowsTs_args)that);
26067 return false;
26068 }
26069
26070 public boolean equals(getRowsTs_args that) {
26071 if (that == null)
26072 return false;
26073
26074 boolean this_present_tableName = true && this.isSetTableName();
26075 boolean that_present_tableName = true && that.isSetTableName();
26076 if (this_present_tableName || that_present_tableName) {
26077 if (!(this_present_tableName && that_present_tableName))
26078 return false;
26079 if (!this.tableName.equals(that.tableName))
26080 return false;
26081 }
26082
26083 boolean this_present_rows = true && this.isSetRows();
26084 boolean that_present_rows = true && that.isSetRows();
26085 if (this_present_rows || that_present_rows) {
26086 if (!(this_present_rows && that_present_rows))
26087 return false;
26088 if (!this.rows.equals(that.rows))
26089 return false;
26090 }
26091
26092 boolean this_present_timestamp = true;
26093 boolean that_present_timestamp = true;
26094 if (this_present_timestamp || that_present_timestamp) {
26095 if (!(this_present_timestamp && that_present_timestamp))
26096 return false;
26097 if (this.timestamp != that.timestamp)
26098 return false;
26099 }
26100
26101 boolean this_present_attributes = true && this.isSetAttributes();
26102 boolean that_present_attributes = true && that.isSetAttributes();
26103 if (this_present_attributes || that_present_attributes) {
26104 if (!(this_present_attributes && that_present_attributes))
26105 return false;
26106 if (!this.attributes.equals(that.attributes))
26107 return false;
26108 }
26109
26110 return true;
26111 }
26112
26113 @Override
26114 public int hashCode() {
26115 HashCodeBuilder builder = new HashCodeBuilder();
26116
26117 boolean present_tableName = true && (isSetTableName());
26118 builder.append(present_tableName);
26119 if (present_tableName)
26120 builder.append(tableName);
26121
26122 boolean present_rows = true && (isSetRows());
26123 builder.append(present_rows);
26124 if (present_rows)
26125 builder.append(rows);
26126
26127 boolean present_timestamp = true;
26128 builder.append(present_timestamp);
26129 if (present_timestamp)
26130 builder.append(timestamp);
26131
26132 boolean present_attributes = true && (isSetAttributes());
26133 builder.append(present_attributes);
26134 if (present_attributes)
26135 builder.append(attributes);
26136
26137 return builder.toHashCode();
26138 }
26139
26140 public int compareTo(getRowsTs_args other) {
26141 if (!getClass().equals(other.getClass())) {
26142 return getClass().getName().compareTo(other.getClass().getName());
26143 }
26144
26145 int lastComparison = 0;
26146 getRowsTs_args typedOther = (getRowsTs_args)other;
26147
26148 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
26149 if (lastComparison != 0) {
26150 return lastComparison;
26151 }
26152 if (isSetTableName()) {
26153 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
26154 if (lastComparison != 0) {
26155 return lastComparison;
26156 }
26157 }
26158 lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows());
26159 if (lastComparison != 0) {
26160 return lastComparison;
26161 }
26162 if (isSetRows()) {
26163 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows);
26164 if (lastComparison != 0) {
26165 return lastComparison;
26166 }
26167 }
26168 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
26169 if (lastComparison != 0) {
26170 return lastComparison;
26171 }
26172 if (isSetTimestamp()) {
26173 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
26174 if (lastComparison != 0) {
26175 return lastComparison;
26176 }
26177 }
26178 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
26179 if (lastComparison != 0) {
26180 return lastComparison;
26181 }
26182 if (isSetAttributes()) {
26183 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
26184 if (lastComparison != 0) {
26185 return lastComparison;
26186 }
26187 }
26188 return 0;
26189 }
26190
26191 public _Fields fieldForId(int fieldId) {
26192 return _Fields.findByThriftId(fieldId);
26193 }
26194
26195 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26196 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26197 }
26198
26199 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26200 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26201 }
26202
26203 @Override
26204 public String toString() {
26205 StringBuilder sb = new StringBuilder("getRowsTs_args(");
26206 boolean first = true;
26207
26208 sb.append("tableName:");
26209 if (this.tableName == null) {
26210 sb.append("null");
26211 } else {
26212 sb.append(this.tableName);
26213 }
26214 first = false;
26215 if (!first) sb.append(", ");
26216 sb.append("rows:");
26217 if (this.rows == null) {
26218 sb.append("null");
26219 } else {
26220 sb.append(this.rows);
26221 }
26222 first = false;
26223 if (!first) sb.append(", ");
26224 sb.append("timestamp:");
26225 sb.append(this.timestamp);
26226 first = false;
26227 if (!first) sb.append(", ");
26228 sb.append("attributes:");
26229 if (this.attributes == null) {
26230 sb.append("null");
26231 } else {
26232 sb.append(this.attributes);
26233 }
26234 first = false;
26235 sb.append(")");
26236 return sb.toString();
26237 }
26238
26239 public void validate() throws org.apache.thrift.TException {
26240
26241
26242 }
26243
26244 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26245 try {
26246 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26247 } catch (org.apache.thrift.TException te) {
26248 throw new java.io.IOException(te);
26249 }
26250 }
26251
26252 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26253 try {
26254
26255 __isset_bitfield = 0;
26256 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26257 } catch (org.apache.thrift.TException te) {
26258 throw new java.io.IOException(te);
26259 }
26260 }
26261
26262 private static class getRowsTs_argsStandardSchemeFactory implements SchemeFactory {
26263 public getRowsTs_argsStandardScheme getScheme() {
26264 return new getRowsTs_argsStandardScheme();
26265 }
26266 }
26267
26268 private static class getRowsTs_argsStandardScheme extends StandardScheme<getRowsTs_args> {
26269
26270 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsTs_args struct) throws org.apache.thrift.TException {
26271 org.apache.thrift.protocol.TField schemeField;
26272 iprot.readStructBegin();
26273 while (true)
26274 {
26275 schemeField = iprot.readFieldBegin();
26276 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26277 break;
26278 }
26279 switch (schemeField.id) {
26280 case 1:
26281 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
26282 struct.tableName = iprot.readBinary();
26283 struct.setTableNameIsSet(true);
26284 } else {
26285 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26286 }
26287 break;
26288 case 2:
26289 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
26290 {
26291 org.apache.thrift.protocol.TList _list286 = iprot.readListBegin();
26292 struct.rows = new ArrayList<ByteBuffer>(_list286.size);
26293 for (int _i287 = 0; _i287 < _list286.size; ++_i287)
26294 {
26295 ByteBuffer _elem288;
26296 _elem288 = iprot.readBinary();
26297 struct.rows.add(_elem288);
26298 }
26299 iprot.readListEnd();
26300 }
26301 struct.setRowsIsSet(true);
26302 } else {
26303 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26304 }
26305 break;
26306 case 3:
26307 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
26308 struct.timestamp = iprot.readI64();
26309 struct.setTimestampIsSet(true);
26310 } else {
26311 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26312 }
26313 break;
26314 case 4:
26315 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
26316 {
26317 org.apache.thrift.protocol.TMap _map289 = iprot.readMapBegin();
26318 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map289.size);
26319 for (int _i290 = 0; _i290 < _map289.size; ++_i290)
26320 {
26321 ByteBuffer _key291;
26322 ByteBuffer _val292;
26323 _key291 = iprot.readBinary();
26324 _val292 = iprot.readBinary();
26325 struct.attributes.put(_key291, _val292);
26326 }
26327 iprot.readMapEnd();
26328 }
26329 struct.setAttributesIsSet(true);
26330 } else {
26331 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26332 }
26333 break;
26334 default:
26335 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26336 }
26337 iprot.readFieldEnd();
26338 }
26339 iprot.readStructEnd();
26340
26341
26342 struct.validate();
26343 }
26344
26345 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsTs_args struct) throws org.apache.thrift.TException {
26346 struct.validate();
26347
26348 oprot.writeStructBegin(STRUCT_DESC);
26349 if (struct.tableName != null) {
26350 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
26351 oprot.writeBinary(struct.tableName);
26352 oprot.writeFieldEnd();
26353 }
26354 if (struct.rows != null) {
26355 oprot.writeFieldBegin(ROWS_FIELD_DESC);
26356 {
26357 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size()));
26358 for (ByteBuffer _iter293 : struct.rows)
26359 {
26360 oprot.writeBinary(_iter293);
26361 }
26362 oprot.writeListEnd();
26363 }
26364 oprot.writeFieldEnd();
26365 }
26366 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
26367 oprot.writeI64(struct.timestamp);
26368 oprot.writeFieldEnd();
26369 if (struct.attributes != null) {
26370 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
26371 {
26372 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
26373 for (Map.Entry<ByteBuffer, ByteBuffer> _iter294 : struct.attributes.entrySet())
26374 {
26375 oprot.writeBinary(_iter294.getKey());
26376 oprot.writeBinary(_iter294.getValue());
26377 }
26378 oprot.writeMapEnd();
26379 }
26380 oprot.writeFieldEnd();
26381 }
26382 oprot.writeFieldStop();
26383 oprot.writeStructEnd();
26384 }
26385
26386 }
26387
26388 private static class getRowsTs_argsTupleSchemeFactory implements SchemeFactory {
26389 public getRowsTs_argsTupleScheme getScheme() {
26390 return new getRowsTs_argsTupleScheme();
26391 }
26392 }
26393
26394 private static class getRowsTs_argsTupleScheme extends TupleScheme<getRowsTs_args> {
26395
26396 @Override
26397 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsTs_args struct) throws org.apache.thrift.TException {
26398 TTupleProtocol oprot = (TTupleProtocol) prot;
26399 BitSet optionals = new BitSet();
26400 if (struct.isSetTableName()) {
26401 optionals.set(0);
26402 }
26403 if (struct.isSetRows()) {
26404 optionals.set(1);
26405 }
26406 if (struct.isSetTimestamp()) {
26407 optionals.set(2);
26408 }
26409 if (struct.isSetAttributes()) {
26410 optionals.set(3);
26411 }
26412 oprot.writeBitSet(optionals, 4);
26413 if (struct.isSetTableName()) {
26414 oprot.writeBinary(struct.tableName);
26415 }
26416 if (struct.isSetRows()) {
26417 {
26418 oprot.writeI32(struct.rows.size());
26419 for (ByteBuffer _iter295 : struct.rows)
26420 {
26421 oprot.writeBinary(_iter295);
26422 }
26423 }
26424 }
26425 if (struct.isSetTimestamp()) {
26426 oprot.writeI64(struct.timestamp);
26427 }
26428 if (struct.isSetAttributes()) {
26429 {
26430 oprot.writeI32(struct.attributes.size());
26431 for (Map.Entry<ByteBuffer, ByteBuffer> _iter296 : struct.attributes.entrySet())
26432 {
26433 oprot.writeBinary(_iter296.getKey());
26434 oprot.writeBinary(_iter296.getValue());
26435 }
26436 }
26437 }
26438 }
26439
26440 @Override
26441 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsTs_args struct) throws org.apache.thrift.TException {
26442 TTupleProtocol iprot = (TTupleProtocol) prot;
26443 BitSet incoming = iprot.readBitSet(4);
26444 if (incoming.get(0)) {
26445 struct.tableName = iprot.readBinary();
26446 struct.setTableNameIsSet(true);
26447 }
26448 if (incoming.get(1)) {
26449 {
26450 org.apache.thrift.protocol.TList _list297 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
26451 struct.rows = new ArrayList<ByteBuffer>(_list297.size);
26452 for (int _i298 = 0; _i298 < _list297.size; ++_i298)
26453 {
26454 ByteBuffer _elem299;
26455 _elem299 = iprot.readBinary();
26456 struct.rows.add(_elem299);
26457 }
26458 }
26459 struct.setRowsIsSet(true);
26460 }
26461 if (incoming.get(2)) {
26462 struct.timestamp = iprot.readI64();
26463 struct.setTimestampIsSet(true);
26464 }
26465 if (incoming.get(3)) {
26466 {
26467 org.apache.thrift.protocol.TMap _map300 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
26468 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map300.size);
26469 for (int _i301 = 0; _i301 < _map300.size; ++_i301)
26470 {
26471 ByteBuffer _key302;
26472 ByteBuffer _val303;
26473 _key302 = iprot.readBinary();
26474 _val303 = iprot.readBinary();
26475 struct.attributes.put(_key302, _val303);
26476 }
26477 }
26478 struct.setAttributesIsSet(true);
26479 }
26480 }
26481 }
26482
26483 }
26484
26485 public static class getRowsTs_result implements org.apache.thrift.TBase<getRowsTs_result, getRowsTs_result._Fields>, java.io.Serializable, Cloneable {
26486 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsTs_result");
26487
26488 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
26489 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
26490
26491 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
26492 static {
26493 schemes.put(StandardScheme.class, new getRowsTs_resultStandardSchemeFactory());
26494 schemes.put(TupleScheme.class, new getRowsTs_resultTupleSchemeFactory());
26495 }
26496
26497 public List<TRowResult> success;
26498 public IOError io;
26499
26500
26501 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26502 SUCCESS((short)0, "success"),
26503 IO((short)1, "io");
26504
26505 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26506
26507 static {
26508 for (_Fields field : EnumSet.allOf(_Fields.class)) {
26509 byName.put(field.getFieldName(), field);
26510 }
26511 }
26512
26513
26514
26515
26516 public static _Fields findByThriftId(int fieldId) {
26517 switch(fieldId) {
26518 case 0:
26519 return SUCCESS;
26520 case 1:
26521 return IO;
26522 default:
26523 return null;
26524 }
26525 }
26526
26527
26528
26529
26530
26531 public static _Fields findByThriftIdOrThrow(int fieldId) {
26532 _Fields fields = findByThriftId(fieldId);
26533 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26534 return fields;
26535 }
26536
26537
26538
26539
26540 public static _Fields findByName(String name) {
26541 return byName.get(name);
26542 }
26543
26544 private final short _thriftId;
26545 private final String _fieldName;
26546
26547 _Fields(short thriftId, String fieldName) {
26548 _thriftId = thriftId;
26549 _fieldName = fieldName;
26550 }
26551
26552 public short getThriftFieldId() {
26553 return _thriftId;
26554 }
26555
26556 public String getFieldName() {
26557 return _fieldName;
26558 }
26559 }
26560
26561
26562 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26563 static {
26564 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26565 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
26566 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
26567 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
26568 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
26569 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26570 metaDataMap = Collections.unmodifiableMap(tmpMap);
26571 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsTs_result.class, metaDataMap);
26572 }
26573
26574 public getRowsTs_result() {
26575 }
26576
26577 public getRowsTs_result(
26578 List<TRowResult> success,
26579 IOError io)
26580 {
26581 this();
26582 this.success = success;
26583 this.io = io;
26584 }
26585
26586
26587
26588
26589 public getRowsTs_result(getRowsTs_result other) {
26590 if (other.isSetSuccess()) {
26591 List<TRowResult> __this__success = new ArrayList<TRowResult>();
26592 for (TRowResult other_element : other.success) {
26593 __this__success.add(new TRowResult(other_element));
26594 }
26595 this.success = __this__success;
26596 }
26597 if (other.isSetIo()) {
26598 this.io = new IOError(other.io);
26599 }
26600 }
26601
26602 public getRowsTs_result deepCopy() {
26603 return new getRowsTs_result(this);
26604 }
26605
26606 @Override
26607 public void clear() {
26608 this.success = null;
26609 this.io = null;
26610 }
26611
26612 public int getSuccessSize() {
26613 return (this.success == null) ? 0 : this.success.size();
26614 }
26615
26616 public java.util.Iterator<TRowResult> getSuccessIterator() {
26617 return (this.success == null) ? null : this.success.iterator();
26618 }
26619
26620 public void addToSuccess(TRowResult elem) {
26621 if (this.success == null) {
26622 this.success = new ArrayList<TRowResult>();
26623 }
26624 this.success.add(elem);
26625 }
26626
26627 public List<TRowResult> getSuccess() {
26628 return this.success;
26629 }
26630
26631 public getRowsTs_result setSuccess(List<TRowResult> success) {
26632 this.success = success;
26633 return this;
26634 }
26635
26636 public void unsetSuccess() {
26637 this.success = null;
26638 }
26639
26640
26641 public boolean isSetSuccess() {
26642 return this.success != null;
26643 }
26644
26645 public void setSuccessIsSet(boolean value) {
26646 if (!value) {
26647 this.success = null;
26648 }
26649 }
26650
26651 public IOError getIo() {
26652 return this.io;
26653 }
26654
26655 public getRowsTs_result setIo(IOError io) {
26656 this.io = io;
26657 return this;
26658 }
26659
26660 public void unsetIo() {
26661 this.io = null;
26662 }
26663
26664
26665 public boolean isSetIo() {
26666 return this.io != null;
26667 }
26668
26669 public void setIoIsSet(boolean value) {
26670 if (!value) {
26671 this.io = null;
26672 }
26673 }
26674
26675 public void setFieldValue(_Fields field, Object value) {
26676 switch (field) {
26677 case SUCCESS:
26678 if (value == null) {
26679 unsetSuccess();
26680 } else {
26681 setSuccess((List<TRowResult>)value);
26682 }
26683 break;
26684
26685 case IO:
26686 if (value == null) {
26687 unsetIo();
26688 } else {
26689 setIo((IOError)value);
26690 }
26691 break;
26692
26693 }
26694 }
26695
26696 public Object getFieldValue(_Fields field) {
26697 switch (field) {
26698 case SUCCESS:
26699 return getSuccess();
26700
26701 case IO:
26702 return getIo();
26703
26704 }
26705 throw new IllegalStateException();
26706 }
26707
26708
26709 public boolean isSet(_Fields field) {
26710 if (field == null) {
26711 throw new IllegalArgumentException();
26712 }
26713
26714 switch (field) {
26715 case SUCCESS:
26716 return isSetSuccess();
26717 case IO:
26718 return isSetIo();
26719 }
26720 throw new IllegalStateException();
26721 }
26722
26723 @Override
26724 public boolean equals(Object that) {
26725 if (that == null)
26726 return false;
26727 if (that instanceof getRowsTs_result)
26728 return this.equals((getRowsTs_result)that);
26729 return false;
26730 }
26731
26732 public boolean equals(getRowsTs_result that) {
26733 if (that == null)
26734 return false;
26735
26736 boolean this_present_success = true && this.isSetSuccess();
26737 boolean that_present_success = true && that.isSetSuccess();
26738 if (this_present_success || that_present_success) {
26739 if (!(this_present_success && that_present_success))
26740 return false;
26741 if (!this.success.equals(that.success))
26742 return false;
26743 }
26744
26745 boolean this_present_io = true && this.isSetIo();
26746 boolean that_present_io = true && that.isSetIo();
26747 if (this_present_io || that_present_io) {
26748 if (!(this_present_io && that_present_io))
26749 return false;
26750 if (!this.io.equals(that.io))
26751 return false;
26752 }
26753
26754 return true;
26755 }
26756
26757 @Override
26758 public int hashCode() {
26759 HashCodeBuilder builder = new HashCodeBuilder();
26760
26761 boolean present_success = true && (isSetSuccess());
26762 builder.append(present_success);
26763 if (present_success)
26764 builder.append(success);
26765
26766 boolean present_io = true && (isSetIo());
26767 builder.append(present_io);
26768 if (present_io)
26769 builder.append(io);
26770
26771 return builder.toHashCode();
26772 }
26773
26774 public int compareTo(getRowsTs_result other) {
26775 if (!getClass().equals(other.getClass())) {
26776 return getClass().getName().compareTo(other.getClass().getName());
26777 }
26778
26779 int lastComparison = 0;
26780 getRowsTs_result typedOther = (getRowsTs_result)other;
26781
26782 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26783 if (lastComparison != 0) {
26784 return lastComparison;
26785 }
26786 if (isSetSuccess()) {
26787 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26788 if (lastComparison != 0) {
26789 return lastComparison;
26790 }
26791 }
26792 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
26793 if (lastComparison != 0) {
26794 return lastComparison;
26795 }
26796 if (isSetIo()) {
26797 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
26798 if (lastComparison != 0) {
26799 return lastComparison;
26800 }
26801 }
26802 return 0;
26803 }
26804
26805 public _Fields fieldForId(int fieldId) {
26806 return _Fields.findByThriftId(fieldId);
26807 }
26808
26809 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26810 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26811 }
26812
26813 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26814 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26815 }
26816
26817 @Override
26818 public String toString() {
26819 StringBuilder sb = new StringBuilder("getRowsTs_result(");
26820 boolean first = true;
26821
26822 sb.append("success:");
26823 if (this.success == null) {
26824 sb.append("null");
26825 } else {
26826 sb.append(this.success);
26827 }
26828 first = false;
26829 if (!first) sb.append(", ");
26830 sb.append("io:");
26831 if (this.io == null) {
26832 sb.append("null");
26833 } else {
26834 sb.append(this.io);
26835 }
26836 first = false;
26837 sb.append(")");
26838 return sb.toString();
26839 }
26840
26841 public void validate() throws org.apache.thrift.TException {
26842
26843
26844 }
26845
26846 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26847 try {
26848 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26849 } catch (org.apache.thrift.TException te) {
26850 throw new java.io.IOException(te);
26851 }
26852 }
26853
26854 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26855 try {
26856 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26857 } catch (org.apache.thrift.TException te) {
26858 throw new java.io.IOException(te);
26859 }
26860 }
26861
26862 private static class getRowsTs_resultStandardSchemeFactory implements SchemeFactory {
26863 public getRowsTs_resultStandardScheme getScheme() {
26864 return new getRowsTs_resultStandardScheme();
26865 }
26866 }
26867
26868 private static class getRowsTs_resultStandardScheme extends StandardScheme<getRowsTs_result> {
26869
26870 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsTs_result struct) throws org.apache.thrift.TException {
26871 org.apache.thrift.protocol.TField schemeField;
26872 iprot.readStructBegin();
26873 while (true)
26874 {
26875 schemeField = iprot.readFieldBegin();
26876 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26877 break;
26878 }
26879 switch (schemeField.id) {
26880 case 0:
26881 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
26882 {
26883 org.apache.thrift.protocol.TList _list304 = iprot.readListBegin();
26884 struct.success = new ArrayList<TRowResult>(_list304.size);
26885 for (int _i305 = 0; _i305 < _list304.size; ++_i305)
26886 {
26887 TRowResult _elem306;
26888 _elem306 = new TRowResult();
26889 _elem306.read(iprot);
26890 struct.success.add(_elem306);
26891 }
26892 iprot.readListEnd();
26893 }
26894 struct.setSuccessIsSet(true);
26895 } else {
26896 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26897 }
26898 break;
26899 case 1:
26900 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
26901 struct.io = new IOError();
26902 struct.io.read(iprot);
26903 struct.setIoIsSet(true);
26904 } else {
26905 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26906 }
26907 break;
26908 default:
26909 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26910 }
26911 iprot.readFieldEnd();
26912 }
26913 iprot.readStructEnd();
26914
26915
26916 struct.validate();
26917 }
26918
26919 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsTs_result struct) throws org.apache.thrift.TException {
26920 struct.validate();
26921
26922 oprot.writeStructBegin(STRUCT_DESC);
26923 if (struct.success != null) {
26924 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26925 {
26926 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
26927 for (TRowResult _iter307 : struct.success)
26928 {
26929 _iter307.write(oprot);
26930 }
26931 oprot.writeListEnd();
26932 }
26933 oprot.writeFieldEnd();
26934 }
26935 if (struct.io != null) {
26936 oprot.writeFieldBegin(IO_FIELD_DESC);
26937 struct.io.write(oprot);
26938 oprot.writeFieldEnd();
26939 }
26940 oprot.writeFieldStop();
26941 oprot.writeStructEnd();
26942 }
26943
26944 }
26945
26946 private static class getRowsTs_resultTupleSchemeFactory implements SchemeFactory {
26947 public getRowsTs_resultTupleScheme getScheme() {
26948 return new getRowsTs_resultTupleScheme();
26949 }
26950 }
26951
26952 private static class getRowsTs_resultTupleScheme extends TupleScheme<getRowsTs_result> {
26953
26954 @Override
26955 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsTs_result struct) throws org.apache.thrift.TException {
26956 TTupleProtocol oprot = (TTupleProtocol) prot;
26957 BitSet optionals = new BitSet();
26958 if (struct.isSetSuccess()) {
26959 optionals.set(0);
26960 }
26961 if (struct.isSetIo()) {
26962 optionals.set(1);
26963 }
26964 oprot.writeBitSet(optionals, 2);
26965 if (struct.isSetSuccess()) {
26966 {
26967 oprot.writeI32(struct.success.size());
26968 for (TRowResult _iter308 : struct.success)
26969 {
26970 _iter308.write(oprot);
26971 }
26972 }
26973 }
26974 if (struct.isSetIo()) {
26975 struct.io.write(oprot);
26976 }
26977 }
26978
26979 @Override
26980 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsTs_result struct) throws org.apache.thrift.TException {
26981 TTupleProtocol iprot = (TTupleProtocol) prot;
26982 BitSet incoming = iprot.readBitSet(2);
26983 if (incoming.get(0)) {
26984 {
26985 org.apache.thrift.protocol.TList _list309 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
26986 struct.success = new ArrayList<TRowResult>(_list309.size);
26987 for (int _i310 = 0; _i310 < _list309.size; ++_i310)
26988 {
26989 TRowResult _elem311;
26990 _elem311 = new TRowResult();
26991 _elem311.read(iprot);
26992 struct.success.add(_elem311);
26993 }
26994 }
26995 struct.setSuccessIsSet(true);
26996 }
26997 if (incoming.get(1)) {
26998 struct.io = new IOError();
26999 struct.io.read(iprot);
27000 struct.setIoIsSet(true);
27001 }
27002 }
27003 }
27004
27005 }
27006
27007 public static class getRowsWithColumnsTs_args implements org.apache.thrift.TBase<getRowsWithColumnsTs_args, getRowsWithColumnsTs_args._Fields>, java.io.Serializable, Cloneable {
27008 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumnsTs_args");
27009
27010 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
27011 private static final org.apache.thrift.protocol.TField ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("rows", org.apache.thrift.protocol.TType.LIST, (short)2);
27012 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
27013 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
27014 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
27015
27016 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
27017 static {
27018 schemes.put(StandardScheme.class, new getRowsWithColumnsTs_argsStandardSchemeFactory());
27019 schemes.put(TupleScheme.class, new getRowsWithColumnsTs_argsTupleSchemeFactory());
27020 }
27021
27022
27023
27024
27025 public ByteBuffer tableName;
27026
27027
27028
27029 public List<ByteBuffer> rows;
27030
27031
27032
27033 public List<ByteBuffer> columns;
27034 public long timestamp;
27035
27036
27037
27038 public Map<ByteBuffer,ByteBuffer> attributes;
27039
27040
27041 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27042
27043
27044
27045 TABLE_NAME((short)1, "tableName"),
27046
27047
27048
27049 ROWS((short)2, "rows"),
27050
27051
27052
27053 COLUMNS((short)3, "columns"),
27054 TIMESTAMP((short)4, "timestamp"),
27055
27056
27057
27058 ATTRIBUTES((short)5, "attributes");
27059
27060 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27061
27062 static {
27063 for (_Fields field : EnumSet.allOf(_Fields.class)) {
27064 byName.put(field.getFieldName(), field);
27065 }
27066 }
27067
27068
27069
27070
27071 public static _Fields findByThriftId(int fieldId) {
27072 switch(fieldId) {
27073 case 1:
27074 return TABLE_NAME;
27075 case 2:
27076 return ROWS;
27077 case 3:
27078 return COLUMNS;
27079 case 4:
27080 return TIMESTAMP;
27081 case 5:
27082 return ATTRIBUTES;
27083 default:
27084 return null;
27085 }
27086 }
27087
27088
27089
27090
27091
27092 public static _Fields findByThriftIdOrThrow(int fieldId) {
27093 _Fields fields = findByThriftId(fieldId);
27094 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27095 return fields;
27096 }
27097
27098
27099
27100
27101 public static _Fields findByName(String name) {
27102 return byName.get(name);
27103 }
27104
27105 private final short _thriftId;
27106 private final String _fieldName;
27107
27108 _Fields(short thriftId, String fieldName) {
27109 _thriftId = thriftId;
27110 _fieldName = fieldName;
27111 }
27112
27113 public short getThriftFieldId() {
27114 return _thriftId;
27115 }
27116
27117 public String getFieldName() {
27118 return _fieldName;
27119 }
27120 }
27121
27122
27123 private static final int __TIMESTAMP_ISSET_ID = 0;
27124 private byte __isset_bitfield = 0;
27125 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27126 static {
27127 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27128 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
27129 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
27130 tmpMap.put(_Fields.ROWS, new org.apache.thrift.meta_data.FieldMetaData("rows", org.apache.thrift.TFieldRequirementType.DEFAULT,
27131 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
27132 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
27133 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT,
27134 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
27135 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
27136 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
27137 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27138 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
27139 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
27140 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
27141 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
27142 metaDataMap = Collections.unmodifiableMap(tmpMap);
27143 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumnsTs_args.class, metaDataMap);
27144 }
27145
27146 public getRowsWithColumnsTs_args() {
27147 }
27148
27149 public getRowsWithColumnsTs_args(
27150 ByteBuffer tableName,
27151 List<ByteBuffer> rows,
27152 List<ByteBuffer> columns,
27153 long timestamp,
27154 Map<ByteBuffer,ByteBuffer> attributes)
27155 {
27156 this();
27157 this.tableName = tableName;
27158 this.rows = rows;
27159 this.columns = columns;
27160 this.timestamp = timestamp;
27161 setTimestampIsSet(true);
27162 this.attributes = attributes;
27163 }
27164
27165
27166
27167
27168 public getRowsWithColumnsTs_args(getRowsWithColumnsTs_args other) {
27169 __isset_bitfield = other.__isset_bitfield;
27170 if (other.isSetTableName()) {
27171 this.tableName = other.tableName;
27172 }
27173 if (other.isSetRows()) {
27174 List<ByteBuffer> __this__rows = new ArrayList<ByteBuffer>();
27175 for (ByteBuffer other_element : other.rows) {
27176 __this__rows.add(other_element);
27177 }
27178 this.rows = __this__rows;
27179 }
27180 if (other.isSetColumns()) {
27181 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
27182 for (ByteBuffer other_element : other.columns) {
27183 __this__columns.add(other_element);
27184 }
27185 this.columns = __this__columns;
27186 }
27187 this.timestamp = other.timestamp;
27188 if (other.isSetAttributes()) {
27189 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
27190 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
27191
27192 ByteBuffer other_element_key = other_element.getKey();
27193 ByteBuffer other_element_value = other_element.getValue();
27194
27195 ByteBuffer __this__attributes_copy_key = other_element_key;
27196
27197 ByteBuffer __this__attributes_copy_value = other_element_value;
27198
27199 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
27200 }
27201 this.attributes = __this__attributes;
27202 }
27203 }
27204
27205 public getRowsWithColumnsTs_args deepCopy() {
27206 return new getRowsWithColumnsTs_args(this);
27207 }
27208
27209 @Override
27210 public void clear() {
27211 this.tableName = null;
27212 this.rows = null;
27213 this.columns = null;
27214 setTimestampIsSet(false);
27215 this.timestamp = 0;
27216 this.attributes = null;
27217 }
27218
27219
27220
27221
27222 public byte[] getTableName() {
27223 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
27224 return tableName == null ? null : tableName.array();
27225 }
27226
27227 public ByteBuffer bufferForTableName() {
27228 return tableName;
27229 }
27230
27231
27232
27233
27234 public getRowsWithColumnsTs_args setTableName(byte[] tableName) {
27235 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
27236 return this;
27237 }
27238
27239 public getRowsWithColumnsTs_args setTableName(ByteBuffer tableName) {
27240 this.tableName = tableName;
27241 return this;
27242 }
27243
27244 public void unsetTableName() {
27245 this.tableName = null;
27246 }
27247
27248
27249 public boolean isSetTableName() {
27250 return this.tableName != null;
27251 }
27252
27253 public void setTableNameIsSet(boolean value) {
27254 if (!value) {
27255 this.tableName = null;
27256 }
27257 }
27258
27259 public int getRowsSize() {
27260 return (this.rows == null) ? 0 : this.rows.size();
27261 }
27262
27263 public java.util.Iterator<ByteBuffer> getRowsIterator() {
27264 return (this.rows == null) ? null : this.rows.iterator();
27265 }
27266
27267 public void addToRows(ByteBuffer elem) {
27268 if (this.rows == null) {
27269 this.rows = new ArrayList<ByteBuffer>();
27270 }
27271 this.rows.add(elem);
27272 }
27273
27274
27275
27276
27277 public List<ByteBuffer> getRows() {
27278 return this.rows;
27279 }
27280
27281
27282
27283
27284 public getRowsWithColumnsTs_args setRows(List<ByteBuffer> rows) {
27285 this.rows = rows;
27286 return this;
27287 }
27288
27289 public void unsetRows() {
27290 this.rows = null;
27291 }
27292
27293
27294 public boolean isSetRows() {
27295 return this.rows != null;
27296 }
27297
27298 public void setRowsIsSet(boolean value) {
27299 if (!value) {
27300 this.rows = null;
27301 }
27302 }
27303
27304 public int getColumnsSize() {
27305 return (this.columns == null) ? 0 : this.columns.size();
27306 }
27307
27308 public java.util.Iterator<ByteBuffer> getColumnsIterator() {
27309 return (this.columns == null) ? null : this.columns.iterator();
27310 }
27311
27312 public void addToColumns(ByteBuffer elem) {
27313 if (this.columns == null) {
27314 this.columns = new ArrayList<ByteBuffer>();
27315 }
27316 this.columns.add(elem);
27317 }
27318
27319
27320
27321
27322 public List<ByteBuffer> getColumns() {
27323 return this.columns;
27324 }
27325
27326
27327
27328
27329 public getRowsWithColumnsTs_args setColumns(List<ByteBuffer> columns) {
27330 this.columns = columns;
27331 return this;
27332 }
27333
27334 public void unsetColumns() {
27335 this.columns = null;
27336 }
27337
27338
27339 public boolean isSetColumns() {
27340 return this.columns != null;
27341 }
27342
27343 public void setColumnsIsSet(boolean value) {
27344 if (!value) {
27345 this.columns = null;
27346 }
27347 }
27348
27349 public long getTimestamp() {
27350 return this.timestamp;
27351 }
27352
27353 public getRowsWithColumnsTs_args setTimestamp(long timestamp) {
27354 this.timestamp = timestamp;
27355 setTimestampIsSet(true);
27356 return this;
27357 }
27358
27359 public void unsetTimestamp() {
27360 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
27361 }
27362
27363
27364 public boolean isSetTimestamp() {
27365 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
27366 }
27367
27368 public void setTimestampIsSet(boolean value) {
27369 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
27370 }
27371
27372 public int getAttributesSize() {
27373 return (this.attributes == null) ? 0 : this.attributes.size();
27374 }
27375
27376 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
27377 if (this.attributes == null) {
27378 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
27379 }
27380 this.attributes.put(key, val);
27381 }
27382
27383
27384
27385
27386 public Map<ByteBuffer,ByteBuffer> getAttributes() {
27387 return this.attributes;
27388 }
27389
27390
27391
27392
27393 public getRowsWithColumnsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
27394 this.attributes = attributes;
27395 return this;
27396 }
27397
27398 public void unsetAttributes() {
27399 this.attributes = null;
27400 }
27401
27402
27403 public boolean isSetAttributes() {
27404 return this.attributes != null;
27405 }
27406
27407 public void setAttributesIsSet(boolean value) {
27408 if (!value) {
27409 this.attributes = null;
27410 }
27411 }
27412
27413 public void setFieldValue(_Fields field, Object value) {
27414 switch (field) {
27415 case TABLE_NAME:
27416 if (value == null) {
27417 unsetTableName();
27418 } else {
27419 setTableName((ByteBuffer)value);
27420 }
27421 break;
27422
27423 case ROWS:
27424 if (value == null) {
27425 unsetRows();
27426 } else {
27427 setRows((List<ByteBuffer>)value);
27428 }
27429 break;
27430
27431 case COLUMNS:
27432 if (value == null) {
27433 unsetColumns();
27434 } else {
27435 setColumns((List<ByteBuffer>)value);
27436 }
27437 break;
27438
27439 case TIMESTAMP:
27440 if (value == null) {
27441 unsetTimestamp();
27442 } else {
27443 setTimestamp((Long)value);
27444 }
27445 break;
27446
27447 case ATTRIBUTES:
27448 if (value == null) {
27449 unsetAttributes();
27450 } else {
27451 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
27452 }
27453 break;
27454
27455 }
27456 }
27457
27458 public Object getFieldValue(_Fields field) {
27459 switch (field) {
27460 case TABLE_NAME:
27461 return getTableName();
27462
27463 case ROWS:
27464 return getRows();
27465
27466 case COLUMNS:
27467 return getColumns();
27468
27469 case TIMESTAMP:
27470 return Long.valueOf(getTimestamp());
27471
27472 case ATTRIBUTES:
27473 return getAttributes();
27474
27475 }
27476 throw new IllegalStateException();
27477 }
27478
27479
27480 public boolean isSet(_Fields field) {
27481 if (field == null) {
27482 throw new IllegalArgumentException();
27483 }
27484
27485 switch (field) {
27486 case TABLE_NAME:
27487 return isSetTableName();
27488 case ROWS:
27489 return isSetRows();
27490 case COLUMNS:
27491 return isSetColumns();
27492 case TIMESTAMP:
27493 return isSetTimestamp();
27494 case ATTRIBUTES:
27495 return isSetAttributes();
27496 }
27497 throw new IllegalStateException();
27498 }
27499
27500 @Override
27501 public boolean equals(Object that) {
27502 if (that == null)
27503 return false;
27504 if (that instanceof getRowsWithColumnsTs_args)
27505 return this.equals((getRowsWithColumnsTs_args)that);
27506 return false;
27507 }
27508
27509 public boolean equals(getRowsWithColumnsTs_args that) {
27510 if (that == null)
27511 return false;
27512
27513 boolean this_present_tableName = true && this.isSetTableName();
27514 boolean that_present_tableName = true && that.isSetTableName();
27515 if (this_present_tableName || that_present_tableName) {
27516 if (!(this_present_tableName && that_present_tableName))
27517 return false;
27518 if (!this.tableName.equals(that.tableName))
27519 return false;
27520 }
27521
27522 boolean this_present_rows = true && this.isSetRows();
27523 boolean that_present_rows = true && that.isSetRows();
27524 if (this_present_rows || that_present_rows) {
27525 if (!(this_present_rows && that_present_rows))
27526 return false;
27527 if (!this.rows.equals(that.rows))
27528 return false;
27529 }
27530
27531 boolean this_present_columns = true && this.isSetColumns();
27532 boolean that_present_columns = true && that.isSetColumns();
27533 if (this_present_columns || that_present_columns) {
27534 if (!(this_present_columns && that_present_columns))
27535 return false;
27536 if (!this.columns.equals(that.columns))
27537 return false;
27538 }
27539
27540 boolean this_present_timestamp = true;
27541 boolean that_present_timestamp = true;
27542 if (this_present_timestamp || that_present_timestamp) {
27543 if (!(this_present_timestamp && that_present_timestamp))
27544 return false;
27545 if (this.timestamp != that.timestamp)
27546 return false;
27547 }
27548
27549 boolean this_present_attributes = true && this.isSetAttributes();
27550 boolean that_present_attributes = true && that.isSetAttributes();
27551 if (this_present_attributes || that_present_attributes) {
27552 if (!(this_present_attributes && that_present_attributes))
27553 return false;
27554 if (!this.attributes.equals(that.attributes))
27555 return false;
27556 }
27557
27558 return true;
27559 }
27560
27561 @Override
27562 public int hashCode() {
27563 HashCodeBuilder builder = new HashCodeBuilder();
27564
27565 boolean present_tableName = true && (isSetTableName());
27566 builder.append(present_tableName);
27567 if (present_tableName)
27568 builder.append(tableName);
27569
27570 boolean present_rows = true && (isSetRows());
27571 builder.append(present_rows);
27572 if (present_rows)
27573 builder.append(rows);
27574
27575 boolean present_columns = true && (isSetColumns());
27576 builder.append(present_columns);
27577 if (present_columns)
27578 builder.append(columns);
27579
27580 boolean present_timestamp = true;
27581 builder.append(present_timestamp);
27582 if (present_timestamp)
27583 builder.append(timestamp);
27584
27585 boolean present_attributes = true && (isSetAttributes());
27586 builder.append(present_attributes);
27587 if (present_attributes)
27588 builder.append(attributes);
27589
27590 return builder.toHashCode();
27591 }
27592
27593 public int compareTo(getRowsWithColumnsTs_args other) {
27594 if (!getClass().equals(other.getClass())) {
27595 return getClass().getName().compareTo(other.getClass().getName());
27596 }
27597
27598 int lastComparison = 0;
27599 getRowsWithColumnsTs_args typedOther = (getRowsWithColumnsTs_args)other;
27600
27601 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
27602 if (lastComparison != 0) {
27603 return lastComparison;
27604 }
27605 if (isSetTableName()) {
27606 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
27607 if (lastComparison != 0) {
27608 return lastComparison;
27609 }
27610 }
27611 lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows());
27612 if (lastComparison != 0) {
27613 return lastComparison;
27614 }
27615 if (isSetRows()) {
27616 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows);
27617 if (lastComparison != 0) {
27618 return lastComparison;
27619 }
27620 }
27621 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
27622 if (lastComparison != 0) {
27623 return lastComparison;
27624 }
27625 if (isSetColumns()) {
27626 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
27627 if (lastComparison != 0) {
27628 return lastComparison;
27629 }
27630 }
27631 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
27632 if (lastComparison != 0) {
27633 return lastComparison;
27634 }
27635 if (isSetTimestamp()) {
27636 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
27637 if (lastComparison != 0) {
27638 return lastComparison;
27639 }
27640 }
27641 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
27642 if (lastComparison != 0) {
27643 return lastComparison;
27644 }
27645 if (isSetAttributes()) {
27646 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
27647 if (lastComparison != 0) {
27648 return lastComparison;
27649 }
27650 }
27651 return 0;
27652 }
27653
27654 public _Fields fieldForId(int fieldId) {
27655 return _Fields.findByThriftId(fieldId);
27656 }
27657
27658 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27659 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
27660 }
27661
27662 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27663 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
27664 }
27665
27666 @Override
27667 public String toString() {
27668 StringBuilder sb = new StringBuilder("getRowsWithColumnsTs_args(");
27669 boolean first = true;
27670
27671 sb.append("tableName:");
27672 if (this.tableName == null) {
27673 sb.append("null");
27674 } else {
27675 sb.append(this.tableName);
27676 }
27677 first = false;
27678 if (!first) sb.append(", ");
27679 sb.append("rows:");
27680 if (this.rows == null) {
27681 sb.append("null");
27682 } else {
27683 sb.append(this.rows);
27684 }
27685 first = false;
27686 if (!first) sb.append(", ");
27687 sb.append("columns:");
27688 if (this.columns == null) {
27689 sb.append("null");
27690 } else {
27691 sb.append(this.columns);
27692 }
27693 first = false;
27694 if (!first) sb.append(", ");
27695 sb.append("timestamp:");
27696 sb.append(this.timestamp);
27697 first = false;
27698 if (!first) sb.append(", ");
27699 sb.append("attributes:");
27700 if (this.attributes == null) {
27701 sb.append("null");
27702 } else {
27703 sb.append(this.attributes);
27704 }
27705 first = false;
27706 sb.append(")");
27707 return sb.toString();
27708 }
27709
27710 public void validate() throws org.apache.thrift.TException {
27711
27712
27713 }
27714
27715 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27716 try {
27717 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27718 } catch (org.apache.thrift.TException te) {
27719 throw new java.io.IOException(te);
27720 }
27721 }
27722
27723 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27724 try {
27725
27726 __isset_bitfield = 0;
27727 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27728 } catch (org.apache.thrift.TException te) {
27729 throw new java.io.IOException(te);
27730 }
27731 }
27732
27733 private static class getRowsWithColumnsTs_argsStandardSchemeFactory implements SchemeFactory {
27734 public getRowsWithColumnsTs_argsStandardScheme getScheme() {
27735 return new getRowsWithColumnsTs_argsStandardScheme();
27736 }
27737 }
27738
27739 private static class getRowsWithColumnsTs_argsStandardScheme extends StandardScheme<getRowsWithColumnsTs_args> {
27740
27741 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException {
27742 org.apache.thrift.protocol.TField schemeField;
27743 iprot.readStructBegin();
27744 while (true)
27745 {
27746 schemeField = iprot.readFieldBegin();
27747 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
27748 break;
27749 }
27750 switch (schemeField.id) {
27751 case 1:
27752 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
27753 struct.tableName = iprot.readBinary();
27754 struct.setTableNameIsSet(true);
27755 } else {
27756 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27757 }
27758 break;
27759 case 2:
27760 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
27761 {
27762 org.apache.thrift.protocol.TList _list312 = iprot.readListBegin();
27763 struct.rows = new ArrayList<ByteBuffer>(_list312.size);
27764 for (int _i313 = 0; _i313 < _list312.size; ++_i313)
27765 {
27766 ByteBuffer _elem314;
27767 _elem314 = iprot.readBinary();
27768 struct.rows.add(_elem314);
27769 }
27770 iprot.readListEnd();
27771 }
27772 struct.setRowsIsSet(true);
27773 } else {
27774 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27775 }
27776 break;
27777 case 3:
27778 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
27779 {
27780 org.apache.thrift.protocol.TList _list315 = iprot.readListBegin();
27781 struct.columns = new ArrayList<ByteBuffer>(_list315.size);
27782 for (int _i316 = 0; _i316 < _list315.size; ++_i316)
27783 {
27784 ByteBuffer _elem317;
27785 _elem317 = iprot.readBinary();
27786 struct.columns.add(_elem317);
27787 }
27788 iprot.readListEnd();
27789 }
27790 struct.setColumnsIsSet(true);
27791 } else {
27792 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27793 }
27794 break;
27795 case 4:
27796 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
27797 struct.timestamp = iprot.readI64();
27798 struct.setTimestampIsSet(true);
27799 } else {
27800 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27801 }
27802 break;
27803 case 5:
27804 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
27805 {
27806 org.apache.thrift.protocol.TMap _map318 = iprot.readMapBegin();
27807 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map318.size);
27808 for (int _i319 = 0; _i319 < _map318.size; ++_i319)
27809 {
27810 ByteBuffer _key320;
27811 ByteBuffer _val321;
27812 _key320 = iprot.readBinary();
27813 _val321 = iprot.readBinary();
27814 struct.attributes.put(_key320, _val321);
27815 }
27816 iprot.readMapEnd();
27817 }
27818 struct.setAttributesIsSet(true);
27819 } else {
27820 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27821 }
27822 break;
27823 default:
27824 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
27825 }
27826 iprot.readFieldEnd();
27827 }
27828 iprot.readStructEnd();
27829
27830
27831 struct.validate();
27832 }
27833
27834 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException {
27835 struct.validate();
27836
27837 oprot.writeStructBegin(STRUCT_DESC);
27838 if (struct.tableName != null) {
27839 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
27840 oprot.writeBinary(struct.tableName);
27841 oprot.writeFieldEnd();
27842 }
27843 if (struct.rows != null) {
27844 oprot.writeFieldBegin(ROWS_FIELD_DESC);
27845 {
27846 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.rows.size()));
27847 for (ByteBuffer _iter322 : struct.rows)
27848 {
27849 oprot.writeBinary(_iter322);
27850 }
27851 oprot.writeListEnd();
27852 }
27853 oprot.writeFieldEnd();
27854 }
27855 if (struct.columns != null) {
27856 oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
27857 {
27858 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
27859 for (ByteBuffer _iter323 : struct.columns)
27860 {
27861 oprot.writeBinary(_iter323);
27862 }
27863 oprot.writeListEnd();
27864 }
27865 oprot.writeFieldEnd();
27866 }
27867 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
27868 oprot.writeI64(struct.timestamp);
27869 oprot.writeFieldEnd();
27870 if (struct.attributes != null) {
27871 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
27872 {
27873 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
27874 for (Map.Entry<ByteBuffer, ByteBuffer> _iter324 : struct.attributes.entrySet())
27875 {
27876 oprot.writeBinary(_iter324.getKey());
27877 oprot.writeBinary(_iter324.getValue());
27878 }
27879 oprot.writeMapEnd();
27880 }
27881 oprot.writeFieldEnd();
27882 }
27883 oprot.writeFieldStop();
27884 oprot.writeStructEnd();
27885 }
27886
27887 }
27888
27889 private static class getRowsWithColumnsTs_argsTupleSchemeFactory implements SchemeFactory {
27890 public getRowsWithColumnsTs_argsTupleScheme getScheme() {
27891 return new getRowsWithColumnsTs_argsTupleScheme();
27892 }
27893 }
27894
27895 private static class getRowsWithColumnsTs_argsTupleScheme extends TupleScheme<getRowsWithColumnsTs_args> {
27896
27897 @Override
27898 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException {
27899 TTupleProtocol oprot = (TTupleProtocol) prot;
27900 BitSet optionals = new BitSet();
27901 if (struct.isSetTableName()) {
27902 optionals.set(0);
27903 }
27904 if (struct.isSetRows()) {
27905 optionals.set(1);
27906 }
27907 if (struct.isSetColumns()) {
27908 optionals.set(2);
27909 }
27910 if (struct.isSetTimestamp()) {
27911 optionals.set(3);
27912 }
27913 if (struct.isSetAttributes()) {
27914 optionals.set(4);
27915 }
27916 oprot.writeBitSet(optionals, 5);
27917 if (struct.isSetTableName()) {
27918 oprot.writeBinary(struct.tableName);
27919 }
27920 if (struct.isSetRows()) {
27921 {
27922 oprot.writeI32(struct.rows.size());
27923 for (ByteBuffer _iter325 : struct.rows)
27924 {
27925 oprot.writeBinary(_iter325);
27926 }
27927 }
27928 }
27929 if (struct.isSetColumns()) {
27930 {
27931 oprot.writeI32(struct.columns.size());
27932 for (ByteBuffer _iter326 : struct.columns)
27933 {
27934 oprot.writeBinary(_iter326);
27935 }
27936 }
27937 }
27938 if (struct.isSetTimestamp()) {
27939 oprot.writeI64(struct.timestamp);
27940 }
27941 if (struct.isSetAttributes()) {
27942 {
27943 oprot.writeI32(struct.attributes.size());
27944 for (Map.Entry<ByteBuffer, ByteBuffer> _iter327 : struct.attributes.entrySet())
27945 {
27946 oprot.writeBinary(_iter327.getKey());
27947 oprot.writeBinary(_iter327.getValue());
27948 }
27949 }
27950 }
27951 }
27952
27953 @Override
27954 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_args struct) throws org.apache.thrift.TException {
27955 TTupleProtocol iprot = (TTupleProtocol) prot;
27956 BitSet incoming = iprot.readBitSet(5);
27957 if (incoming.get(0)) {
27958 struct.tableName = iprot.readBinary();
27959 struct.setTableNameIsSet(true);
27960 }
27961 if (incoming.get(1)) {
27962 {
27963 org.apache.thrift.protocol.TList _list328 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
27964 struct.rows = new ArrayList<ByteBuffer>(_list328.size);
27965 for (int _i329 = 0; _i329 < _list328.size; ++_i329)
27966 {
27967 ByteBuffer _elem330;
27968 _elem330 = iprot.readBinary();
27969 struct.rows.add(_elem330);
27970 }
27971 }
27972 struct.setRowsIsSet(true);
27973 }
27974 if (incoming.get(2)) {
27975 {
27976 org.apache.thrift.protocol.TList _list331 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
27977 struct.columns = new ArrayList<ByteBuffer>(_list331.size);
27978 for (int _i332 = 0; _i332 < _list331.size; ++_i332)
27979 {
27980 ByteBuffer _elem333;
27981 _elem333 = iprot.readBinary();
27982 struct.columns.add(_elem333);
27983 }
27984 }
27985 struct.setColumnsIsSet(true);
27986 }
27987 if (incoming.get(3)) {
27988 struct.timestamp = iprot.readI64();
27989 struct.setTimestampIsSet(true);
27990 }
27991 if (incoming.get(4)) {
27992 {
27993 org.apache.thrift.protocol.TMap _map334 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
27994 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map334.size);
27995 for (int _i335 = 0; _i335 < _map334.size; ++_i335)
27996 {
27997 ByteBuffer _key336;
27998 ByteBuffer _val337;
27999 _key336 = iprot.readBinary();
28000 _val337 = iprot.readBinary();
28001 struct.attributes.put(_key336, _val337);
28002 }
28003 }
28004 struct.setAttributesIsSet(true);
28005 }
28006 }
28007 }
28008
28009 }
28010
28011 public static class getRowsWithColumnsTs_result implements org.apache.thrift.TBase<getRowsWithColumnsTs_result, getRowsWithColumnsTs_result._Fields>, java.io.Serializable, Cloneable {
28012 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowsWithColumnsTs_result");
28013
28014 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
28015 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
28016
28017 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
28018 static {
28019 schemes.put(StandardScheme.class, new getRowsWithColumnsTs_resultStandardSchemeFactory());
28020 schemes.put(TupleScheme.class, new getRowsWithColumnsTs_resultTupleSchemeFactory());
28021 }
28022
28023 public List<TRowResult> success;
28024 public IOError io;
28025
28026
28027 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28028 SUCCESS((short)0, "success"),
28029 IO((short)1, "io");
28030
28031 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28032
28033 static {
28034 for (_Fields field : EnumSet.allOf(_Fields.class)) {
28035 byName.put(field.getFieldName(), field);
28036 }
28037 }
28038
28039
28040
28041
28042 public static _Fields findByThriftId(int fieldId) {
28043 switch(fieldId) {
28044 case 0:
28045 return SUCCESS;
28046 case 1:
28047 return IO;
28048 default:
28049 return null;
28050 }
28051 }
28052
28053
28054
28055
28056
28057 public static _Fields findByThriftIdOrThrow(int fieldId) {
28058 _Fields fields = findByThriftId(fieldId);
28059 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28060 return fields;
28061 }
28062
28063
28064
28065
28066 public static _Fields findByName(String name) {
28067 return byName.get(name);
28068 }
28069
28070 private final short _thriftId;
28071 private final String _fieldName;
28072
28073 _Fields(short thriftId, String fieldName) {
28074 _thriftId = thriftId;
28075 _fieldName = fieldName;
28076 }
28077
28078 public short getThriftFieldId() {
28079 return _thriftId;
28080 }
28081
28082 public String getFieldName() {
28083 return _fieldName;
28084 }
28085 }
28086
28087
28088 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28089 static {
28090 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28091 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
28092 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
28093 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
28094 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
28095 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28096 metaDataMap = Collections.unmodifiableMap(tmpMap);
28097 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowsWithColumnsTs_result.class, metaDataMap);
28098 }
28099
28100 public getRowsWithColumnsTs_result() {
28101 }
28102
28103 public getRowsWithColumnsTs_result(
28104 List<TRowResult> success,
28105 IOError io)
28106 {
28107 this();
28108 this.success = success;
28109 this.io = io;
28110 }
28111
28112
28113
28114
28115 public getRowsWithColumnsTs_result(getRowsWithColumnsTs_result other) {
28116 if (other.isSetSuccess()) {
28117 List<TRowResult> __this__success = new ArrayList<TRowResult>();
28118 for (TRowResult other_element : other.success) {
28119 __this__success.add(new TRowResult(other_element));
28120 }
28121 this.success = __this__success;
28122 }
28123 if (other.isSetIo()) {
28124 this.io = new IOError(other.io);
28125 }
28126 }
28127
28128 public getRowsWithColumnsTs_result deepCopy() {
28129 return new getRowsWithColumnsTs_result(this);
28130 }
28131
28132 @Override
28133 public void clear() {
28134 this.success = null;
28135 this.io = null;
28136 }
28137
28138 public int getSuccessSize() {
28139 return (this.success == null) ? 0 : this.success.size();
28140 }
28141
28142 public java.util.Iterator<TRowResult> getSuccessIterator() {
28143 return (this.success == null) ? null : this.success.iterator();
28144 }
28145
28146 public void addToSuccess(TRowResult elem) {
28147 if (this.success == null) {
28148 this.success = new ArrayList<TRowResult>();
28149 }
28150 this.success.add(elem);
28151 }
28152
28153 public List<TRowResult> getSuccess() {
28154 return this.success;
28155 }
28156
28157 public getRowsWithColumnsTs_result setSuccess(List<TRowResult> success) {
28158 this.success = success;
28159 return this;
28160 }
28161
28162 public void unsetSuccess() {
28163 this.success = null;
28164 }
28165
28166
28167 public boolean isSetSuccess() {
28168 return this.success != null;
28169 }
28170
28171 public void setSuccessIsSet(boolean value) {
28172 if (!value) {
28173 this.success = null;
28174 }
28175 }
28176
28177 public IOError getIo() {
28178 return this.io;
28179 }
28180
28181 public getRowsWithColumnsTs_result setIo(IOError io) {
28182 this.io = io;
28183 return this;
28184 }
28185
28186 public void unsetIo() {
28187 this.io = null;
28188 }
28189
28190
28191 public boolean isSetIo() {
28192 return this.io != null;
28193 }
28194
28195 public void setIoIsSet(boolean value) {
28196 if (!value) {
28197 this.io = null;
28198 }
28199 }
28200
28201 public void setFieldValue(_Fields field, Object value) {
28202 switch (field) {
28203 case SUCCESS:
28204 if (value == null) {
28205 unsetSuccess();
28206 } else {
28207 setSuccess((List<TRowResult>)value);
28208 }
28209 break;
28210
28211 case IO:
28212 if (value == null) {
28213 unsetIo();
28214 } else {
28215 setIo((IOError)value);
28216 }
28217 break;
28218
28219 }
28220 }
28221
28222 public Object getFieldValue(_Fields field) {
28223 switch (field) {
28224 case SUCCESS:
28225 return getSuccess();
28226
28227 case IO:
28228 return getIo();
28229
28230 }
28231 throw new IllegalStateException();
28232 }
28233
28234
28235 public boolean isSet(_Fields field) {
28236 if (field == null) {
28237 throw new IllegalArgumentException();
28238 }
28239
28240 switch (field) {
28241 case SUCCESS:
28242 return isSetSuccess();
28243 case IO:
28244 return isSetIo();
28245 }
28246 throw new IllegalStateException();
28247 }
28248
28249 @Override
28250 public boolean equals(Object that) {
28251 if (that == null)
28252 return false;
28253 if (that instanceof getRowsWithColumnsTs_result)
28254 return this.equals((getRowsWithColumnsTs_result)that);
28255 return false;
28256 }
28257
28258 public boolean equals(getRowsWithColumnsTs_result that) {
28259 if (that == null)
28260 return false;
28261
28262 boolean this_present_success = true && this.isSetSuccess();
28263 boolean that_present_success = true && that.isSetSuccess();
28264 if (this_present_success || that_present_success) {
28265 if (!(this_present_success && that_present_success))
28266 return false;
28267 if (!this.success.equals(that.success))
28268 return false;
28269 }
28270
28271 boolean this_present_io = true && this.isSetIo();
28272 boolean that_present_io = true && that.isSetIo();
28273 if (this_present_io || that_present_io) {
28274 if (!(this_present_io && that_present_io))
28275 return false;
28276 if (!this.io.equals(that.io))
28277 return false;
28278 }
28279
28280 return true;
28281 }
28282
28283 @Override
28284 public int hashCode() {
28285 HashCodeBuilder builder = new HashCodeBuilder();
28286
28287 boolean present_success = true && (isSetSuccess());
28288 builder.append(present_success);
28289 if (present_success)
28290 builder.append(success);
28291
28292 boolean present_io = true && (isSetIo());
28293 builder.append(present_io);
28294 if (present_io)
28295 builder.append(io);
28296
28297 return builder.toHashCode();
28298 }
28299
28300 public int compareTo(getRowsWithColumnsTs_result other) {
28301 if (!getClass().equals(other.getClass())) {
28302 return getClass().getName().compareTo(other.getClass().getName());
28303 }
28304
28305 int lastComparison = 0;
28306 getRowsWithColumnsTs_result typedOther = (getRowsWithColumnsTs_result)other;
28307
28308 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28309 if (lastComparison != 0) {
28310 return lastComparison;
28311 }
28312 if (isSetSuccess()) {
28313 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28314 if (lastComparison != 0) {
28315 return lastComparison;
28316 }
28317 }
28318 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
28319 if (lastComparison != 0) {
28320 return lastComparison;
28321 }
28322 if (isSetIo()) {
28323 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
28324 if (lastComparison != 0) {
28325 return lastComparison;
28326 }
28327 }
28328 return 0;
28329 }
28330
28331 public _Fields fieldForId(int fieldId) {
28332 return _Fields.findByThriftId(fieldId);
28333 }
28334
28335 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28336 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
28337 }
28338
28339 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28340 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
28341 }
28342
28343 @Override
28344 public String toString() {
28345 StringBuilder sb = new StringBuilder("getRowsWithColumnsTs_result(");
28346 boolean first = true;
28347
28348 sb.append("success:");
28349 if (this.success == null) {
28350 sb.append("null");
28351 } else {
28352 sb.append(this.success);
28353 }
28354 first = false;
28355 if (!first) sb.append(", ");
28356 sb.append("io:");
28357 if (this.io == null) {
28358 sb.append("null");
28359 } else {
28360 sb.append(this.io);
28361 }
28362 first = false;
28363 sb.append(")");
28364 return sb.toString();
28365 }
28366
28367 public void validate() throws org.apache.thrift.TException {
28368
28369
28370 }
28371
28372 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28373 try {
28374 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28375 } catch (org.apache.thrift.TException te) {
28376 throw new java.io.IOException(te);
28377 }
28378 }
28379
28380 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28381 try {
28382 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28383 } catch (org.apache.thrift.TException te) {
28384 throw new java.io.IOException(te);
28385 }
28386 }
28387
28388 private static class getRowsWithColumnsTs_resultStandardSchemeFactory implements SchemeFactory {
28389 public getRowsWithColumnsTs_resultStandardScheme getScheme() {
28390 return new getRowsWithColumnsTs_resultStandardScheme();
28391 }
28392 }
28393
28394 private static class getRowsWithColumnsTs_resultStandardScheme extends StandardScheme<getRowsWithColumnsTs_result> {
28395
28396 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException {
28397 org.apache.thrift.protocol.TField schemeField;
28398 iprot.readStructBegin();
28399 while (true)
28400 {
28401 schemeField = iprot.readFieldBegin();
28402 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
28403 break;
28404 }
28405 switch (schemeField.id) {
28406 case 0:
28407 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
28408 {
28409 org.apache.thrift.protocol.TList _list338 = iprot.readListBegin();
28410 struct.success = new ArrayList<TRowResult>(_list338.size);
28411 for (int _i339 = 0; _i339 < _list338.size; ++_i339)
28412 {
28413 TRowResult _elem340;
28414 _elem340 = new TRowResult();
28415 _elem340.read(iprot);
28416 struct.success.add(_elem340);
28417 }
28418 iprot.readListEnd();
28419 }
28420 struct.setSuccessIsSet(true);
28421 } else {
28422 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28423 }
28424 break;
28425 case 1:
28426 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
28427 struct.io = new IOError();
28428 struct.io.read(iprot);
28429 struct.setIoIsSet(true);
28430 } else {
28431 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28432 }
28433 break;
28434 default:
28435 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
28436 }
28437 iprot.readFieldEnd();
28438 }
28439 iprot.readStructEnd();
28440
28441
28442 struct.validate();
28443 }
28444
28445 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException {
28446 struct.validate();
28447
28448 oprot.writeStructBegin(STRUCT_DESC);
28449 if (struct.success != null) {
28450 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28451 {
28452 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
28453 for (TRowResult _iter341 : struct.success)
28454 {
28455 _iter341.write(oprot);
28456 }
28457 oprot.writeListEnd();
28458 }
28459 oprot.writeFieldEnd();
28460 }
28461 if (struct.io != null) {
28462 oprot.writeFieldBegin(IO_FIELD_DESC);
28463 struct.io.write(oprot);
28464 oprot.writeFieldEnd();
28465 }
28466 oprot.writeFieldStop();
28467 oprot.writeStructEnd();
28468 }
28469
28470 }
28471
28472 private static class getRowsWithColumnsTs_resultTupleSchemeFactory implements SchemeFactory {
28473 public getRowsWithColumnsTs_resultTupleScheme getScheme() {
28474 return new getRowsWithColumnsTs_resultTupleScheme();
28475 }
28476 }
28477
28478 private static class getRowsWithColumnsTs_resultTupleScheme extends TupleScheme<getRowsWithColumnsTs_result> {
28479
28480 @Override
28481 public void write(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException {
28482 TTupleProtocol oprot = (TTupleProtocol) prot;
28483 BitSet optionals = new BitSet();
28484 if (struct.isSetSuccess()) {
28485 optionals.set(0);
28486 }
28487 if (struct.isSetIo()) {
28488 optionals.set(1);
28489 }
28490 oprot.writeBitSet(optionals, 2);
28491 if (struct.isSetSuccess()) {
28492 {
28493 oprot.writeI32(struct.success.size());
28494 for (TRowResult _iter342 : struct.success)
28495 {
28496 _iter342.write(oprot);
28497 }
28498 }
28499 }
28500 if (struct.isSetIo()) {
28501 struct.io.write(oprot);
28502 }
28503 }
28504
28505 @Override
28506 public void read(org.apache.thrift.protocol.TProtocol prot, getRowsWithColumnsTs_result struct) throws org.apache.thrift.TException {
28507 TTupleProtocol iprot = (TTupleProtocol) prot;
28508 BitSet incoming = iprot.readBitSet(2);
28509 if (incoming.get(0)) {
28510 {
28511 org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
28512 struct.success = new ArrayList<TRowResult>(_list343.size);
28513 for (int _i344 = 0; _i344 < _list343.size; ++_i344)
28514 {
28515 TRowResult _elem345;
28516 _elem345 = new TRowResult();
28517 _elem345.read(iprot);
28518 struct.success.add(_elem345);
28519 }
28520 }
28521 struct.setSuccessIsSet(true);
28522 }
28523 if (incoming.get(1)) {
28524 struct.io = new IOError();
28525 struct.io.read(iprot);
28526 struct.setIoIsSet(true);
28527 }
28528 }
28529 }
28530
28531 }
28532
28533 public static class mutateRow_args implements org.apache.thrift.TBase<mutateRow_args, mutateRow_args._Fields>, java.io.Serializable, Cloneable {
28534 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_args");
28535
28536 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
28537 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
28538 private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)3);
28539 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
28540
28541 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
28542 static {
28543 schemes.put(StandardScheme.class, new mutateRow_argsStandardSchemeFactory());
28544 schemes.put(TupleScheme.class, new mutateRow_argsTupleSchemeFactory());
28545 }
28546
28547
28548
28549
28550 public ByteBuffer tableName;
28551
28552
28553
28554 public ByteBuffer row;
28555
28556
28557
28558 public List<Mutation> mutations;
28559
28560
28561
28562 public Map<ByteBuffer,ByteBuffer> attributes;
28563
28564
28565 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28566
28567
28568
28569 TABLE_NAME((short)1, "tableName"),
28570
28571
28572
28573 ROW((short)2, "row"),
28574
28575
28576
28577 MUTATIONS((short)3, "mutations"),
28578
28579
28580
28581 ATTRIBUTES((short)4, "attributes");
28582
28583 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28584
28585 static {
28586 for (_Fields field : EnumSet.allOf(_Fields.class)) {
28587 byName.put(field.getFieldName(), field);
28588 }
28589 }
28590
28591
28592
28593
28594 public static _Fields findByThriftId(int fieldId) {
28595 switch(fieldId) {
28596 case 1:
28597 return TABLE_NAME;
28598 case 2:
28599 return ROW;
28600 case 3:
28601 return MUTATIONS;
28602 case 4:
28603 return ATTRIBUTES;
28604 default:
28605 return null;
28606 }
28607 }
28608
28609
28610
28611
28612
28613 public static _Fields findByThriftIdOrThrow(int fieldId) {
28614 _Fields fields = findByThriftId(fieldId);
28615 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28616 return fields;
28617 }
28618
28619
28620
28621
28622 public static _Fields findByName(String name) {
28623 return byName.get(name);
28624 }
28625
28626 private final short _thriftId;
28627 private final String _fieldName;
28628
28629 _Fields(short thriftId, String fieldName) {
28630 _thriftId = thriftId;
28631 _fieldName = fieldName;
28632 }
28633
28634 public short getThriftFieldId() {
28635 return _thriftId;
28636 }
28637
28638 public String getFieldName() {
28639 return _fieldName;
28640 }
28641 }
28642
28643
28644 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28645 static {
28646 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28647 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
28648 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
28649 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
28650 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
28651 tmpMap.put(_Fields.MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("mutations", org.apache.thrift.TFieldRequirementType.DEFAULT,
28652 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
28653 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mutation.class))));
28654 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
28655 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
28656 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
28657 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
28658 metaDataMap = Collections.unmodifiableMap(tmpMap);
28659 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_args.class, metaDataMap);
28660 }
28661
28662 public mutateRow_args() {
28663 }
28664
28665 public mutateRow_args(
28666 ByteBuffer tableName,
28667 ByteBuffer row,
28668 List<Mutation> mutations,
28669 Map<ByteBuffer,ByteBuffer> attributes)
28670 {
28671 this();
28672 this.tableName = tableName;
28673 this.row = row;
28674 this.mutations = mutations;
28675 this.attributes = attributes;
28676 }
28677
28678
28679
28680
28681 public mutateRow_args(mutateRow_args other) {
28682 if (other.isSetTableName()) {
28683 this.tableName = other.tableName;
28684 }
28685 if (other.isSetRow()) {
28686 this.row = other.row;
28687 }
28688 if (other.isSetMutations()) {
28689 List<Mutation> __this__mutations = new ArrayList<Mutation>();
28690 for (Mutation other_element : other.mutations) {
28691 __this__mutations.add(new Mutation(other_element));
28692 }
28693 this.mutations = __this__mutations;
28694 }
28695 if (other.isSetAttributes()) {
28696 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
28697 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
28698
28699 ByteBuffer other_element_key = other_element.getKey();
28700 ByteBuffer other_element_value = other_element.getValue();
28701
28702 ByteBuffer __this__attributes_copy_key = other_element_key;
28703
28704 ByteBuffer __this__attributes_copy_value = other_element_value;
28705
28706 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
28707 }
28708 this.attributes = __this__attributes;
28709 }
28710 }
28711
28712 public mutateRow_args deepCopy() {
28713 return new mutateRow_args(this);
28714 }
28715
28716 @Override
28717 public void clear() {
28718 this.tableName = null;
28719 this.row = null;
28720 this.mutations = null;
28721 this.attributes = null;
28722 }
28723
28724
28725
28726
28727 public byte[] getTableName() {
28728 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
28729 return tableName == null ? null : tableName.array();
28730 }
28731
28732 public ByteBuffer bufferForTableName() {
28733 return tableName;
28734 }
28735
28736
28737
28738
28739 public mutateRow_args setTableName(byte[] tableName) {
28740 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
28741 return this;
28742 }
28743
28744 public mutateRow_args setTableName(ByteBuffer tableName) {
28745 this.tableName = tableName;
28746 return this;
28747 }
28748
28749 public void unsetTableName() {
28750 this.tableName = null;
28751 }
28752
28753
28754 public boolean isSetTableName() {
28755 return this.tableName != null;
28756 }
28757
28758 public void setTableNameIsSet(boolean value) {
28759 if (!value) {
28760 this.tableName = null;
28761 }
28762 }
28763
28764
28765
28766
28767 public byte[] getRow() {
28768 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
28769 return row == null ? null : row.array();
28770 }
28771
28772 public ByteBuffer bufferForRow() {
28773 return row;
28774 }
28775
28776
28777
28778
28779 public mutateRow_args setRow(byte[] row) {
28780 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
28781 return this;
28782 }
28783
28784 public mutateRow_args setRow(ByteBuffer row) {
28785 this.row = row;
28786 return this;
28787 }
28788
28789 public void unsetRow() {
28790 this.row = null;
28791 }
28792
28793
28794 public boolean isSetRow() {
28795 return this.row != null;
28796 }
28797
28798 public void setRowIsSet(boolean value) {
28799 if (!value) {
28800 this.row = null;
28801 }
28802 }
28803
28804 public int getMutationsSize() {
28805 return (this.mutations == null) ? 0 : this.mutations.size();
28806 }
28807
28808 public java.util.Iterator<Mutation> getMutationsIterator() {
28809 return (this.mutations == null) ? null : this.mutations.iterator();
28810 }
28811
28812 public void addToMutations(Mutation elem) {
28813 if (this.mutations == null) {
28814 this.mutations = new ArrayList<Mutation>();
28815 }
28816 this.mutations.add(elem);
28817 }
28818
28819
28820
28821
28822 public List<Mutation> getMutations() {
28823 return this.mutations;
28824 }
28825
28826
28827
28828
28829 public mutateRow_args setMutations(List<Mutation> mutations) {
28830 this.mutations = mutations;
28831 return this;
28832 }
28833
28834 public void unsetMutations() {
28835 this.mutations = null;
28836 }
28837
28838
28839 public boolean isSetMutations() {
28840 return this.mutations != null;
28841 }
28842
28843 public void setMutationsIsSet(boolean value) {
28844 if (!value) {
28845 this.mutations = null;
28846 }
28847 }
28848
28849 public int getAttributesSize() {
28850 return (this.attributes == null) ? 0 : this.attributes.size();
28851 }
28852
28853 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
28854 if (this.attributes == null) {
28855 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
28856 }
28857 this.attributes.put(key, val);
28858 }
28859
28860
28861
28862
28863 public Map<ByteBuffer,ByteBuffer> getAttributes() {
28864 return this.attributes;
28865 }
28866
28867
28868
28869
28870 public mutateRow_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
28871 this.attributes = attributes;
28872 return this;
28873 }
28874
28875 public void unsetAttributes() {
28876 this.attributes = null;
28877 }
28878
28879
28880 public boolean isSetAttributes() {
28881 return this.attributes != null;
28882 }
28883
28884 public void setAttributesIsSet(boolean value) {
28885 if (!value) {
28886 this.attributes = null;
28887 }
28888 }
28889
28890 public void setFieldValue(_Fields field, Object value) {
28891 switch (field) {
28892 case TABLE_NAME:
28893 if (value == null) {
28894 unsetTableName();
28895 } else {
28896 setTableName((ByteBuffer)value);
28897 }
28898 break;
28899
28900 case ROW:
28901 if (value == null) {
28902 unsetRow();
28903 } else {
28904 setRow((ByteBuffer)value);
28905 }
28906 break;
28907
28908 case MUTATIONS:
28909 if (value == null) {
28910 unsetMutations();
28911 } else {
28912 setMutations((List<Mutation>)value);
28913 }
28914 break;
28915
28916 case ATTRIBUTES:
28917 if (value == null) {
28918 unsetAttributes();
28919 } else {
28920 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
28921 }
28922 break;
28923
28924 }
28925 }
28926
28927 public Object getFieldValue(_Fields field) {
28928 switch (field) {
28929 case TABLE_NAME:
28930 return getTableName();
28931
28932 case ROW:
28933 return getRow();
28934
28935 case MUTATIONS:
28936 return getMutations();
28937
28938 case ATTRIBUTES:
28939 return getAttributes();
28940
28941 }
28942 throw new IllegalStateException();
28943 }
28944
28945
28946 public boolean isSet(_Fields field) {
28947 if (field == null) {
28948 throw new IllegalArgumentException();
28949 }
28950
28951 switch (field) {
28952 case TABLE_NAME:
28953 return isSetTableName();
28954 case ROW:
28955 return isSetRow();
28956 case MUTATIONS:
28957 return isSetMutations();
28958 case ATTRIBUTES:
28959 return isSetAttributes();
28960 }
28961 throw new IllegalStateException();
28962 }
28963
28964 @Override
28965 public boolean equals(Object that) {
28966 if (that == null)
28967 return false;
28968 if (that instanceof mutateRow_args)
28969 return this.equals((mutateRow_args)that);
28970 return false;
28971 }
28972
28973 public boolean equals(mutateRow_args that) {
28974 if (that == null)
28975 return false;
28976
28977 boolean this_present_tableName = true && this.isSetTableName();
28978 boolean that_present_tableName = true && that.isSetTableName();
28979 if (this_present_tableName || that_present_tableName) {
28980 if (!(this_present_tableName && that_present_tableName))
28981 return false;
28982 if (!this.tableName.equals(that.tableName))
28983 return false;
28984 }
28985
28986 boolean this_present_row = true && this.isSetRow();
28987 boolean that_present_row = true && that.isSetRow();
28988 if (this_present_row || that_present_row) {
28989 if (!(this_present_row && that_present_row))
28990 return false;
28991 if (!this.row.equals(that.row))
28992 return false;
28993 }
28994
28995 boolean this_present_mutations = true && this.isSetMutations();
28996 boolean that_present_mutations = true && that.isSetMutations();
28997 if (this_present_mutations || that_present_mutations) {
28998 if (!(this_present_mutations && that_present_mutations))
28999 return false;
29000 if (!this.mutations.equals(that.mutations))
29001 return false;
29002 }
29003
29004 boolean this_present_attributes = true && this.isSetAttributes();
29005 boolean that_present_attributes = true && that.isSetAttributes();
29006 if (this_present_attributes || that_present_attributes) {
29007 if (!(this_present_attributes && that_present_attributes))
29008 return false;
29009 if (!this.attributes.equals(that.attributes))
29010 return false;
29011 }
29012
29013 return true;
29014 }
29015
29016 @Override
29017 public int hashCode() {
29018 HashCodeBuilder builder = new HashCodeBuilder();
29019
29020 boolean present_tableName = true && (isSetTableName());
29021 builder.append(present_tableName);
29022 if (present_tableName)
29023 builder.append(tableName);
29024
29025 boolean present_row = true && (isSetRow());
29026 builder.append(present_row);
29027 if (present_row)
29028 builder.append(row);
29029
29030 boolean present_mutations = true && (isSetMutations());
29031 builder.append(present_mutations);
29032 if (present_mutations)
29033 builder.append(mutations);
29034
29035 boolean present_attributes = true && (isSetAttributes());
29036 builder.append(present_attributes);
29037 if (present_attributes)
29038 builder.append(attributes);
29039
29040 return builder.toHashCode();
29041 }
29042
29043 public int compareTo(mutateRow_args other) {
29044 if (!getClass().equals(other.getClass())) {
29045 return getClass().getName().compareTo(other.getClass().getName());
29046 }
29047
29048 int lastComparison = 0;
29049 mutateRow_args typedOther = (mutateRow_args)other;
29050
29051 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
29052 if (lastComparison != 0) {
29053 return lastComparison;
29054 }
29055 if (isSetTableName()) {
29056 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
29057 if (lastComparison != 0) {
29058 return lastComparison;
29059 }
29060 }
29061 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
29062 if (lastComparison != 0) {
29063 return lastComparison;
29064 }
29065 if (isSetRow()) {
29066 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
29067 if (lastComparison != 0) {
29068 return lastComparison;
29069 }
29070 }
29071 lastComparison = Boolean.valueOf(isSetMutations()).compareTo(typedOther.isSetMutations());
29072 if (lastComparison != 0) {
29073 return lastComparison;
29074 }
29075 if (isSetMutations()) {
29076 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, typedOther.mutations);
29077 if (lastComparison != 0) {
29078 return lastComparison;
29079 }
29080 }
29081 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
29082 if (lastComparison != 0) {
29083 return lastComparison;
29084 }
29085 if (isSetAttributes()) {
29086 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
29087 if (lastComparison != 0) {
29088 return lastComparison;
29089 }
29090 }
29091 return 0;
29092 }
29093
29094 public _Fields fieldForId(int fieldId) {
29095 return _Fields.findByThriftId(fieldId);
29096 }
29097
29098 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29099 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
29100 }
29101
29102 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29103 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
29104 }
29105
29106 @Override
29107 public String toString() {
29108 StringBuilder sb = new StringBuilder("mutateRow_args(");
29109 boolean first = true;
29110
29111 sb.append("tableName:");
29112 if (this.tableName == null) {
29113 sb.append("null");
29114 } else {
29115 sb.append(this.tableName);
29116 }
29117 first = false;
29118 if (!first) sb.append(", ");
29119 sb.append("row:");
29120 if (this.row == null) {
29121 sb.append("null");
29122 } else {
29123 sb.append(this.row);
29124 }
29125 first = false;
29126 if (!first) sb.append(", ");
29127 sb.append("mutations:");
29128 if (this.mutations == null) {
29129 sb.append("null");
29130 } else {
29131 sb.append(this.mutations);
29132 }
29133 first = false;
29134 if (!first) sb.append(", ");
29135 sb.append("attributes:");
29136 if (this.attributes == null) {
29137 sb.append("null");
29138 } else {
29139 sb.append(this.attributes);
29140 }
29141 first = false;
29142 sb.append(")");
29143 return sb.toString();
29144 }
29145
29146 public void validate() throws org.apache.thrift.TException {
29147
29148
29149 }
29150
29151 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29152 try {
29153 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29154 } catch (org.apache.thrift.TException te) {
29155 throw new java.io.IOException(te);
29156 }
29157 }
29158
29159 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29160 try {
29161 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29162 } catch (org.apache.thrift.TException te) {
29163 throw new java.io.IOException(te);
29164 }
29165 }
29166
29167 private static class mutateRow_argsStandardSchemeFactory implements SchemeFactory {
29168 public mutateRow_argsStandardScheme getScheme() {
29169 return new mutateRow_argsStandardScheme();
29170 }
29171 }
29172
29173 private static class mutateRow_argsStandardScheme extends StandardScheme<mutateRow_args> {
29174
29175 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_args struct) throws org.apache.thrift.TException {
29176 org.apache.thrift.protocol.TField schemeField;
29177 iprot.readStructBegin();
29178 while (true)
29179 {
29180 schemeField = iprot.readFieldBegin();
29181 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
29182 break;
29183 }
29184 switch (schemeField.id) {
29185 case 1:
29186 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
29187 struct.tableName = iprot.readBinary();
29188 struct.setTableNameIsSet(true);
29189 } else {
29190 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29191 }
29192 break;
29193 case 2:
29194 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
29195 struct.row = iprot.readBinary();
29196 struct.setRowIsSet(true);
29197 } else {
29198 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29199 }
29200 break;
29201 case 3:
29202 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
29203 {
29204 org.apache.thrift.protocol.TList _list346 = iprot.readListBegin();
29205 struct.mutations = new ArrayList<Mutation>(_list346.size);
29206 for (int _i347 = 0; _i347 < _list346.size; ++_i347)
29207 {
29208 Mutation _elem348;
29209 _elem348 = new Mutation();
29210 _elem348.read(iprot);
29211 struct.mutations.add(_elem348);
29212 }
29213 iprot.readListEnd();
29214 }
29215 struct.setMutationsIsSet(true);
29216 } else {
29217 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29218 }
29219 break;
29220 case 4:
29221 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
29222 {
29223 org.apache.thrift.protocol.TMap _map349 = iprot.readMapBegin();
29224 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map349.size);
29225 for (int _i350 = 0; _i350 < _map349.size; ++_i350)
29226 {
29227 ByteBuffer _key351;
29228 ByteBuffer _val352;
29229 _key351 = iprot.readBinary();
29230 _val352 = iprot.readBinary();
29231 struct.attributes.put(_key351, _val352);
29232 }
29233 iprot.readMapEnd();
29234 }
29235 struct.setAttributesIsSet(true);
29236 } else {
29237 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29238 }
29239 break;
29240 default:
29241 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29242 }
29243 iprot.readFieldEnd();
29244 }
29245 iprot.readStructEnd();
29246
29247
29248 struct.validate();
29249 }
29250
29251 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_args struct) throws org.apache.thrift.TException {
29252 struct.validate();
29253
29254 oprot.writeStructBegin(STRUCT_DESC);
29255 if (struct.tableName != null) {
29256 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
29257 oprot.writeBinary(struct.tableName);
29258 oprot.writeFieldEnd();
29259 }
29260 if (struct.row != null) {
29261 oprot.writeFieldBegin(ROW_FIELD_DESC);
29262 oprot.writeBinary(struct.row);
29263 oprot.writeFieldEnd();
29264 }
29265 if (struct.mutations != null) {
29266 oprot.writeFieldBegin(MUTATIONS_FIELD_DESC);
29267 {
29268 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mutations.size()));
29269 for (Mutation _iter353 : struct.mutations)
29270 {
29271 _iter353.write(oprot);
29272 }
29273 oprot.writeListEnd();
29274 }
29275 oprot.writeFieldEnd();
29276 }
29277 if (struct.attributes != null) {
29278 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
29279 {
29280 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
29281 for (Map.Entry<ByteBuffer, ByteBuffer> _iter354 : struct.attributes.entrySet())
29282 {
29283 oprot.writeBinary(_iter354.getKey());
29284 oprot.writeBinary(_iter354.getValue());
29285 }
29286 oprot.writeMapEnd();
29287 }
29288 oprot.writeFieldEnd();
29289 }
29290 oprot.writeFieldStop();
29291 oprot.writeStructEnd();
29292 }
29293
29294 }
29295
29296 private static class mutateRow_argsTupleSchemeFactory implements SchemeFactory {
29297 public mutateRow_argsTupleScheme getScheme() {
29298 return new mutateRow_argsTupleScheme();
29299 }
29300 }
29301
29302 private static class mutateRow_argsTupleScheme extends TupleScheme<mutateRow_args> {
29303
29304 @Override
29305 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException {
29306 TTupleProtocol oprot = (TTupleProtocol) prot;
29307 BitSet optionals = new BitSet();
29308 if (struct.isSetTableName()) {
29309 optionals.set(0);
29310 }
29311 if (struct.isSetRow()) {
29312 optionals.set(1);
29313 }
29314 if (struct.isSetMutations()) {
29315 optionals.set(2);
29316 }
29317 if (struct.isSetAttributes()) {
29318 optionals.set(3);
29319 }
29320 oprot.writeBitSet(optionals, 4);
29321 if (struct.isSetTableName()) {
29322 oprot.writeBinary(struct.tableName);
29323 }
29324 if (struct.isSetRow()) {
29325 oprot.writeBinary(struct.row);
29326 }
29327 if (struct.isSetMutations()) {
29328 {
29329 oprot.writeI32(struct.mutations.size());
29330 for (Mutation _iter355 : struct.mutations)
29331 {
29332 _iter355.write(oprot);
29333 }
29334 }
29335 }
29336 if (struct.isSetAttributes()) {
29337 {
29338 oprot.writeI32(struct.attributes.size());
29339 for (Map.Entry<ByteBuffer, ByteBuffer> _iter356 : struct.attributes.entrySet())
29340 {
29341 oprot.writeBinary(_iter356.getKey());
29342 oprot.writeBinary(_iter356.getValue());
29343 }
29344 }
29345 }
29346 }
29347
29348 @Override
29349 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_args struct) throws org.apache.thrift.TException {
29350 TTupleProtocol iprot = (TTupleProtocol) prot;
29351 BitSet incoming = iprot.readBitSet(4);
29352 if (incoming.get(0)) {
29353 struct.tableName = iprot.readBinary();
29354 struct.setTableNameIsSet(true);
29355 }
29356 if (incoming.get(1)) {
29357 struct.row = iprot.readBinary();
29358 struct.setRowIsSet(true);
29359 }
29360 if (incoming.get(2)) {
29361 {
29362 org.apache.thrift.protocol.TList _list357 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
29363 struct.mutations = new ArrayList<Mutation>(_list357.size);
29364 for (int _i358 = 0; _i358 < _list357.size; ++_i358)
29365 {
29366 Mutation _elem359;
29367 _elem359 = new Mutation();
29368 _elem359.read(iprot);
29369 struct.mutations.add(_elem359);
29370 }
29371 }
29372 struct.setMutationsIsSet(true);
29373 }
29374 if (incoming.get(3)) {
29375 {
29376 org.apache.thrift.protocol.TMap _map360 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
29377 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map360.size);
29378 for (int _i361 = 0; _i361 < _map360.size; ++_i361)
29379 {
29380 ByteBuffer _key362;
29381 ByteBuffer _val363;
29382 _key362 = iprot.readBinary();
29383 _val363 = iprot.readBinary();
29384 struct.attributes.put(_key362, _val363);
29385 }
29386 }
29387 struct.setAttributesIsSet(true);
29388 }
29389 }
29390 }
29391
29392 }
29393
29394 public static class mutateRow_result implements org.apache.thrift.TBase<mutateRow_result, mutateRow_result._Fields>, java.io.Serializable, Cloneable {
29395 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRow_result");
29396
29397 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
29398 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
29399
29400 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
29401 static {
29402 schemes.put(StandardScheme.class, new mutateRow_resultStandardSchemeFactory());
29403 schemes.put(TupleScheme.class, new mutateRow_resultTupleSchemeFactory());
29404 }
29405
29406 public IOError io;
29407 public IllegalArgument ia;
29408
29409
29410 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29411 IO((short)1, "io"),
29412 IA((short)2, "ia");
29413
29414 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29415
29416 static {
29417 for (_Fields field : EnumSet.allOf(_Fields.class)) {
29418 byName.put(field.getFieldName(), field);
29419 }
29420 }
29421
29422
29423
29424
29425 public static _Fields findByThriftId(int fieldId) {
29426 switch(fieldId) {
29427 case 1:
29428 return IO;
29429 case 2:
29430 return IA;
29431 default:
29432 return null;
29433 }
29434 }
29435
29436
29437
29438
29439
29440 public static _Fields findByThriftIdOrThrow(int fieldId) {
29441 _Fields fields = findByThriftId(fieldId);
29442 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29443 return fields;
29444 }
29445
29446
29447
29448
29449 public static _Fields findByName(String name) {
29450 return byName.get(name);
29451 }
29452
29453 private final short _thriftId;
29454 private final String _fieldName;
29455
29456 _Fields(short thriftId, String fieldName) {
29457 _thriftId = thriftId;
29458 _fieldName = fieldName;
29459 }
29460
29461 public short getThriftFieldId() {
29462 return _thriftId;
29463 }
29464
29465 public String getFieldName() {
29466 return _fieldName;
29467 }
29468 }
29469
29470
29471 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29472 static {
29473 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29474 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
29475 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29476 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT,
29477 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29478 metaDataMap = Collections.unmodifiableMap(tmpMap);
29479 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRow_result.class, metaDataMap);
29480 }
29481
29482 public mutateRow_result() {
29483 }
29484
29485 public mutateRow_result(
29486 IOError io,
29487 IllegalArgument ia)
29488 {
29489 this();
29490 this.io = io;
29491 this.ia = ia;
29492 }
29493
29494
29495
29496
29497 public mutateRow_result(mutateRow_result other) {
29498 if (other.isSetIo()) {
29499 this.io = new IOError(other.io);
29500 }
29501 if (other.isSetIa()) {
29502 this.ia = new IllegalArgument(other.ia);
29503 }
29504 }
29505
29506 public mutateRow_result deepCopy() {
29507 return new mutateRow_result(this);
29508 }
29509
29510 @Override
29511 public void clear() {
29512 this.io = null;
29513 this.ia = null;
29514 }
29515
29516 public IOError getIo() {
29517 return this.io;
29518 }
29519
29520 public mutateRow_result setIo(IOError io) {
29521 this.io = io;
29522 return this;
29523 }
29524
29525 public void unsetIo() {
29526 this.io = null;
29527 }
29528
29529
29530 public boolean isSetIo() {
29531 return this.io != null;
29532 }
29533
29534 public void setIoIsSet(boolean value) {
29535 if (!value) {
29536 this.io = null;
29537 }
29538 }
29539
29540 public IllegalArgument getIa() {
29541 return this.ia;
29542 }
29543
29544 public mutateRow_result setIa(IllegalArgument ia) {
29545 this.ia = ia;
29546 return this;
29547 }
29548
29549 public void unsetIa() {
29550 this.ia = null;
29551 }
29552
29553
29554 public boolean isSetIa() {
29555 return this.ia != null;
29556 }
29557
29558 public void setIaIsSet(boolean value) {
29559 if (!value) {
29560 this.ia = null;
29561 }
29562 }
29563
29564 public void setFieldValue(_Fields field, Object value) {
29565 switch (field) {
29566 case IO:
29567 if (value == null) {
29568 unsetIo();
29569 } else {
29570 setIo((IOError)value);
29571 }
29572 break;
29573
29574 case IA:
29575 if (value == null) {
29576 unsetIa();
29577 } else {
29578 setIa((IllegalArgument)value);
29579 }
29580 break;
29581
29582 }
29583 }
29584
29585 public Object getFieldValue(_Fields field) {
29586 switch (field) {
29587 case IO:
29588 return getIo();
29589
29590 case IA:
29591 return getIa();
29592
29593 }
29594 throw new IllegalStateException();
29595 }
29596
29597
29598 public boolean isSet(_Fields field) {
29599 if (field == null) {
29600 throw new IllegalArgumentException();
29601 }
29602
29603 switch (field) {
29604 case IO:
29605 return isSetIo();
29606 case IA:
29607 return isSetIa();
29608 }
29609 throw new IllegalStateException();
29610 }
29611
29612 @Override
29613 public boolean equals(Object that) {
29614 if (that == null)
29615 return false;
29616 if (that instanceof mutateRow_result)
29617 return this.equals((mutateRow_result)that);
29618 return false;
29619 }
29620
29621 public boolean equals(mutateRow_result that) {
29622 if (that == null)
29623 return false;
29624
29625 boolean this_present_io = true && this.isSetIo();
29626 boolean that_present_io = true && that.isSetIo();
29627 if (this_present_io || that_present_io) {
29628 if (!(this_present_io && that_present_io))
29629 return false;
29630 if (!this.io.equals(that.io))
29631 return false;
29632 }
29633
29634 boolean this_present_ia = true && this.isSetIa();
29635 boolean that_present_ia = true && that.isSetIa();
29636 if (this_present_ia || that_present_ia) {
29637 if (!(this_present_ia && that_present_ia))
29638 return false;
29639 if (!this.ia.equals(that.ia))
29640 return false;
29641 }
29642
29643 return true;
29644 }
29645
29646 @Override
29647 public int hashCode() {
29648 HashCodeBuilder builder = new HashCodeBuilder();
29649
29650 boolean present_io = true && (isSetIo());
29651 builder.append(present_io);
29652 if (present_io)
29653 builder.append(io);
29654
29655 boolean present_ia = true && (isSetIa());
29656 builder.append(present_ia);
29657 if (present_ia)
29658 builder.append(ia);
29659
29660 return builder.toHashCode();
29661 }
29662
29663 public int compareTo(mutateRow_result other) {
29664 if (!getClass().equals(other.getClass())) {
29665 return getClass().getName().compareTo(other.getClass().getName());
29666 }
29667
29668 int lastComparison = 0;
29669 mutateRow_result typedOther = (mutateRow_result)other;
29670
29671 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
29672 if (lastComparison != 0) {
29673 return lastComparison;
29674 }
29675 if (isSetIo()) {
29676 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
29677 if (lastComparison != 0) {
29678 return lastComparison;
29679 }
29680 }
29681 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
29682 if (lastComparison != 0) {
29683 return lastComparison;
29684 }
29685 if (isSetIa()) {
29686 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
29687 if (lastComparison != 0) {
29688 return lastComparison;
29689 }
29690 }
29691 return 0;
29692 }
29693
29694 public _Fields fieldForId(int fieldId) {
29695 return _Fields.findByThriftId(fieldId);
29696 }
29697
29698 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29699 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
29700 }
29701
29702 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29703 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
29704 }
29705
29706 @Override
29707 public String toString() {
29708 StringBuilder sb = new StringBuilder("mutateRow_result(");
29709 boolean first = true;
29710
29711 sb.append("io:");
29712 if (this.io == null) {
29713 sb.append("null");
29714 } else {
29715 sb.append(this.io);
29716 }
29717 first = false;
29718 if (!first) sb.append(", ");
29719 sb.append("ia:");
29720 if (this.ia == null) {
29721 sb.append("null");
29722 } else {
29723 sb.append(this.ia);
29724 }
29725 first = false;
29726 sb.append(")");
29727 return sb.toString();
29728 }
29729
29730 public void validate() throws org.apache.thrift.TException {
29731
29732
29733 }
29734
29735 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29736 try {
29737 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29738 } catch (org.apache.thrift.TException te) {
29739 throw new java.io.IOException(te);
29740 }
29741 }
29742
29743 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29744 try {
29745 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29746 } catch (org.apache.thrift.TException te) {
29747 throw new java.io.IOException(te);
29748 }
29749 }
29750
29751 private static class mutateRow_resultStandardSchemeFactory implements SchemeFactory {
29752 public mutateRow_resultStandardScheme getScheme() {
29753 return new mutateRow_resultStandardScheme();
29754 }
29755 }
29756
29757 private static class mutateRow_resultStandardScheme extends StandardScheme<mutateRow_result> {
29758
29759 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRow_result struct) throws org.apache.thrift.TException {
29760 org.apache.thrift.protocol.TField schemeField;
29761 iprot.readStructBegin();
29762 while (true)
29763 {
29764 schemeField = iprot.readFieldBegin();
29765 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
29766 break;
29767 }
29768 switch (schemeField.id) {
29769 case 1:
29770 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29771 struct.io = new IOError();
29772 struct.io.read(iprot);
29773 struct.setIoIsSet(true);
29774 } else {
29775 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29776 }
29777 break;
29778 case 2:
29779 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
29780 struct.ia = new IllegalArgument();
29781 struct.ia.read(iprot);
29782 struct.setIaIsSet(true);
29783 } else {
29784 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29785 }
29786 break;
29787 default:
29788 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
29789 }
29790 iprot.readFieldEnd();
29791 }
29792 iprot.readStructEnd();
29793
29794
29795 struct.validate();
29796 }
29797
29798 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRow_result struct) throws org.apache.thrift.TException {
29799 struct.validate();
29800
29801 oprot.writeStructBegin(STRUCT_DESC);
29802 if (struct.io != null) {
29803 oprot.writeFieldBegin(IO_FIELD_DESC);
29804 struct.io.write(oprot);
29805 oprot.writeFieldEnd();
29806 }
29807 if (struct.ia != null) {
29808 oprot.writeFieldBegin(IA_FIELD_DESC);
29809 struct.ia.write(oprot);
29810 oprot.writeFieldEnd();
29811 }
29812 oprot.writeFieldStop();
29813 oprot.writeStructEnd();
29814 }
29815
29816 }
29817
29818 private static class mutateRow_resultTupleSchemeFactory implements SchemeFactory {
29819 public mutateRow_resultTupleScheme getScheme() {
29820 return new mutateRow_resultTupleScheme();
29821 }
29822 }
29823
29824 private static class mutateRow_resultTupleScheme extends TupleScheme<mutateRow_result> {
29825
29826 @Override
29827 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException {
29828 TTupleProtocol oprot = (TTupleProtocol) prot;
29829 BitSet optionals = new BitSet();
29830 if (struct.isSetIo()) {
29831 optionals.set(0);
29832 }
29833 if (struct.isSetIa()) {
29834 optionals.set(1);
29835 }
29836 oprot.writeBitSet(optionals, 2);
29837 if (struct.isSetIo()) {
29838 struct.io.write(oprot);
29839 }
29840 if (struct.isSetIa()) {
29841 struct.ia.write(oprot);
29842 }
29843 }
29844
29845 @Override
29846 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRow_result struct) throws org.apache.thrift.TException {
29847 TTupleProtocol iprot = (TTupleProtocol) prot;
29848 BitSet incoming = iprot.readBitSet(2);
29849 if (incoming.get(0)) {
29850 struct.io = new IOError();
29851 struct.io.read(iprot);
29852 struct.setIoIsSet(true);
29853 }
29854 if (incoming.get(1)) {
29855 struct.ia = new IllegalArgument();
29856 struct.ia.read(iprot);
29857 struct.setIaIsSet(true);
29858 }
29859 }
29860 }
29861
29862 }
29863
29864 public static class mutateRowTs_args implements org.apache.thrift.TBase<mutateRowTs_args, mutateRowTs_args._Fields>, java.io.Serializable, Cloneable {
29865 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowTs_args");
29866
29867 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
29868 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
29869 private static final org.apache.thrift.protocol.TField MUTATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("mutations", org.apache.thrift.protocol.TType.LIST, (short)3);
29870 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
29871 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
29872
29873 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
29874 static {
29875 schemes.put(StandardScheme.class, new mutateRowTs_argsStandardSchemeFactory());
29876 schemes.put(TupleScheme.class, new mutateRowTs_argsTupleSchemeFactory());
29877 }
29878
29879
29880
29881
29882 public ByteBuffer tableName;
29883
29884
29885
29886 public ByteBuffer row;
29887
29888
29889
29890 public List<Mutation> mutations;
29891
29892
29893
29894 public long timestamp;
29895
29896
29897
29898 public Map<ByteBuffer,ByteBuffer> attributes;
29899
29900
29901 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29902
29903
29904
29905 TABLE_NAME((short)1, "tableName"),
29906
29907
29908
29909 ROW((short)2, "row"),
29910
29911
29912
29913 MUTATIONS((short)3, "mutations"),
29914
29915
29916
29917 TIMESTAMP((short)4, "timestamp"),
29918
29919
29920
29921 ATTRIBUTES((short)5, "attributes");
29922
29923 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29924
29925 static {
29926 for (_Fields field : EnumSet.allOf(_Fields.class)) {
29927 byName.put(field.getFieldName(), field);
29928 }
29929 }
29930
29931
29932
29933
29934 public static _Fields findByThriftId(int fieldId) {
29935 switch(fieldId) {
29936 case 1:
29937 return TABLE_NAME;
29938 case 2:
29939 return ROW;
29940 case 3:
29941 return MUTATIONS;
29942 case 4:
29943 return TIMESTAMP;
29944 case 5:
29945 return ATTRIBUTES;
29946 default:
29947 return null;
29948 }
29949 }
29950
29951
29952
29953
29954
29955 public static _Fields findByThriftIdOrThrow(int fieldId) {
29956 _Fields fields = findByThriftId(fieldId);
29957 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29958 return fields;
29959 }
29960
29961
29962
29963
29964 public static _Fields findByName(String name) {
29965 return byName.get(name);
29966 }
29967
29968 private final short _thriftId;
29969 private final String _fieldName;
29970
29971 _Fields(short thriftId, String fieldName) {
29972 _thriftId = thriftId;
29973 _fieldName = fieldName;
29974 }
29975
29976 public short getThriftFieldId() {
29977 return _thriftId;
29978 }
29979
29980 public String getFieldName() {
29981 return _fieldName;
29982 }
29983 }
29984
29985
29986 private static final int __TIMESTAMP_ISSET_ID = 0;
29987 private byte __isset_bitfield = 0;
29988 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29989 static {
29990 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29991 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
29992 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
29993 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
29994 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
29995 tmpMap.put(_Fields.MUTATIONS, new org.apache.thrift.meta_data.FieldMetaData("mutations", org.apache.thrift.TFieldRequirementType.DEFAULT,
29996 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
29997 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mutation.class))));
29998 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
29999 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30000 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
30001 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
30002 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
30003 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
30004 metaDataMap = Collections.unmodifiableMap(tmpMap);
30005 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowTs_args.class, metaDataMap);
30006 }
30007
30008 public mutateRowTs_args() {
30009 }
30010
30011 public mutateRowTs_args(
30012 ByteBuffer tableName,
30013 ByteBuffer row,
30014 List<Mutation> mutations,
30015 long timestamp,
30016 Map<ByteBuffer,ByteBuffer> attributes)
30017 {
30018 this();
30019 this.tableName = tableName;
30020 this.row = row;
30021 this.mutations = mutations;
30022 this.timestamp = timestamp;
30023 setTimestampIsSet(true);
30024 this.attributes = attributes;
30025 }
30026
30027
30028
30029
30030 public mutateRowTs_args(mutateRowTs_args other) {
30031 __isset_bitfield = other.__isset_bitfield;
30032 if (other.isSetTableName()) {
30033 this.tableName = other.tableName;
30034 }
30035 if (other.isSetRow()) {
30036 this.row = other.row;
30037 }
30038 if (other.isSetMutations()) {
30039 List<Mutation> __this__mutations = new ArrayList<Mutation>();
30040 for (Mutation other_element : other.mutations) {
30041 __this__mutations.add(new Mutation(other_element));
30042 }
30043 this.mutations = __this__mutations;
30044 }
30045 this.timestamp = other.timestamp;
30046 if (other.isSetAttributes()) {
30047 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
30048 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
30049
30050 ByteBuffer other_element_key = other_element.getKey();
30051 ByteBuffer other_element_value = other_element.getValue();
30052
30053 ByteBuffer __this__attributes_copy_key = other_element_key;
30054
30055 ByteBuffer __this__attributes_copy_value = other_element_value;
30056
30057 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
30058 }
30059 this.attributes = __this__attributes;
30060 }
30061 }
30062
30063 public mutateRowTs_args deepCopy() {
30064 return new mutateRowTs_args(this);
30065 }
30066
30067 @Override
30068 public void clear() {
30069 this.tableName = null;
30070 this.row = null;
30071 this.mutations = null;
30072 setTimestampIsSet(false);
30073 this.timestamp = 0;
30074 this.attributes = null;
30075 }
30076
30077
30078
30079
30080 public byte[] getTableName() {
30081 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
30082 return tableName == null ? null : tableName.array();
30083 }
30084
30085 public ByteBuffer bufferForTableName() {
30086 return tableName;
30087 }
30088
30089
30090
30091
30092 public mutateRowTs_args setTableName(byte[] tableName) {
30093 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
30094 return this;
30095 }
30096
30097 public mutateRowTs_args setTableName(ByteBuffer tableName) {
30098 this.tableName = tableName;
30099 return this;
30100 }
30101
30102 public void unsetTableName() {
30103 this.tableName = null;
30104 }
30105
30106
30107 public boolean isSetTableName() {
30108 return this.tableName != null;
30109 }
30110
30111 public void setTableNameIsSet(boolean value) {
30112 if (!value) {
30113 this.tableName = null;
30114 }
30115 }
30116
30117
30118
30119
30120 public byte[] getRow() {
30121 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
30122 return row == null ? null : row.array();
30123 }
30124
30125 public ByteBuffer bufferForRow() {
30126 return row;
30127 }
30128
30129
30130
30131
30132 public mutateRowTs_args setRow(byte[] row) {
30133 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
30134 return this;
30135 }
30136
30137 public mutateRowTs_args setRow(ByteBuffer row) {
30138 this.row = row;
30139 return this;
30140 }
30141
30142 public void unsetRow() {
30143 this.row = null;
30144 }
30145
30146
30147 public boolean isSetRow() {
30148 return this.row != null;
30149 }
30150
30151 public void setRowIsSet(boolean value) {
30152 if (!value) {
30153 this.row = null;
30154 }
30155 }
30156
30157 public int getMutationsSize() {
30158 return (this.mutations == null) ? 0 : this.mutations.size();
30159 }
30160
30161 public java.util.Iterator<Mutation> getMutationsIterator() {
30162 return (this.mutations == null) ? null : this.mutations.iterator();
30163 }
30164
30165 public void addToMutations(Mutation elem) {
30166 if (this.mutations == null) {
30167 this.mutations = new ArrayList<Mutation>();
30168 }
30169 this.mutations.add(elem);
30170 }
30171
30172
30173
30174
30175 public List<Mutation> getMutations() {
30176 return this.mutations;
30177 }
30178
30179
30180
30181
30182 public mutateRowTs_args setMutations(List<Mutation> mutations) {
30183 this.mutations = mutations;
30184 return this;
30185 }
30186
30187 public void unsetMutations() {
30188 this.mutations = null;
30189 }
30190
30191
30192 public boolean isSetMutations() {
30193 return this.mutations != null;
30194 }
30195
30196 public void setMutationsIsSet(boolean value) {
30197 if (!value) {
30198 this.mutations = null;
30199 }
30200 }
30201
30202
30203
30204
30205 public long getTimestamp() {
30206 return this.timestamp;
30207 }
30208
30209
30210
30211
30212 public mutateRowTs_args setTimestamp(long timestamp) {
30213 this.timestamp = timestamp;
30214 setTimestampIsSet(true);
30215 return this;
30216 }
30217
30218 public void unsetTimestamp() {
30219 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
30220 }
30221
30222
30223 public boolean isSetTimestamp() {
30224 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
30225 }
30226
30227 public void setTimestampIsSet(boolean value) {
30228 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
30229 }
30230
30231 public int getAttributesSize() {
30232 return (this.attributes == null) ? 0 : this.attributes.size();
30233 }
30234
30235 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
30236 if (this.attributes == null) {
30237 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
30238 }
30239 this.attributes.put(key, val);
30240 }
30241
30242
30243
30244
30245 public Map<ByteBuffer,ByteBuffer> getAttributes() {
30246 return this.attributes;
30247 }
30248
30249
30250
30251
30252 public mutateRowTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
30253 this.attributes = attributes;
30254 return this;
30255 }
30256
30257 public void unsetAttributes() {
30258 this.attributes = null;
30259 }
30260
30261
30262 public boolean isSetAttributes() {
30263 return this.attributes != null;
30264 }
30265
30266 public void setAttributesIsSet(boolean value) {
30267 if (!value) {
30268 this.attributes = null;
30269 }
30270 }
30271
30272 public void setFieldValue(_Fields field, Object value) {
30273 switch (field) {
30274 case TABLE_NAME:
30275 if (value == null) {
30276 unsetTableName();
30277 } else {
30278 setTableName((ByteBuffer)value);
30279 }
30280 break;
30281
30282 case ROW:
30283 if (value == null) {
30284 unsetRow();
30285 } else {
30286 setRow((ByteBuffer)value);
30287 }
30288 break;
30289
30290 case MUTATIONS:
30291 if (value == null) {
30292 unsetMutations();
30293 } else {
30294 setMutations((List<Mutation>)value);
30295 }
30296 break;
30297
30298 case TIMESTAMP:
30299 if (value == null) {
30300 unsetTimestamp();
30301 } else {
30302 setTimestamp((Long)value);
30303 }
30304 break;
30305
30306 case ATTRIBUTES:
30307 if (value == null) {
30308 unsetAttributes();
30309 } else {
30310 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
30311 }
30312 break;
30313
30314 }
30315 }
30316
30317 public Object getFieldValue(_Fields field) {
30318 switch (field) {
30319 case TABLE_NAME:
30320 return getTableName();
30321
30322 case ROW:
30323 return getRow();
30324
30325 case MUTATIONS:
30326 return getMutations();
30327
30328 case TIMESTAMP:
30329 return Long.valueOf(getTimestamp());
30330
30331 case ATTRIBUTES:
30332 return getAttributes();
30333
30334 }
30335 throw new IllegalStateException();
30336 }
30337
30338
30339 public boolean isSet(_Fields field) {
30340 if (field == null) {
30341 throw new IllegalArgumentException();
30342 }
30343
30344 switch (field) {
30345 case TABLE_NAME:
30346 return isSetTableName();
30347 case ROW:
30348 return isSetRow();
30349 case MUTATIONS:
30350 return isSetMutations();
30351 case TIMESTAMP:
30352 return isSetTimestamp();
30353 case ATTRIBUTES:
30354 return isSetAttributes();
30355 }
30356 throw new IllegalStateException();
30357 }
30358
30359 @Override
30360 public boolean equals(Object that) {
30361 if (that == null)
30362 return false;
30363 if (that instanceof mutateRowTs_args)
30364 return this.equals((mutateRowTs_args)that);
30365 return false;
30366 }
30367
30368 public boolean equals(mutateRowTs_args that) {
30369 if (that == null)
30370 return false;
30371
30372 boolean this_present_tableName = true && this.isSetTableName();
30373 boolean that_present_tableName = true && that.isSetTableName();
30374 if (this_present_tableName || that_present_tableName) {
30375 if (!(this_present_tableName && that_present_tableName))
30376 return false;
30377 if (!this.tableName.equals(that.tableName))
30378 return false;
30379 }
30380
30381 boolean this_present_row = true && this.isSetRow();
30382 boolean that_present_row = true && that.isSetRow();
30383 if (this_present_row || that_present_row) {
30384 if (!(this_present_row && that_present_row))
30385 return false;
30386 if (!this.row.equals(that.row))
30387 return false;
30388 }
30389
30390 boolean this_present_mutations = true && this.isSetMutations();
30391 boolean that_present_mutations = true && that.isSetMutations();
30392 if (this_present_mutations || that_present_mutations) {
30393 if (!(this_present_mutations && that_present_mutations))
30394 return false;
30395 if (!this.mutations.equals(that.mutations))
30396 return false;
30397 }
30398
30399 boolean this_present_timestamp = true;
30400 boolean that_present_timestamp = true;
30401 if (this_present_timestamp || that_present_timestamp) {
30402 if (!(this_present_timestamp && that_present_timestamp))
30403 return false;
30404 if (this.timestamp != that.timestamp)
30405 return false;
30406 }
30407
30408 boolean this_present_attributes = true && this.isSetAttributes();
30409 boolean that_present_attributes = true && that.isSetAttributes();
30410 if (this_present_attributes || that_present_attributes) {
30411 if (!(this_present_attributes && that_present_attributes))
30412 return false;
30413 if (!this.attributes.equals(that.attributes))
30414 return false;
30415 }
30416
30417 return true;
30418 }
30419
30420 @Override
30421 public int hashCode() {
30422 HashCodeBuilder builder = new HashCodeBuilder();
30423
30424 boolean present_tableName = true && (isSetTableName());
30425 builder.append(present_tableName);
30426 if (present_tableName)
30427 builder.append(tableName);
30428
30429 boolean present_row = true && (isSetRow());
30430 builder.append(present_row);
30431 if (present_row)
30432 builder.append(row);
30433
30434 boolean present_mutations = true && (isSetMutations());
30435 builder.append(present_mutations);
30436 if (present_mutations)
30437 builder.append(mutations);
30438
30439 boolean present_timestamp = true;
30440 builder.append(present_timestamp);
30441 if (present_timestamp)
30442 builder.append(timestamp);
30443
30444 boolean present_attributes = true && (isSetAttributes());
30445 builder.append(present_attributes);
30446 if (present_attributes)
30447 builder.append(attributes);
30448
30449 return builder.toHashCode();
30450 }
30451
30452 public int compareTo(mutateRowTs_args other) {
30453 if (!getClass().equals(other.getClass())) {
30454 return getClass().getName().compareTo(other.getClass().getName());
30455 }
30456
30457 int lastComparison = 0;
30458 mutateRowTs_args typedOther = (mutateRowTs_args)other;
30459
30460 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
30461 if (lastComparison != 0) {
30462 return lastComparison;
30463 }
30464 if (isSetTableName()) {
30465 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
30466 if (lastComparison != 0) {
30467 return lastComparison;
30468 }
30469 }
30470 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
30471 if (lastComparison != 0) {
30472 return lastComparison;
30473 }
30474 if (isSetRow()) {
30475 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
30476 if (lastComparison != 0) {
30477 return lastComparison;
30478 }
30479 }
30480 lastComparison = Boolean.valueOf(isSetMutations()).compareTo(typedOther.isSetMutations());
30481 if (lastComparison != 0) {
30482 return lastComparison;
30483 }
30484 if (isSetMutations()) {
30485 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mutations, typedOther.mutations);
30486 if (lastComparison != 0) {
30487 return lastComparison;
30488 }
30489 }
30490 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
30491 if (lastComparison != 0) {
30492 return lastComparison;
30493 }
30494 if (isSetTimestamp()) {
30495 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
30496 if (lastComparison != 0) {
30497 return lastComparison;
30498 }
30499 }
30500 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
30501 if (lastComparison != 0) {
30502 return lastComparison;
30503 }
30504 if (isSetAttributes()) {
30505 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
30506 if (lastComparison != 0) {
30507 return lastComparison;
30508 }
30509 }
30510 return 0;
30511 }
30512
30513 public _Fields fieldForId(int fieldId) {
30514 return _Fields.findByThriftId(fieldId);
30515 }
30516
30517 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30518 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
30519 }
30520
30521 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30522 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
30523 }
30524
30525 @Override
30526 public String toString() {
30527 StringBuilder sb = new StringBuilder("mutateRowTs_args(");
30528 boolean first = true;
30529
30530 sb.append("tableName:");
30531 if (this.tableName == null) {
30532 sb.append("null");
30533 } else {
30534 sb.append(this.tableName);
30535 }
30536 first = false;
30537 if (!first) sb.append(", ");
30538 sb.append("row:");
30539 if (this.row == null) {
30540 sb.append("null");
30541 } else {
30542 sb.append(this.row);
30543 }
30544 first = false;
30545 if (!first) sb.append(", ");
30546 sb.append("mutations:");
30547 if (this.mutations == null) {
30548 sb.append("null");
30549 } else {
30550 sb.append(this.mutations);
30551 }
30552 first = false;
30553 if (!first) sb.append(", ");
30554 sb.append("timestamp:");
30555 sb.append(this.timestamp);
30556 first = false;
30557 if (!first) sb.append(", ");
30558 sb.append("attributes:");
30559 if (this.attributes == null) {
30560 sb.append("null");
30561 } else {
30562 sb.append(this.attributes);
30563 }
30564 first = false;
30565 sb.append(")");
30566 return sb.toString();
30567 }
30568
30569 public void validate() throws org.apache.thrift.TException {
30570
30571
30572 }
30573
30574 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30575 try {
30576 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30577 } catch (org.apache.thrift.TException te) {
30578 throw new java.io.IOException(te);
30579 }
30580 }
30581
30582 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30583 try {
30584
30585 __isset_bitfield = 0;
30586 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30587 } catch (org.apache.thrift.TException te) {
30588 throw new java.io.IOException(te);
30589 }
30590 }
30591
30592 private static class mutateRowTs_argsStandardSchemeFactory implements SchemeFactory {
30593 public mutateRowTs_argsStandardScheme getScheme() {
30594 return new mutateRowTs_argsStandardScheme();
30595 }
30596 }
30597
30598 private static class mutateRowTs_argsStandardScheme extends StandardScheme<mutateRowTs_args> {
30599
30600 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowTs_args struct) throws org.apache.thrift.TException {
30601 org.apache.thrift.protocol.TField schemeField;
30602 iprot.readStructBegin();
30603 while (true)
30604 {
30605 schemeField = iprot.readFieldBegin();
30606 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
30607 break;
30608 }
30609 switch (schemeField.id) {
30610 case 1:
30611 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
30612 struct.tableName = iprot.readBinary();
30613 struct.setTableNameIsSet(true);
30614 } else {
30615 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30616 }
30617 break;
30618 case 2:
30619 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
30620 struct.row = iprot.readBinary();
30621 struct.setRowIsSet(true);
30622 } else {
30623 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30624 }
30625 break;
30626 case 3:
30627 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
30628 {
30629 org.apache.thrift.protocol.TList _list364 = iprot.readListBegin();
30630 struct.mutations = new ArrayList<Mutation>(_list364.size);
30631 for (int _i365 = 0; _i365 < _list364.size; ++_i365)
30632 {
30633 Mutation _elem366;
30634 _elem366 = new Mutation();
30635 _elem366.read(iprot);
30636 struct.mutations.add(_elem366);
30637 }
30638 iprot.readListEnd();
30639 }
30640 struct.setMutationsIsSet(true);
30641 } else {
30642 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30643 }
30644 break;
30645 case 4:
30646 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
30647 struct.timestamp = iprot.readI64();
30648 struct.setTimestampIsSet(true);
30649 } else {
30650 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30651 }
30652 break;
30653 case 5:
30654 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
30655 {
30656 org.apache.thrift.protocol.TMap _map367 = iprot.readMapBegin();
30657 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map367.size);
30658 for (int _i368 = 0; _i368 < _map367.size; ++_i368)
30659 {
30660 ByteBuffer _key369;
30661 ByteBuffer _val370;
30662 _key369 = iprot.readBinary();
30663 _val370 = iprot.readBinary();
30664 struct.attributes.put(_key369, _val370);
30665 }
30666 iprot.readMapEnd();
30667 }
30668 struct.setAttributesIsSet(true);
30669 } else {
30670 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30671 }
30672 break;
30673 default:
30674 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
30675 }
30676 iprot.readFieldEnd();
30677 }
30678 iprot.readStructEnd();
30679
30680
30681 struct.validate();
30682 }
30683
30684 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowTs_args struct) throws org.apache.thrift.TException {
30685 struct.validate();
30686
30687 oprot.writeStructBegin(STRUCT_DESC);
30688 if (struct.tableName != null) {
30689 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
30690 oprot.writeBinary(struct.tableName);
30691 oprot.writeFieldEnd();
30692 }
30693 if (struct.row != null) {
30694 oprot.writeFieldBegin(ROW_FIELD_DESC);
30695 oprot.writeBinary(struct.row);
30696 oprot.writeFieldEnd();
30697 }
30698 if (struct.mutations != null) {
30699 oprot.writeFieldBegin(MUTATIONS_FIELD_DESC);
30700 {
30701 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.mutations.size()));
30702 for (Mutation _iter371 : struct.mutations)
30703 {
30704 _iter371.write(oprot);
30705 }
30706 oprot.writeListEnd();
30707 }
30708 oprot.writeFieldEnd();
30709 }
30710 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
30711 oprot.writeI64(struct.timestamp);
30712 oprot.writeFieldEnd();
30713 if (struct.attributes != null) {
30714 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
30715 {
30716 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
30717 for (Map.Entry<ByteBuffer, ByteBuffer> _iter372 : struct.attributes.entrySet())
30718 {
30719 oprot.writeBinary(_iter372.getKey());
30720 oprot.writeBinary(_iter372.getValue());
30721 }
30722 oprot.writeMapEnd();
30723 }
30724 oprot.writeFieldEnd();
30725 }
30726 oprot.writeFieldStop();
30727 oprot.writeStructEnd();
30728 }
30729
30730 }
30731
30732 private static class mutateRowTs_argsTupleSchemeFactory implements SchemeFactory {
30733 public mutateRowTs_argsTupleScheme getScheme() {
30734 return new mutateRowTs_argsTupleScheme();
30735 }
30736 }
30737
30738 private static class mutateRowTs_argsTupleScheme extends TupleScheme<mutateRowTs_args> {
30739
30740 @Override
30741 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_args struct) throws org.apache.thrift.TException {
30742 TTupleProtocol oprot = (TTupleProtocol) prot;
30743 BitSet optionals = new BitSet();
30744 if (struct.isSetTableName()) {
30745 optionals.set(0);
30746 }
30747 if (struct.isSetRow()) {
30748 optionals.set(1);
30749 }
30750 if (struct.isSetMutations()) {
30751 optionals.set(2);
30752 }
30753 if (struct.isSetTimestamp()) {
30754 optionals.set(3);
30755 }
30756 if (struct.isSetAttributes()) {
30757 optionals.set(4);
30758 }
30759 oprot.writeBitSet(optionals, 5);
30760 if (struct.isSetTableName()) {
30761 oprot.writeBinary(struct.tableName);
30762 }
30763 if (struct.isSetRow()) {
30764 oprot.writeBinary(struct.row);
30765 }
30766 if (struct.isSetMutations()) {
30767 {
30768 oprot.writeI32(struct.mutations.size());
30769 for (Mutation _iter373 : struct.mutations)
30770 {
30771 _iter373.write(oprot);
30772 }
30773 }
30774 }
30775 if (struct.isSetTimestamp()) {
30776 oprot.writeI64(struct.timestamp);
30777 }
30778 if (struct.isSetAttributes()) {
30779 {
30780 oprot.writeI32(struct.attributes.size());
30781 for (Map.Entry<ByteBuffer, ByteBuffer> _iter374 : struct.attributes.entrySet())
30782 {
30783 oprot.writeBinary(_iter374.getKey());
30784 oprot.writeBinary(_iter374.getValue());
30785 }
30786 }
30787 }
30788 }
30789
30790 @Override
30791 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_args struct) throws org.apache.thrift.TException {
30792 TTupleProtocol iprot = (TTupleProtocol) prot;
30793 BitSet incoming = iprot.readBitSet(5);
30794 if (incoming.get(0)) {
30795 struct.tableName = iprot.readBinary();
30796 struct.setTableNameIsSet(true);
30797 }
30798 if (incoming.get(1)) {
30799 struct.row = iprot.readBinary();
30800 struct.setRowIsSet(true);
30801 }
30802 if (incoming.get(2)) {
30803 {
30804 org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
30805 struct.mutations = new ArrayList<Mutation>(_list375.size);
30806 for (int _i376 = 0; _i376 < _list375.size; ++_i376)
30807 {
30808 Mutation _elem377;
30809 _elem377 = new Mutation();
30810 _elem377.read(iprot);
30811 struct.mutations.add(_elem377);
30812 }
30813 }
30814 struct.setMutationsIsSet(true);
30815 }
30816 if (incoming.get(3)) {
30817 struct.timestamp = iprot.readI64();
30818 struct.setTimestampIsSet(true);
30819 }
30820 if (incoming.get(4)) {
30821 {
30822 org.apache.thrift.protocol.TMap _map378 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
30823 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map378.size);
30824 for (int _i379 = 0; _i379 < _map378.size; ++_i379)
30825 {
30826 ByteBuffer _key380;
30827 ByteBuffer _val381;
30828 _key380 = iprot.readBinary();
30829 _val381 = iprot.readBinary();
30830 struct.attributes.put(_key380, _val381);
30831 }
30832 }
30833 struct.setAttributesIsSet(true);
30834 }
30835 }
30836 }
30837
30838 }
30839
30840 public static class mutateRowTs_result implements org.apache.thrift.TBase<mutateRowTs_result, mutateRowTs_result._Fields>, java.io.Serializable, Cloneable {
30841 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowTs_result");
30842
30843 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
30844 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
30845
30846 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
30847 static {
30848 schemes.put(StandardScheme.class, new mutateRowTs_resultStandardSchemeFactory());
30849 schemes.put(TupleScheme.class, new mutateRowTs_resultTupleSchemeFactory());
30850 }
30851
30852 public IOError io;
30853 public IllegalArgument ia;
30854
30855
30856 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30857 IO((short)1, "io"),
30858 IA((short)2, "ia");
30859
30860 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30861
30862 static {
30863 for (_Fields field : EnumSet.allOf(_Fields.class)) {
30864 byName.put(field.getFieldName(), field);
30865 }
30866 }
30867
30868
30869
30870
30871 public static _Fields findByThriftId(int fieldId) {
30872 switch(fieldId) {
30873 case 1:
30874 return IO;
30875 case 2:
30876 return IA;
30877 default:
30878 return null;
30879 }
30880 }
30881
30882
30883
30884
30885
30886 public static _Fields findByThriftIdOrThrow(int fieldId) {
30887 _Fields fields = findByThriftId(fieldId);
30888 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30889 return fields;
30890 }
30891
30892
30893
30894
30895 public static _Fields findByName(String name) {
30896 return byName.get(name);
30897 }
30898
30899 private final short _thriftId;
30900 private final String _fieldName;
30901
30902 _Fields(short thriftId, String fieldName) {
30903 _thriftId = thriftId;
30904 _fieldName = fieldName;
30905 }
30906
30907 public short getThriftFieldId() {
30908 return _thriftId;
30909 }
30910
30911 public String getFieldName() {
30912 return _fieldName;
30913 }
30914 }
30915
30916
30917 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30918 static {
30919 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30920 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
30921 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30922 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT,
30923 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30924 metaDataMap = Collections.unmodifiableMap(tmpMap);
30925 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowTs_result.class, metaDataMap);
30926 }
30927
30928 public mutateRowTs_result() {
30929 }
30930
30931 public mutateRowTs_result(
30932 IOError io,
30933 IllegalArgument ia)
30934 {
30935 this();
30936 this.io = io;
30937 this.ia = ia;
30938 }
30939
30940
30941
30942
30943 public mutateRowTs_result(mutateRowTs_result other) {
30944 if (other.isSetIo()) {
30945 this.io = new IOError(other.io);
30946 }
30947 if (other.isSetIa()) {
30948 this.ia = new IllegalArgument(other.ia);
30949 }
30950 }
30951
30952 public mutateRowTs_result deepCopy() {
30953 return new mutateRowTs_result(this);
30954 }
30955
30956 @Override
30957 public void clear() {
30958 this.io = null;
30959 this.ia = null;
30960 }
30961
30962 public IOError getIo() {
30963 return this.io;
30964 }
30965
30966 public mutateRowTs_result setIo(IOError io) {
30967 this.io = io;
30968 return this;
30969 }
30970
30971 public void unsetIo() {
30972 this.io = null;
30973 }
30974
30975
30976 public boolean isSetIo() {
30977 return this.io != null;
30978 }
30979
30980 public void setIoIsSet(boolean value) {
30981 if (!value) {
30982 this.io = null;
30983 }
30984 }
30985
30986 public IllegalArgument getIa() {
30987 return this.ia;
30988 }
30989
30990 public mutateRowTs_result setIa(IllegalArgument ia) {
30991 this.ia = ia;
30992 return this;
30993 }
30994
30995 public void unsetIa() {
30996 this.ia = null;
30997 }
30998
30999
31000 public boolean isSetIa() {
31001 return this.ia != null;
31002 }
31003
31004 public void setIaIsSet(boolean value) {
31005 if (!value) {
31006 this.ia = null;
31007 }
31008 }
31009
31010 public void setFieldValue(_Fields field, Object value) {
31011 switch (field) {
31012 case IO:
31013 if (value == null) {
31014 unsetIo();
31015 } else {
31016 setIo((IOError)value);
31017 }
31018 break;
31019
31020 case IA:
31021 if (value == null) {
31022 unsetIa();
31023 } else {
31024 setIa((IllegalArgument)value);
31025 }
31026 break;
31027
31028 }
31029 }
31030
31031 public Object getFieldValue(_Fields field) {
31032 switch (field) {
31033 case IO:
31034 return getIo();
31035
31036 case IA:
31037 return getIa();
31038
31039 }
31040 throw new IllegalStateException();
31041 }
31042
31043
31044 public boolean isSet(_Fields field) {
31045 if (field == null) {
31046 throw new IllegalArgumentException();
31047 }
31048
31049 switch (field) {
31050 case IO:
31051 return isSetIo();
31052 case IA:
31053 return isSetIa();
31054 }
31055 throw new IllegalStateException();
31056 }
31057
31058 @Override
31059 public boolean equals(Object that) {
31060 if (that == null)
31061 return false;
31062 if (that instanceof mutateRowTs_result)
31063 return this.equals((mutateRowTs_result)that);
31064 return false;
31065 }
31066
31067 public boolean equals(mutateRowTs_result that) {
31068 if (that == null)
31069 return false;
31070
31071 boolean this_present_io = true && this.isSetIo();
31072 boolean that_present_io = true && that.isSetIo();
31073 if (this_present_io || that_present_io) {
31074 if (!(this_present_io && that_present_io))
31075 return false;
31076 if (!this.io.equals(that.io))
31077 return false;
31078 }
31079
31080 boolean this_present_ia = true && this.isSetIa();
31081 boolean that_present_ia = true && that.isSetIa();
31082 if (this_present_ia || that_present_ia) {
31083 if (!(this_present_ia && that_present_ia))
31084 return false;
31085 if (!this.ia.equals(that.ia))
31086 return false;
31087 }
31088
31089 return true;
31090 }
31091
31092 @Override
31093 public int hashCode() {
31094 HashCodeBuilder builder = new HashCodeBuilder();
31095
31096 boolean present_io = true && (isSetIo());
31097 builder.append(present_io);
31098 if (present_io)
31099 builder.append(io);
31100
31101 boolean present_ia = true && (isSetIa());
31102 builder.append(present_ia);
31103 if (present_ia)
31104 builder.append(ia);
31105
31106 return builder.toHashCode();
31107 }
31108
31109 public int compareTo(mutateRowTs_result other) {
31110 if (!getClass().equals(other.getClass())) {
31111 return getClass().getName().compareTo(other.getClass().getName());
31112 }
31113
31114 int lastComparison = 0;
31115 mutateRowTs_result typedOther = (mutateRowTs_result)other;
31116
31117 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
31118 if (lastComparison != 0) {
31119 return lastComparison;
31120 }
31121 if (isSetIo()) {
31122 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
31123 if (lastComparison != 0) {
31124 return lastComparison;
31125 }
31126 }
31127 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
31128 if (lastComparison != 0) {
31129 return lastComparison;
31130 }
31131 if (isSetIa()) {
31132 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
31133 if (lastComparison != 0) {
31134 return lastComparison;
31135 }
31136 }
31137 return 0;
31138 }
31139
31140 public _Fields fieldForId(int fieldId) {
31141 return _Fields.findByThriftId(fieldId);
31142 }
31143
31144 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31145 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
31146 }
31147
31148 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31149 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
31150 }
31151
31152 @Override
31153 public String toString() {
31154 StringBuilder sb = new StringBuilder("mutateRowTs_result(");
31155 boolean first = true;
31156
31157 sb.append("io:");
31158 if (this.io == null) {
31159 sb.append("null");
31160 } else {
31161 sb.append(this.io);
31162 }
31163 first = false;
31164 if (!first) sb.append(", ");
31165 sb.append("ia:");
31166 if (this.ia == null) {
31167 sb.append("null");
31168 } else {
31169 sb.append(this.ia);
31170 }
31171 first = false;
31172 sb.append(")");
31173 return sb.toString();
31174 }
31175
31176 public void validate() throws org.apache.thrift.TException {
31177
31178
31179 }
31180
31181 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31182 try {
31183 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31184 } catch (org.apache.thrift.TException te) {
31185 throw new java.io.IOException(te);
31186 }
31187 }
31188
31189 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31190 try {
31191 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31192 } catch (org.apache.thrift.TException te) {
31193 throw new java.io.IOException(te);
31194 }
31195 }
31196
31197 private static class mutateRowTs_resultStandardSchemeFactory implements SchemeFactory {
31198 public mutateRowTs_resultStandardScheme getScheme() {
31199 return new mutateRowTs_resultStandardScheme();
31200 }
31201 }
31202
31203 private static class mutateRowTs_resultStandardScheme extends StandardScheme<mutateRowTs_result> {
31204
31205 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowTs_result struct) throws org.apache.thrift.TException {
31206 org.apache.thrift.protocol.TField schemeField;
31207 iprot.readStructBegin();
31208 while (true)
31209 {
31210 schemeField = iprot.readFieldBegin();
31211 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
31212 break;
31213 }
31214 switch (schemeField.id) {
31215 case 1:
31216 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
31217 struct.io = new IOError();
31218 struct.io.read(iprot);
31219 struct.setIoIsSet(true);
31220 } else {
31221 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31222 }
31223 break;
31224 case 2:
31225 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
31226 struct.ia = new IllegalArgument();
31227 struct.ia.read(iprot);
31228 struct.setIaIsSet(true);
31229 } else {
31230 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31231 }
31232 break;
31233 default:
31234 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31235 }
31236 iprot.readFieldEnd();
31237 }
31238 iprot.readStructEnd();
31239
31240
31241 struct.validate();
31242 }
31243
31244 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowTs_result struct) throws org.apache.thrift.TException {
31245 struct.validate();
31246
31247 oprot.writeStructBegin(STRUCT_DESC);
31248 if (struct.io != null) {
31249 oprot.writeFieldBegin(IO_FIELD_DESC);
31250 struct.io.write(oprot);
31251 oprot.writeFieldEnd();
31252 }
31253 if (struct.ia != null) {
31254 oprot.writeFieldBegin(IA_FIELD_DESC);
31255 struct.ia.write(oprot);
31256 oprot.writeFieldEnd();
31257 }
31258 oprot.writeFieldStop();
31259 oprot.writeStructEnd();
31260 }
31261
31262 }
31263
31264 private static class mutateRowTs_resultTupleSchemeFactory implements SchemeFactory {
31265 public mutateRowTs_resultTupleScheme getScheme() {
31266 return new mutateRowTs_resultTupleScheme();
31267 }
31268 }
31269
31270 private static class mutateRowTs_resultTupleScheme extends TupleScheme<mutateRowTs_result> {
31271
31272 @Override
31273 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_result struct) throws org.apache.thrift.TException {
31274 TTupleProtocol oprot = (TTupleProtocol) prot;
31275 BitSet optionals = new BitSet();
31276 if (struct.isSetIo()) {
31277 optionals.set(0);
31278 }
31279 if (struct.isSetIa()) {
31280 optionals.set(1);
31281 }
31282 oprot.writeBitSet(optionals, 2);
31283 if (struct.isSetIo()) {
31284 struct.io.write(oprot);
31285 }
31286 if (struct.isSetIa()) {
31287 struct.ia.write(oprot);
31288 }
31289 }
31290
31291 @Override
31292 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowTs_result struct) throws org.apache.thrift.TException {
31293 TTupleProtocol iprot = (TTupleProtocol) prot;
31294 BitSet incoming = iprot.readBitSet(2);
31295 if (incoming.get(0)) {
31296 struct.io = new IOError();
31297 struct.io.read(iprot);
31298 struct.setIoIsSet(true);
31299 }
31300 if (incoming.get(1)) {
31301 struct.ia = new IllegalArgument();
31302 struct.ia.read(iprot);
31303 struct.setIaIsSet(true);
31304 }
31305 }
31306 }
31307
31308 }
31309
31310 public static class mutateRows_args implements org.apache.thrift.TBase<mutateRows_args, mutateRows_args._Fields>, java.io.Serializable, Cloneable {
31311 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRows_args");
31312
31313 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
31314 private static final org.apache.thrift.protocol.TField ROW_BATCHES_FIELD_DESC = new org.apache.thrift.protocol.TField("rowBatches", org.apache.thrift.protocol.TType.LIST, (short)2);
31315 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3);
31316
31317 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
31318 static {
31319 schemes.put(StandardScheme.class, new mutateRows_argsStandardSchemeFactory());
31320 schemes.put(TupleScheme.class, new mutateRows_argsTupleSchemeFactory());
31321 }
31322
31323
31324
31325
31326 public ByteBuffer tableName;
31327
31328
31329
31330 public List<BatchMutation> rowBatches;
31331
31332
31333
31334 public Map<ByteBuffer,ByteBuffer> attributes;
31335
31336
31337 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31338
31339
31340
31341 TABLE_NAME((short)1, "tableName"),
31342
31343
31344
31345 ROW_BATCHES((short)2, "rowBatches"),
31346
31347
31348
31349 ATTRIBUTES((short)3, "attributes");
31350
31351 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31352
31353 static {
31354 for (_Fields field : EnumSet.allOf(_Fields.class)) {
31355 byName.put(field.getFieldName(), field);
31356 }
31357 }
31358
31359
31360
31361
31362 public static _Fields findByThriftId(int fieldId) {
31363 switch(fieldId) {
31364 case 1:
31365 return TABLE_NAME;
31366 case 2:
31367 return ROW_BATCHES;
31368 case 3:
31369 return ATTRIBUTES;
31370 default:
31371 return null;
31372 }
31373 }
31374
31375
31376
31377
31378
31379 public static _Fields findByThriftIdOrThrow(int fieldId) {
31380 _Fields fields = findByThriftId(fieldId);
31381 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31382 return fields;
31383 }
31384
31385
31386
31387
31388 public static _Fields findByName(String name) {
31389 return byName.get(name);
31390 }
31391
31392 private final short _thriftId;
31393 private final String _fieldName;
31394
31395 _Fields(short thriftId, String fieldName) {
31396 _thriftId = thriftId;
31397 _fieldName = fieldName;
31398 }
31399
31400 public short getThriftFieldId() {
31401 return _thriftId;
31402 }
31403
31404 public String getFieldName() {
31405 return _fieldName;
31406 }
31407 }
31408
31409
31410 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31411 static {
31412 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31413 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
31414 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
31415 tmpMap.put(_Fields.ROW_BATCHES, new org.apache.thrift.meta_data.FieldMetaData("rowBatches", org.apache.thrift.TFieldRequirementType.DEFAULT,
31416 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
31417 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BatchMutation.class))));
31418 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
31419 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
31420 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
31421 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
31422 metaDataMap = Collections.unmodifiableMap(tmpMap);
31423 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRows_args.class, metaDataMap);
31424 }
31425
31426 public mutateRows_args() {
31427 }
31428
31429 public mutateRows_args(
31430 ByteBuffer tableName,
31431 List<BatchMutation> rowBatches,
31432 Map<ByteBuffer,ByteBuffer> attributes)
31433 {
31434 this();
31435 this.tableName = tableName;
31436 this.rowBatches = rowBatches;
31437 this.attributes = attributes;
31438 }
31439
31440
31441
31442
31443 public mutateRows_args(mutateRows_args other) {
31444 if (other.isSetTableName()) {
31445 this.tableName = other.tableName;
31446 }
31447 if (other.isSetRowBatches()) {
31448 List<BatchMutation> __this__rowBatches = new ArrayList<BatchMutation>();
31449 for (BatchMutation other_element : other.rowBatches) {
31450 __this__rowBatches.add(new BatchMutation(other_element));
31451 }
31452 this.rowBatches = __this__rowBatches;
31453 }
31454 if (other.isSetAttributes()) {
31455 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
31456 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
31457
31458 ByteBuffer other_element_key = other_element.getKey();
31459 ByteBuffer other_element_value = other_element.getValue();
31460
31461 ByteBuffer __this__attributes_copy_key = other_element_key;
31462
31463 ByteBuffer __this__attributes_copy_value = other_element_value;
31464
31465 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
31466 }
31467 this.attributes = __this__attributes;
31468 }
31469 }
31470
31471 public mutateRows_args deepCopy() {
31472 return new mutateRows_args(this);
31473 }
31474
31475 @Override
31476 public void clear() {
31477 this.tableName = null;
31478 this.rowBatches = null;
31479 this.attributes = null;
31480 }
31481
31482
31483
31484
31485 public byte[] getTableName() {
31486 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
31487 return tableName == null ? null : tableName.array();
31488 }
31489
31490 public ByteBuffer bufferForTableName() {
31491 return tableName;
31492 }
31493
31494
31495
31496
31497 public mutateRows_args setTableName(byte[] tableName) {
31498 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
31499 return this;
31500 }
31501
31502 public mutateRows_args setTableName(ByteBuffer tableName) {
31503 this.tableName = tableName;
31504 return this;
31505 }
31506
31507 public void unsetTableName() {
31508 this.tableName = null;
31509 }
31510
31511
31512 public boolean isSetTableName() {
31513 return this.tableName != null;
31514 }
31515
31516 public void setTableNameIsSet(boolean value) {
31517 if (!value) {
31518 this.tableName = null;
31519 }
31520 }
31521
31522 public int getRowBatchesSize() {
31523 return (this.rowBatches == null) ? 0 : this.rowBatches.size();
31524 }
31525
31526 public java.util.Iterator<BatchMutation> getRowBatchesIterator() {
31527 return (this.rowBatches == null) ? null : this.rowBatches.iterator();
31528 }
31529
31530 public void addToRowBatches(BatchMutation elem) {
31531 if (this.rowBatches == null) {
31532 this.rowBatches = new ArrayList<BatchMutation>();
31533 }
31534 this.rowBatches.add(elem);
31535 }
31536
31537
31538
31539
31540 public List<BatchMutation> getRowBatches() {
31541 return this.rowBatches;
31542 }
31543
31544
31545
31546
31547 public mutateRows_args setRowBatches(List<BatchMutation> rowBatches) {
31548 this.rowBatches = rowBatches;
31549 return this;
31550 }
31551
31552 public void unsetRowBatches() {
31553 this.rowBatches = null;
31554 }
31555
31556
31557 public boolean isSetRowBatches() {
31558 return this.rowBatches != null;
31559 }
31560
31561 public void setRowBatchesIsSet(boolean value) {
31562 if (!value) {
31563 this.rowBatches = null;
31564 }
31565 }
31566
31567 public int getAttributesSize() {
31568 return (this.attributes == null) ? 0 : this.attributes.size();
31569 }
31570
31571 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
31572 if (this.attributes == null) {
31573 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
31574 }
31575 this.attributes.put(key, val);
31576 }
31577
31578
31579
31580
31581 public Map<ByteBuffer,ByteBuffer> getAttributes() {
31582 return this.attributes;
31583 }
31584
31585
31586
31587
31588 public mutateRows_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
31589 this.attributes = attributes;
31590 return this;
31591 }
31592
31593 public void unsetAttributes() {
31594 this.attributes = null;
31595 }
31596
31597
31598 public boolean isSetAttributes() {
31599 return this.attributes != null;
31600 }
31601
31602 public void setAttributesIsSet(boolean value) {
31603 if (!value) {
31604 this.attributes = null;
31605 }
31606 }
31607
31608 public void setFieldValue(_Fields field, Object value) {
31609 switch (field) {
31610 case TABLE_NAME:
31611 if (value == null) {
31612 unsetTableName();
31613 } else {
31614 setTableName((ByteBuffer)value);
31615 }
31616 break;
31617
31618 case ROW_BATCHES:
31619 if (value == null) {
31620 unsetRowBatches();
31621 } else {
31622 setRowBatches((List<BatchMutation>)value);
31623 }
31624 break;
31625
31626 case ATTRIBUTES:
31627 if (value == null) {
31628 unsetAttributes();
31629 } else {
31630 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
31631 }
31632 break;
31633
31634 }
31635 }
31636
31637 public Object getFieldValue(_Fields field) {
31638 switch (field) {
31639 case TABLE_NAME:
31640 return getTableName();
31641
31642 case ROW_BATCHES:
31643 return getRowBatches();
31644
31645 case ATTRIBUTES:
31646 return getAttributes();
31647
31648 }
31649 throw new IllegalStateException();
31650 }
31651
31652
31653 public boolean isSet(_Fields field) {
31654 if (field == null) {
31655 throw new IllegalArgumentException();
31656 }
31657
31658 switch (field) {
31659 case TABLE_NAME:
31660 return isSetTableName();
31661 case ROW_BATCHES:
31662 return isSetRowBatches();
31663 case ATTRIBUTES:
31664 return isSetAttributes();
31665 }
31666 throw new IllegalStateException();
31667 }
31668
31669 @Override
31670 public boolean equals(Object that) {
31671 if (that == null)
31672 return false;
31673 if (that instanceof mutateRows_args)
31674 return this.equals((mutateRows_args)that);
31675 return false;
31676 }
31677
31678 public boolean equals(mutateRows_args that) {
31679 if (that == null)
31680 return false;
31681
31682 boolean this_present_tableName = true && this.isSetTableName();
31683 boolean that_present_tableName = true && that.isSetTableName();
31684 if (this_present_tableName || that_present_tableName) {
31685 if (!(this_present_tableName && that_present_tableName))
31686 return false;
31687 if (!this.tableName.equals(that.tableName))
31688 return false;
31689 }
31690
31691 boolean this_present_rowBatches = true && this.isSetRowBatches();
31692 boolean that_present_rowBatches = true && that.isSetRowBatches();
31693 if (this_present_rowBatches || that_present_rowBatches) {
31694 if (!(this_present_rowBatches && that_present_rowBatches))
31695 return false;
31696 if (!this.rowBatches.equals(that.rowBatches))
31697 return false;
31698 }
31699
31700 boolean this_present_attributes = true && this.isSetAttributes();
31701 boolean that_present_attributes = true && that.isSetAttributes();
31702 if (this_present_attributes || that_present_attributes) {
31703 if (!(this_present_attributes && that_present_attributes))
31704 return false;
31705 if (!this.attributes.equals(that.attributes))
31706 return false;
31707 }
31708
31709 return true;
31710 }
31711
31712 @Override
31713 public int hashCode() {
31714 HashCodeBuilder builder = new HashCodeBuilder();
31715
31716 boolean present_tableName = true && (isSetTableName());
31717 builder.append(present_tableName);
31718 if (present_tableName)
31719 builder.append(tableName);
31720
31721 boolean present_rowBatches = true && (isSetRowBatches());
31722 builder.append(present_rowBatches);
31723 if (present_rowBatches)
31724 builder.append(rowBatches);
31725
31726 boolean present_attributes = true && (isSetAttributes());
31727 builder.append(present_attributes);
31728 if (present_attributes)
31729 builder.append(attributes);
31730
31731 return builder.toHashCode();
31732 }
31733
31734 public int compareTo(mutateRows_args other) {
31735 if (!getClass().equals(other.getClass())) {
31736 return getClass().getName().compareTo(other.getClass().getName());
31737 }
31738
31739 int lastComparison = 0;
31740 mutateRows_args typedOther = (mutateRows_args)other;
31741
31742 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
31743 if (lastComparison != 0) {
31744 return lastComparison;
31745 }
31746 if (isSetTableName()) {
31747 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
31748 if (lastComparison != 0) {
31749 return lastComparison;
31750 }
31751 }
31752 lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(typedOther.isSetRowBatches());
31753 if (lastComparison != 0) {
31754 return lastComparison;
31755 }
31756 if (isSetRowBatches()) {
31757 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowBatches, typedOther.rowBatches);
31758 if (lastComparison != 0) {
31759 return lastComparison;
31760 }
31761 }
31762 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
31763 if (lastComparison != 0) {
31764 return lastComparison;
31765 }
31766 if (isSetAttributes()) {
31767 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
31768 if (lastComparison != 0) {
31769 return lastComparison;
31770 }
31771 }
31772 return 0;
31773 }
31774
31775 public _Fields fieldForId(int fieldId) {
31776 return _Fields.findByThriftId(fieldId);
31777 }
31778
31779 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31780 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
31781 }
31782
31783 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31784 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
31785 }
31786
31787 @Override
31788 public String toString() {
31789 StringBuilder sb = new StringBuilder("mutateRows_args(");
31790 boolean first = true;
31791
31792 sb.append("tableName:");
31793 if (this.tableName == null) {
31794 sb.append("null");
31795 } else {
31796 sb.append(this.tableName);
31797 }
31798 first = false;
31799 if (!first) sb.append(", ");
31800 sb.append("rowBatches:");
31801 if (this.rowBatches == null) {
31802 sb.append("null");
31803 } else {
31804 sb.append(this.rowBatches);
31805 }
31806 first = false;
31807 if (!first) sb.append(", ");
31808 sb.append("attributes:");
31809 if (this.attributes == null) {
31810 sb.append("null");
31811 } else {
31812 sb.append(this.attributes);
31813 }
31814 first = false;
31815 sb.append(")");
31816 return sb.toString();
31817 }
31818
31819 public void validate() throws org.apache.thrift.TException {
31820
31821
31822 }
31823
31824 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31825 try {
31826 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31827 } catch (org.apache.thrift.TException te) {
31828 throw new java.io.IOException(te);
31829 }
31830 }
31831
31832 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31833 try {
31834 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31835 } catch (org.apache.thrift.TException te) {
31836 throw new java.io.IOException(te);
31837 }
31838 }
31839
31840 private static class mutateRows_argsStandardSchemeFactory implements SchemeFactory {
31841 public mutateRows_argsStandardScheme getScheme() {
31842 return new mutateRows_argsStandardScheme();
31843 }
31844 }
31845
31846 private static class mutateRows_argsStandardScheme extends StandardScheme<mutateRows_args> {
31847
31848 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRows_args struct) throws org.apache.thrift.TException {
31849 org.apache.thrift.protocol.TField schemeField;
31850 iprot.readStructBegin();
31851 while (true)
31852 {
31853 schemeField = iprot.readFieldBegin();
31854 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
31855 break;
31856 }
31857 switch (schemeField.id) {
31858 case 1:
31859 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
31860 struct.tableName = iprot.readBinary();
31861 struct.setTableNameIsSet(true);
31862 } else {
31863 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31864 }
31865 break;
31866 case 2:
31867 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
31868 {
31869 org.apache.thrift.protocol.TList _list382 = iprot.readListBegin();
31870 struct.rowBatches = new ArrayList<BatchMutation>(_list382.size);
31871 for (int _i383 = 0; _i383 < _list382.size; ++_i383)
31872 {
31873 BatchMutation _elem384;
31874 _elem384 = new BatchMutation();
31875 _elem384.read(iprot);
31876 struct.rowBatches.add(_elem384);
31877 }
31878 iprot.readListEnd();
31879 }
31880 struct.setRowBatchesIsSet(true);
31881 } else {
31882 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31883 }
31884 break;
31885 case 3:
31886 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
31887 {
31888 org.apache.thrift.protocol.TMap _map385 = iprot.readMapBegin();
31889 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map385.size);
31890 for (int _i386 = 0; _i386 < _map385.size; ++_i386)
31891 {
31892 ByteBuffer _key387;
31893 ByteBuffer _val388;
31894 _key387 = iprot.readBinary();
31895 _val388 = iprot.readBinary();
31896 struct.attributes.put(_key387, _val388);
31897 }
31898 iprot.readMapEnd();
31899 }
31900 struct.setAttributesIsSet(true);
31901 } else {
31902 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31903 }
31904 break;
31905 default:
31906 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
31907 }
31908 iprot.readFieldEnd();
31909 }
31910 iprot.readStructEnd();
31911
31912
31913 struct.validate();
31914 }
31915
31916 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRows_args struct) throws org.apache.thrift.TException {
31917 struct.validate();
31918
31919 oprot.writeStructBegin(STRUCT_DESC);
31920 if (struct.tableName != null) {
31921 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
31922 oprot.writeBinary(struct.tableName);
31923 oprot.writeFieldEnd();
31924 }
31925 if (struct.rowBatches != null) {
31926 oprot.writeFieldBegin(ROW_BATCHES_FIELD_DESC);
31927 {
31928 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.rowBatches.size()));
31929 for (BatchMutation _iter389 : struct.rowBatches)
31930 {
31931 _iter389.write(oprot);
31932 }
31933 oprot.writeListEnd();
31934 }
31935 oprot.writeFieldEnd();
31936 }
31937 if (struct.attributes != null) {
31938 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
31939 {
31940 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
31941 for (Map.Entry<ByteBuffer, ByteBuffer> _iter390 : struct.attributes.entrySet())
31942 {
31943 oprot.writeBinary(_iter390.getKey());
31944 oprot.writeBinary(_iter390.getValue());
31945 }
31946 oprot.writeMapEnd();
31947 }
31948 oprot.writeFieldEnd();
31949 }
31950 oprot.writeFieldStop();
31951 oprot.writeStructEnd();
31952 }
31953
31954 }
31955
31956 private static class mutateRows_argsTupleSchemeFactory implements SchemeFactory {
31957 public mutateRows_argsTupleScheme getScheme() {
31958 return new mutateRows_argsTupleScheme();
31959 }
31960 }
31961
31962 private static class mutateRows_argsTupleScheme extends TupleScheme<mutateRows_args> {
31963
31964 @Override
31965 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRows_args struct) throws org.apache.thrift.TException {
31966 TTupleProtocol oprot = (TTupleProtocol) prot;
31967 BitSet optionals = new BitSet();
31968 if (struct.isSetTableName()) {
31969 optionals.set(0);
31970 }
31971 if (struct.isSetRowBatches()) {
31972 optionals.set(1);
31973 }
31974 if (struct.isSetAttributes()) {
31975 optionals.set(2);
31976 }
31977 oprot.writeBitSet(optionals, 3);
31978 if (struct.isSetTableName()) {
31979 oprot.writeBinary(struct.tableName);
31980 }
31981 if (struct.isSetRowBatches()) {
31982 {
31983 oprot.writeI32(struct.rowBatches.size());
31984 for (BatchMutation _iter391 : struct.rowBatches)
31985 {
31986 _iter391.write(oprot);
31987 }
31988 }
31989 }
31990 if (struct.isSetAttributes()) {
31991 {
31992 oprot.writeI32(struct.attributes.size());
31993 for (Map.Entry<ByteBuffer, ByteBuffer> _iter392 : struct.attributes.entrySet())
31994 {
31995 oprot.writeBinary(_iter392.getKey());
31996 oprot.writeBinary(_iter392.getValue());
31997 }
31998 }
31999 }
32000 }
32001
32002 @Override
32003 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRows_args struct) throws org.apache.thrift.TException {
32004 TTupleProtocol iprot = (TTupleProtocol) prot;
32005 BitSet incoming = iprot.readBitSet(3);
32006 if (incoming.get(0)) {
32007 struct.tableName = iprot.readBinary();
32008 struct.setTableNameIsSet(true);
32009 }
32010 if (incoming.get(1)) {
32011 {
32012 org.apache.thrift.protocol.TList _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
32013 struct.rowBatches = new ArrayList<BatchMutation>(_list393.size);
32014 for (int _i394 = 0; _i394 < _list393.size; ++_i394)
32015 {
32016 BatchMutation _elem395;
32017 _elem395 = new BatchMutation();
32018 _elem395.read(iprot);
32019 struct.rowBatches.add(_elem395);
32020 }
32021 }
32022 struct.setRowBatchesIsSet(true);
32023 }
32024 if (incoming.get(2)) {
32025 {
32026 org.apache.thrift.protocol.TMap _map396 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
32027 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map396.size);
32028 for (int _i397 = 0; _i397 < _map396.size; ++_i397)
32029 {
32030 ByteBuffer _key398;
32031 ByteBuffer _val399;
32032 _key398 = iprot.readBinary();
32033 _val399 = iprot.readBinary();
32034 struct.attributes.put(_key398, _val399);
32035 }
32036 }
32037 struct.setAttributesIsSet(true);
32038 }
32039 }
32040 }
32041
32042 }
32043
32044 public static class mutateRows_result implements org.apache.thrift.TBase<mutateRows_result, mutateRows_result._Fields>, java.io.Serializable, Cloneable {
32045 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRows_result");
32046
32047 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
32048 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
32049
32050 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
32051 static {
32052 schemes.put(StandardScheme.class, new mutateRows_resultStandardSchemeFactory());
32053 schemes.put(TupleScheme.class, new mutateRows_resultTupleSchemeFactory());
32054 }
32055
32056 public IOError io;
32057 public IllegalArgument ia;
32058
32059
32060 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32061 IO((short)1, "io"),
32062 IA((short)2, "ia");
32063
32064 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32065
32066 static {
32067 for (_Fields field : EnumSet.allOf(_Fields.class)) {
32068 byName.put(field.getFieldName(), field);
32069 }
32070 }
32071
32072
32073
32074
32075 public static _Fields findByThriftId(int fieldId) {
32076 switch(fieldId) {
32077 case 1:
32078 return IO;
32079 case 2:
32080 return IA;
32081 default:
32082 return null;
32083 }
32084 }
32085
32086
32087
32088
32089
32090 public static _Fields findByThriftIdOrThrow(int fieldId) {
32091 _Fields fields = findByThriftId(fieldId);
32092 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32093 return fields;
32094 }
32095
32096
32097
32098
32099 public static _Fields findByName(String name) {
32100 return byName.get(name);
32101 }
32102
32103 private final short _thriftId;
32104 private final String _fieldName;
32105
32106 _Fields(short thriftId, String fieldName) {
32107 _thriftId = thriftId;
32108 _fieldName = fieldName;
32109 }
32110
32111 public short getThriftFieldId() {
32112 return _thriftId;
32113 }
32114
32115 public String getFieldName() {
32116 return _fieldName;
32117 }
32118 }
32119
32120
32121 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32122 static {
32123 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32124 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
32125 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32126 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT,
32127 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32128 metaDataMap = Collections.unmodifiableMap(tmpMap);
32129 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRows_result.class, metaDataMap);
32130 }
32131
32132 public mutateRows_result() {
32133 }
32134
32135 public mutateRows_result(
32136 IOError io,
32137 IllegalArgument ia)
32138 {
32139 this();
32140 this.io = io;
32141 this.ia = ia;
32142 }
32143
32144
32145
32146
32147 public mutateRows_result(mutateRows_result other) {
32148 if (other.isSetIo()) {
32149 this.io = new IOError(other.io);
32150 }
32151 if (other.isSetIa()) {
32152 this.ia = new IllegalArgument(other.ia);
32153 }
32154 }
32155
32156 public mutateRows_result deepCopy() {
32157 return new mutateRows_result(this);
32158 }
32159
32160 @Override
32161 public void clear() {
32162 this.io = null;
32163 this.ia = null;
32164 }
32165
32166 public IOError getIo() {
32167 return this.io;
32168 }
32169
32170 public mutateRows_result setIo(IOError io) {
32171 this.io = io;
32172 return this;
32173 }
32174
32175 public void unsetIo() {
32176 this.io = null;
32177 }
32178
32179
32180 public boolean isSetIo() {
32181 return this.io != null;
32182 }
32183
32184 public void setIoIsSet(boolean value) {
32185 if (!value) {
32186 this.io = null;
32187 }
32188 }
32189
32190 public IllegalArgument getIa() {
32191 return this.ia;
32192 }
32193
32194 public mutateRows_result setIa(IllegalArgument ia) {
32195 this.ia = ia;
32196 return this;
32197 }
32198
32199 public void unsetIa() {
32200 this.ia = null;
32201 }
32202
32203
32204 public boolean isSetIa() {
32205 return this.ia != null;
32206 }
32207
32208 public void setIaIsSet(boolean value) {
32209 if (!value) {
32210 this.ia = null;
32211 }
32212 }
32213
32214 public void setFieldValue(_Fields field, Object value) {
32215 switch (field) {
32216 case IO:
32217 if (value == null) {
32218 unsetIo();
32219 } else {
32220 setIo((IOError)value);
32221 }
32222 break;
32223
32224 case IA:
32225 if (value == null) {
32226 unsetIa();
32227 } else {
32228 setIa((IllegalArgument)value);
32229 }
32230 break;
32231
32232 }
32233 }
32234
32235 public Object getFieldValue(_Fields field) {
32236 switch (field) {
32237 case IO:
32238 return getIo();
32239
32240 case IA:
32241 return getIa();
32242
32243 }
32244 throw new IllegalStateException();
32245 }
32246
32247
32248 public boolean isSet(_Fields field) {
32249 if (field == null) {
32250 throw new IllegalArgumentException();
32251 }
32252
32253 switch (field) {
32254 case IO:
32255 return isSetIo();
32256 case IA:
32257 return isSetIa();
32258 }
32259 throw new IllegalStateException();
32260 }
32261
32262 @Override
32263 public boolean equals(Object that) {
32264 if (that == null)
32265 return false;
32266 if (that instanceof mutateRows_result)
32267 return this.equals((mutateRows_result)that);
32268 return false;
32269 }
32270
32271 public boolean equals(mutateRows_result that) {
32272 if (that == null)
32273 return false;
32274
32275 boolean this_present_io = true && this.isSetIo();
32276 boolean that_present_io = true && that.isSetIo();
32277 if (this_present_io || that_present_io) {
32278 if (!(this_present_io && that_present_io))
32279 return false;
32280 if (!this.io.equals(that.io))
32281 return false;
32282 }
32283
32284 boolean this_present_ia = true && this.isSetIa();
32285 boolean that_present_ia = true && that.isSetIa();
32286 if (this_present_ia || that_present_ia) {
32287 if (!(this_present_ia && that_present_ia))
32288 return false;
32289 if (!this.ia.equals(that.ia))
32290 return false;
32291 }
32292
32293 return true;
32294 }
32295
32296 @Override
32297 public int hashCode() {
32298 HashCodeBuilder builder = new HashCodeBuilder();
32299
32300 boolean present_io = true && (isSetIo());
32301 builder.append(present_io);
32302 if (present_io)
32303 builder.append(io);
32304
32305 boolean present_ia = true && (isSetIa());
32306 builder.append(present_ia);
32307 if (present_ia)
32308 builder.append(ia);
32309
32310 return builder.toHashCode();
32311 }
32312
32313 public int compareTo(mutateRows_result other) {
32314 if (!getClass().equals(other.getClass())) {
32315 return getClass().getName().compareTo(other.getClass().getName());
32316 }
32317
32318 int lastComparison = 0;
32319 mutateRows_result typedOther = (mutateRows_result)other;
32320
32321 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
32322 if (lastComparison != 0) {
32323 return lastComparison;
32324 }
32325 if (isSetIo()) {
32326 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
32327 if (lastComparison != 0) {
32328 return lastComparison;
32329 }
32330 }
32331 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
32332 if (lastComparison != 0) {
32333 return lastComparison;
32334 }
32335 if (isSetIa()) {
32336 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
32337 if (lastComparison != 0) {
32338 return lastComparison;
32339 }
32340 }
32341 return 0;
32342 }
32343
32344 public _Fields fieldForId(int fieldId) {
32345 return _Fields.findByThriftId(fieldId);
32346 }
32347
32348 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32349 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
32350 }
32351
32352 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32353 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
32354 }
32355
32356 @Override
32357 public String toString() {
32358 StringBuilder sb = new StringBuilder("mutateRows_result(");
32359 boolean first = true;
32360
32361 sb.append("io:");
32362 if (this.io == null) {
32363 sb.append("null");
32364 } else {
32365 sb.append(this.io);
32366 }
32367 first = false;
32368 if (!first) sb.append(", ");
32369 sb.append("ia:");
32370 if (this.ia == null) {
32371 sb.append("null");
32372 } else {
32373 sb.append(this.ia);
32374 }
32375 first = false;
32376 sb.append(")");
32377 return sb.toString();
32378 }
32379
32380 public void validate() throws org.apache.thrift.TException {
32381
32382
32383 }
32384
32385 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32386 try {
32387 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32388 } catch (org.apache.thrift.TException te) {
32389 throw new java.io.IOException(te);
32390 }
32391 }
32392
32393 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32394 try {
32395 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32396 } catch (org.apache.thrift.TException te) {
32397 throw new java.io.IOException(te);
32398 }
32399 }
32400
32401 private static class mutateRows_resultStandardSchemeFactory implements SchemeFactory {
32402 public mutateRows_resultStandardScheme getScheme() {
32403 return new mutateRows_resultStandardScheme();
32404 }
32405 }
32406
32407 private static class mutateRows_resultStandardScheme extends StandardScheme<mutateRows_result> {
32408
32409 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRows_result struct) throws org.apache.thrift.TException {
32410 org.apache.thrift.protocol.TField schemeField;
32411 iprot.readStructBegin();
32412 while (true)
32413 {
32414 schemeField = iprot.readFieldBegin();
32415 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
32416 break;
32417 }
32418 switch (schemeField.id) {
32419 case 1:
32420 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
32421 struct.io = new IOError();
32422 struct.io.read(iprot);
32423 struct.setIoIsSet(true);
32424 } else {
32425 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32426 }
32427 break;
32428 case 2:
32429 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
32430 struct.ia = new IllegalArgument();
32431 struct.ia.read(iprot);
32432 struct.setIaIsSet(true);
32433 } else {
32434 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32435 }
32436 break;
32437 default:
32438 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
32439 }
32440 iprot.readFieldEnd();
32441 }
32442 iprot.readStructEnd();
32443
32444
32445 struct.validate();
32446 }
32447
32448 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRows_result struct) throws org.apache.thrift.TException {
32449 struct.validate();
32450
32451 oprot.writeStructBegin(STRUCT_DESC);
32452 if (struct.io != null) {
32453 oprot.writeFieldBegin(IO_FIELD_DESC);
32454 struct.io.write(oprot);
32455 oprot.writeFieldEnd();
32456 }
32457 if (struct.ia != null) {
32458 oprot.writeFieldBegin(IA_FIELD_DESC);
32459 struct.ia.write(oprot);
32460 oprot.writeFieldEnd();
32461 }
32462 oprot.writeFieldStop();
32463 oprot.writeStructEnd();
32464 }
32465
32466 }
32467
32468 private static class mutateRows_resultTupleSchemeFactory implements SchemeFactory {
32469 public mutateRows_resultTupleScheme getScheme() {
32470 return new mutateRows_resultTupleScheme();
32471 }
32472 }
32473
32474 private static class mutateRows_resultTupleScheme extends TupleScheme<mutateRows_result> {
32475
32476 @Override
32477 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRows_result struct) throws org.apache.thrift.TException {
32478 TTupleProtocol oprot = (TTupleProtocol) prot;
32479 BitSet optionals = new BitSet();
32480 if (struct.isSetIo()) {
32481 optionals.set(0);
32482 }
32483 if (struct.isSetIa()) {
32484 optionals.set(1);
32485 }
32486 oprot.writeBitSet(optionals, 2);
32487 if (struct.isSetIo()) {
32488 struct.io.write(oprot);
32489 }
32490 if (struct.isSetIa()) {
32491 struct.ia.write(oprot);
32492 }
32493 }
32494
32495 @Override
32496 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRows_result struct) throws org.apache.thrift.TException {
32497 TTupleProtocol iprot = (TTupleProtocol) prot;
32498 BitSet incoming = iprot.readBitSet(2);
32499 if (incoming.get(0)) {
32500 struct.io = new IOError();
32501 struct.io.read(iprot);
32502 struct.setIoIsSet(true);
32503 }
32504 if (incoming.get(1)) {
32505 struct.ia = new IllegalArgument();
32506 struct.ia.read(iprot);
32507 struct.setIaIsSet(true);
32508 }
32509 }
32510 }
32511
32512 }
32513
32514 public static class mutateRowsTs_args implements org.apache.thrift.TBase<mutateRowsTs_args, mutateRowsTs_args._Fields>, java.io.Serializable, Cloneable {
32515 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowsTs_args");
32516
32517 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
32518 private static final org.apache.thrift.protocol.TField ROW_BATCHES_FIELD_DESC = new org.apache.thrift.protocol.TField("rowBatches", org.apache.thrift.protocol.TType.LIST, (short)2);
32519 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
32520 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
32521
32522 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
32523 static {
32524 schemes.put(StandardScheme.class, new mutateRowsTs_argsStandardSchemeFactory());
32525 schemes.put(TupleScheme.class, new mutateRowsTs_argsTupleSchemeFactory());
32526 }
32527
32528
32529
32530
32531 public ByteBuffer tableName;
32532
32533
32534
32535 public List<BatchMutation> rowBatches;
32536
32537
32538
32539 public long timestamp;
32540
32541
32542
32543 public Map<ByteBuffer,ByteBuffer> attributes;
32544
32545
32546 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32547
32548
32549
32550 TABLE_NAME((short)1, "tableName"),
32551
32552
32553
32554 ROW_BATCHES((short)2, "rowBatches"),
32555
32556
32557
32558 TIMESTAMP((short)3, "timestamp"),
32559
32560
32561
32562 ATTRIBUTES((short)4, "attributes");
32563
32564 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32565
32566 static {
32567 for (_Fields field : EnumSet.allOf(_Fields.class)) {
32568 byName.put(field.getFieldName(), field);
32569 }
32570 }
32571
32572
32573
32574
32575 public static _Fields findByThriftId(int fieldId) {
32576 switch(fieldId) {
32577 case 1:
32578 return TABLE_NAME;
32579 case 2:
32580 return ROW_BATCHES;
32581 case 3:
32582 return TIMESTAMP;
32583 case 4:
32584 return ATTRIBUTES;
32585 default:
32586 return null;
32587 }
32588 }
32589
32590
32591
32592
32593
32594 public static _Fields findByThriftIdOrThrow(int fieldId) {
32595 _Fields fields = findByThriftId(fieldId);
32596 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32597 return fields;
32598 }
32599
32600
32601
32602
32603 public static _Fields findByName(String name) {
32604 return byName.get(name);
32605 }
32606
32607 private final short _thriftId;
32608 private final String _fieldName;
32609
32610 _Fields(short thriftId, String fieldName) {
32611 _thriftId = thriftId;
32612 _fieldName = fieldName;
32613 }
32614
32615 public short getThriftFieldId() {
32616 return _thriftId;
32617 }
32618
32619 public String getFieldName() {
32620 return _fieldName;
32621 }
32622 }
32623
32624
32625 private static final int __TIMESTAMP_ISSET_ID = 0;
32626 private byte __isset_bitfield = 0;
32627 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32628 static {
32629 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32630 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
32631 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
32632 tmpMap.put(_Fields.ROW_BATCHES, new org.apache.thrift.meta_data.FieldMetaData("rowBatches", org.apache.thrift.TFieldRequirementType.DEFAULT,
32633 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
32634 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BatchMutation.class))));
32635 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
32636 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32637 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
32638 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
32639 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
32640 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
32641 metaDataMap = Collections.unmodifiableMap(tmpMap);
32642 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowsTs_args.class, metaDataMap);
32643 }
32644
32645 public mutateRowsTs_args() {
32646 }
32647
32648 public mutateRowsTs_args(
32649 ByteBuffer tableName,
32650 List<BatchMutation> rowBatches,
32651 long timestamp,
32652 Map<ByteBuffer,ByteBuffer> attributes)
32653 {
32654 this();
32655 this.tableName = tableName;
32656 this.rowBatches = rowBatches;
32657 this.timestamp = timestamp;
32658 setTimestampIsSet(true);
32659 this.attributes = attributes;
32660 }
32661
32662
32663
32664
32665 public mutateRowsTs_args(mutateRowsTs_args other) {
32666 __isset_bitfield = other.__isset_bitfield;
32667 if (other.isSetTableName()) {
32668 this.tableName = other.tableName;
32669 }
32670 if (other.isSetRowBatches()) {
32671 List<BatchMutation> __this__rowBatches = new ArrayList<BatchMutation>();
32672 for (BatchMutation other_element : other.rowBatches) {
32673 __this__rowBatches.add(new BatchMutation(other_element));
32674 }
32675 this.rowBatches = __this__rowBatches;
32676 }
32677 this.timestamp = other.timestamp;
32678 if (other.isSetAttributes()) {
32679 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
32680 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
32681
32682 ByteBuffer other_element_key = other_element.getKey();
32683 ByteBuffer other_element_value = other_element.getValue();
32684
32685 ByteBuffer __this__attributes_copy_key = other_element_key;
32686
32687 ByteBuffer __this__attributes_copy_value = other_element_value;
32688
32689 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
32690 }
32691 this.attributes = __this__attributes;
32692 }
32693 }
32694
32695 public mutateRowsTs_args deepCopy() {
32696 return new mutateRowsTs_args(this);
32697 }
32698
32699 @Override
32700 public void clear() {
32701 this.tableName = null;
32702 this.rowBatches = null;
32703 setTimestampIsSet(false);
32704 this.timestamp = 0;
32705 this.attributes = null;
32706 }
32707
32708
32709
32710
32711 public byte[] getTableName() {
32712 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
32713 return tableName == null ? null : tableName.array();
32714 }
32715
32716 public ByteBuffer bufferForTableName() {
32717 return tableName;
32718 }
32719
32720
32721
32722
32723 public mutateRowsTs_args setTableName(byte[] tableName) {
32724 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
32725 return this;
32726 }
32727
32728 public mutateRowsTs_args setTableName(ByteBuffer tableName) {
32729 this.tableName = tableName;
32730 return this;
32731 }
32732
32733 public void unsetTableName() {
32734 this.tableName = null;
32735 }
32736
32737
32738 public boolean isSetTableName() {
32739 return this.tableName != null;
32740 }
32741
32742 public void setTableNameIsSet(boolean value) {
32743 if (!value) {
32744 this.tableName = null;
32745 }
32746 }
32747
32748 public int getRowBatchesSize() {
32749 return (this.rowBatches == null) ? 0 : this.rowBatches.size();
32750 }
32751
32752 public java.util.Iterator<BatchMutation> getRowBatchesIterator() {
32753 return (this.rowBatches == null) ? null : this.rowBatches.iterator();
32754 }
32755
32756 public void addToRowBatches(BatchMutation elem) {
32757 if (this.rowBatches == null) {
32758 this.rowBatches = new ArrayList<BatchMutation>();
32759 }
32760 this.rowBatches.add(elem);
32761 }
32762
32763
32764
32765
32766 public List<BatchMutation> getRowBatches() {
32767 return this.rowBatches;
32768 }
32769
32770
32771
32772
32773 public mutateRowsTs_args setRowBatches(List<BatchMutation> rowBatches) {
32774 this.rowBatches = rowBatches;
32775 return this;
32776 }
32777
32778 public void unsetRowBatches() {
32779 this.rowBatches = null;
32780 }
32781
32782
32783 public boolean isSetRowBatches() {
32784 return this.rowBatches != null;
32785 }
32786
32787 public void setRowBatchesIsSet(boolean value) {
32788 if (!value) {
32789 this.rowBatches = null;
32790 }
32791 }
32792
32793
32794
32795
32796 public long getTimestamp() {
32797 return this.timestamp;
32798 }
32799
32800
32801
32802
32803 public mutateRowsTs_args setTimestamp(long timestamp) {
32804 this.timestamp = timestamp;
32805 setTimestampIsSet(true);
32806 return this;
32807 }
32808
32809 public void unsetTimestamp() {
32810 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
32811 }
32812
32813
32814 public boolean isSetTimestamp() {
32815 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
32816 }
32817
32818 public void setTimestampIsSet(boolean value) {
32819 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
32820 }
32821
32822 public int getAttributesSize() {
32823 return (this.attributes == null) ? 0 : this.attributes.size();
32824 }
32825
32826 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
32827 if (this.attributes == null) {
32828 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
32829 }
32830 this.attributes.put(key, val);
32831 }
32832
32833
32834
32835
32836 public Map<ByteBuffer,ByteBuffer> getAttributes() {
32837 return this.attributes;
32838 }
32839
32840
32841
32842
32843 public mutateRowsTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
32844 this.attributes = attributes;
32845 return this;
32846 }
32847
32848 public void unsetAttributes() {
32849 this.attributes = null;
32850 }
32851
32852
32853 public boolean isSetAttributes() {
32854 return this.attributes != null;
32855 }
32856
32857 public void setAttributesIsSet(boolean value) {
32858 if (!value) {
32859 this.attributes = null;
32860 }
32861 }
32862
32863 public void setFieldValue(_Fields field, Object value) {
32864 switch (field) {
32865 case TABLE_NAME:
32866 if (value == null) {
32867 unsetTableName();
32868 } else {
32869 setTableName((ByteBuffer)value);
32870 }
32871 break;
32872
32873 case ROW_BATCHES:
32874 if (value == null) {
32875 unsetRowBatches();
32876 } else {
32877 setRowBatches((List<BatchMutation>)value);
32878 }
32879 break;
32880
32881 case TIMESTAMP:
32882 if (value == null) {
32883 unsetTimestamp();
32884 } else {
32885 setTimestamp((Long)value);
32886 }
32887 break;
32888
32889 case ATTRIBUTES:
32890 if (value == null) {
32891 unsetAttributes();
32892 } else {
32893 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
32894 }
32895 break;
32896
32897 }
32898 }
32899
32900 public Object getFieldValue(_Fields field) {
32901 switch (field) {
32902 case TABLE_NAME:
32903 return getTableName();
32904
32905 case ROW_BATCHES:
32906 return getRowBatches();
32907
32908 case TIMESTAMP:
32909 return Long.valueOf(getTimestamp());
32910
32911 case ATTRIBUTES:
32912 return getAttributes();
32913
32914 }
32915 throw new IllegalStateException();
32916 }
32917
32918
32919 public boolean isSet(_Fields field) {
32920 if (field == null) {
32921 throw new IllegalArgumentException();
32922 }
32923
32924 switch (field) {
32925 case TABLE_NAME:
32926 return isSetTableName();
32927 case ROW_BATCHES:
32928 return isSetRowBatches();
32929 case TIMESTAMP:
32930 return isSetTimestamp();
32931 case ATTRIBUTES:
32932 return isSetAttributes();
32933 }
32934 throw new IllegalStateException();
32935 }
32936
32937 @Override
32938 public boolean equals(Object that) {
32939 if (that == null)
32940 return false;
32941 if (that instanceof mutateRowsTs_args)
32942 return this.equals((mutateRowsTs_args)that);
32943 return false;
32944 }
32945
32946 public boolean equals(mutateRowsTs_args that) {
32947 if (that == null)
32948 return false;
32949
32950 boolean this_present_tableName = true && this.isSetTableName();
32951 boolean that_present_tableName = true && that.isSetTableName();
32952 if (this_present_tableName || that_present_tableName) {
32953 if (!(this_present_tableName && that_present_tableName))
32954 return false;
32955 if (!this.tableName.equals(that.tableName))
32956 return false;
32957 }
32958
32959 boolean this_present_rowBatches = true && this.isSetRowBatches();
32960 boolean that_present_rowBatches = true && that.isSetRowBatches();
32961 if (this_present_rowBatches || that_present_rowBatches) {
32962 if (!(this_present_rowBatches && that_present_rowBatches))
32963 return false;
32964 if (!this.rowBatches.equals(that.rowBatches))
32965 return false;
32966 }
32967
32968 boolean this_present_timestamp = true;
32969 boolean that_present_timestamp = true;
32970 if (this_present_timestamp || that_present_timestamp) {
32971 if (!(this_present_timestamp && that_present_timestamp))
32972 return false;
32973 if (this.timestamp != that.timestamp)
32974 return false;
32975 }
32976
32977 boolean this_present_attributes = true && this.isSetAttributes();
32978 boolean that_present_attributes = true && that.isSetAttributes();
32979 if (this_present_attributes || that_present_attributes) {
32980 if (!(this_present_attributes && that_present_attributes))
32981 return false;
32982 if (!this.attributes.equals(that.attributes))
32983 return false;
32984 }
32985
32986 return true;
32987 }
32988
32989 @Override
32990 public int hashCode() {
32991 HashCodeBuilder builder = new HashCodeBuilder();
32992
32993 boolean present_tableName = true && (isSetTableName());
32994 builder.append(present_tableName);
32995 if (present_tableName)
32996 builder.append(tableName);
32997
32998 boolean present_rowBatches = true && (isSetRowBatches());
32999 builder.append(present_rowBatches);
33000 if (present_rowBatches)
33001 builder.append(rowBatches);
33002
33003 boolean present_timestamp = true;
33004 builder.append(present_timestamp);
33005 if (present_timestamp)
33006 builder.append(timestamp);
33007
33008 boolean present_attributes = true && (isSetAttributes());
33009 builder.append(present_attributes);
33010 if (present_attributes)
33011 builder.append(attributes);
33012
33013 return builder.toHashCode();
33014 }
33015
33016 public int compareTo(mutateRowsTs_args other) {
33017 if (!getClass().equals(other.getClass())) {
33018 return getClass().getName().compareTo(other.getClass().getName());
33019 }
33020
33021 int lastComparison = 0;
33022 mutateRowsTs_args typedOther = (mutateRowsTs_args)other;
33023
33024 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
33025 if (lastComparison != 0) {
33026 return lastComparison;
33027 }
33028 if (isSetTableName()) {
33029 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
33030 if (lastComparison != 0) {
33031 return lastComparison;
33032 }
33033 }
33034 lastComparison = Boolean.valueOf(isSetRowBatches()).compareTo(typedOther.isSetRowBatches());
33035 if (lastComparison != 0) {
33036 return lastComparison;
33037 }
33038 if (isSetRowBatches()) {
33039 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rowBatches, typedOther.rowBatches);
33040 if (lastComparison != 0) {
33041 return lastComparison;
33042 }
33043 }
33044 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
33045 if (lastComparison != 0) {
33046 return lastComparison;
33047 }
33048 if (isSetTimestamp()) {
33049 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
33050 if (lastComparison != 0) {
33051 return lastComparison;
33052 }
33053 }
33054 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
33055 if (lastComparison != 0) {
33056 return lastComparison;
33057 }
33058 if (isSetAttributes()) {
33059 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
33060 if (lastComparison != 0) {
33061 return lastComparison;
33062 }
33063 }
33064 return 0;
33065 }
33066
33067 public _Fields fieldForId(int fieldId) {
33068 return _Fields.findByThriftId(fieldId);
33069 }
33070
33071 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33072 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
33073 }
33074
33075 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33076 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
33077 }
33078
33079 @Override
33080 public String toString() {
33081 StringBuilder sb = new StringBuilder("mutateRowsTs_args(");
33082 boolean first = true;
33083
33084 sb.append("tableName:");
33085 if (this.tableName == null) {
33086 sb.append("null");
33087 } else {
33088 sb.append(this.tableName);
33089 }
33090 first = false;
33091 if (!first) sb.append(", ");
33092 sb.append("rowBatches:");
33093 if (this.rowBatches == null) {
33094 sb.append("null");
33095 } else {
33096 sb.append(this.rowBatches);
33097 }
33098 first = false;
33099 if (!first) sb.append(", ");
33100 sb.append("timestamp:");
33101 sb.append(this.timestamp);
33102 first = false;
33103 if (!first) sb.append(", ");
33104 sb.append("attributes:");
33105 if (this.attributes == null) {
33106 sb.append("null");
33107 } else {
33108 sb.append(this.attributes);
33109 }
33110 first = false;
33111 sb.append(")");
33112 return sb.toString();
33113 }
33114
33115 public void validate() throws org.apache.thrift.TException {
33116
33117
33118 }
33119
33120 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33121 try {
33122 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33123 } catch (org.apache.thrift.TException te) {
33124 throw new java.io.IOException(te);
33125 }
33126 }
33127
33128 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33129 try {
33130
33131 __isset_bitfield = 0;
33132 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33133 } catch (org.apache.thrift.TException te) {
33134 throw new java.io.IOException(te);
33135 }
33136 }
33137
33138 private static class mutateRowsTs_argsStandardSchemeFactory implements SchemeFactory {
33139 public mutateRowsTs_argsStandardScheme getScheme() {
33140 return new mutateRowsTs_argsStandardScheme();
33141 }
33142 }
33143
33144 private static class mutateRowsTs_argsStandardScheme extends StandardScheme<mutateRowsTs_args> {
33145
33146 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowsTs_args struct) throws org.apache.thrift.TException {
33147 org.apache.thrift.protocol.TField schemeField;
33148 iprot.readStructBegin();
33149 while (true)
33150 {
33151 schemeField = iprot.readFieldBegin();
33152 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
33153 break;
33154 }
33155 switch (schemeField.id) {
33156 case 1:
33157 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
33158 struct.tableName = iprot.readBinary();
33159 struct.setTableNameIsSet(true);
33160 } else {
33161 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33162 }
33163 break;
33164 case 2:
33165 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
33166 {
33167 org.apache.thrift.protocol.TList _list400 = iprot.readListBegin();
33168 struct.rowBatches = new ArrayList<BatchMutation>(_list400.size);
33169 for (int _i401 = 0; _i401 < _list400.size; ++_i401)
33170 {
33171 BatchMutation _elem402;
33172 _elem402 = new BatchMutation();
33173 _elem402.read(iprot);
33174 struct.rowBatches.add(_elem402);
33175 }
33176 iprot.readListEnd();
33177 }
33178 struct.setRowBatchesIsSet(true);
33179 } else {
33180 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33181 }
33182 break;
33183 case 3:
33184 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
33185 struct.timestamp = iprot.readI64();
33186 struct.setTimestampIsSet(true);
33187 } else {
33188 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33189 }
33190 break;
33191 case 4:
33192 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
33193 {
33194 org.apache.thrift.protocol.TMap _map403 = iprot.readMapBegin();
33195 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map403.size);
33196 for (int _i404 = 0; _i404 < _map403.size; ++_i404)
33197 {
33198 ByteBuffer _key405;
33199 ByteBuffer _val406;
33200 _key405 = iprot.readBinary();
33201 _val406 = iprot.readBinary();
33202 struct.attributes.put(_key405, _val406);
33203 }
33204 iprot.readMapEnd();
33205 }
33206 struct.setAttributesIsSet(true);
33207 } else {
33208 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33209 }
33210 break;
33211 default:
33212 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33213 }
33214 iprot.readFieldEnd();
33215 }
33216 iprot.readStructEnd();
33217
33218
33219 struct.validate();
33220 }
33221
33222 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowsTs_args struct) throws org.apache.thrift.TException {
33223 struct.validate();
33224
33225 oprot.writeStructBegin(STRUCT_DESC);
33226 if (struct.tableName != null) {
33227 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
33228 oprot.writeBinary(struct.tableName);
33229 oprot.writeFieldEnd();
33230 }
33231 if (struct.rowBatches != null) {
33232 oprot.writeFieldBegin(ROW_BATCHES_FIELD_DESC);
33233 {
33234 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.rowBatches.size()));
33235 for (BatchMutation _iter407 : struct.rowBatches)
33236 {
33237 _iter407.write(oprot);
33238 }
33239 oprot.writeListEnd();
33240 }
33241 oprot.writeFieldEnd();
33242 }
33243 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
33244 oprot.writeI64(struct.timestamp);
33245 oprot.writeFieldEnd();
33246 if (struct.attributes != null) {
33247 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
33248 {
33249 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
33250 for (Map.Entry<ByteBuffer, ByteBuffer> _iter408 : struct.attributes.entrySet())
33251 {
33252 oprot.writeBinary(_iter408.getKey());
33253 oprot.writeBinary(_iter408.getValue());
33254 }
33255 oprot.writeMapEnd();
33256 }
33257 oprot.writeFieldEnd();
33258 }
33259 oprot.writeFieldStop();
33260 oprot.writeStructEnd();
33261 }
33262
33263 }
33264
33265 private static class mutateRowsTs_argsTupleSchemeFactory implements SchemeFactory {
33266 public mutateRowsTs_argsTupleScheme getScheme() {
33267 return new mutateRowsTs_argsTupleScheme();
33268 }
33269 }
33270
33271 private static class mutateRowsTs_argsTupleScheme extends TupleScheme<mutateRowsTs_args> {
33272
33273 @Override
33274 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_args struct) throws org.apache.thrift.TException {
33275 TTupleProtocol oprot = (TTupleProtocol) prot;
33276 BitSet optionals = new BitSet();
33277 if (struct.isSetTableName()) {
33278 optionals.set(0);
33279 }
33280 if (struct.isSetRowBatches()) {
33281 optionals.set(1);
33282 }
33283 if (struct.isSetTimestamp()) {
33284 optionals.set(2);
33285 }
33286 if (struct.isSetAttributes()) {
33287 optionals.set(3);
33288 }
33289 oprot.writeBitSet(optionals, 4);
33290 if (struct.isSetTableName()) {
33291 oprot.writeBinary(struct.tableName);
33292 }
33293 if (struct.isSetRowBatches()) {
33294 {
33295 oprot.writeI32(struct.rowBatches.size());
33296 for (BatchMutation _iter409 : struct.rowBatches)
33297 {
33298 _iter409.write(oprot);
33299 }
33300 }
33301 }
33302 if (struct.isSetTimestamp()) {
33303 oprot.writeI64(struct.timestamp);
33304 }
33305 if (struct.isSetAttributes()) {
33306 {
33307 oprot.writeI32(struct.attributes.size());
33308 for (Map.Entry<ByteBuffer, ByteBuffer> _iter410 : struct.attributes.entrySet())
33309 {
33310 oprot.writeBinary(_iter410.getKey());
33311 oprot.writeBinary(_iter410.getValue());
33312 }
33313 }
33314 }
33315 }
33316
33317 @Override
33318 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_args struct) throws org.apache.thrift.TException {
33319 TTupleProtocol iprot = (TTupleProtocol) prot;
33320 BitSet incoming = iprot.readBitSet(4);
33321 if (incoming.get(0)) {
33322 struct.tableName = iprot.readBinary();
33323 struct.setTableNameIsSet(true);
33324 }
33325 if (incoming.get(1)) {
33326 {
33327 org.apache.thrift.protocol.TList _list411 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
33328 struct.rowBatches = new ArrayList<BatchMutation>(_list411.size);
33329 for (int _i412 = 0; _i412 < _list411.size; ++_i412)
33330 {
33331 BatchMutation _elem413;
33332 _elem413 = new BatchMutation();
33333 _elem413.read(iprot);
33334 struct.rowBatches.add(_elem413);
33335 }
33336 }
33337 struct.setRowBatchesIsSet(true);
33338 }
33339 if (incoming.get(2)) {
33340 struct.timestamp = iprot.readI64();
33341 struct.setTimestampIsSet(true);
33342 }
33343 if (incoming.get(3)) {
33344 {
33345 org.apache.thrift.protocol.TMap _map414 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
33346 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map414.size);
33347 for (int _i415 = 0; _i415 < _map414.size; ++_i415)
33348 {
33349 ByteBuffer _key416;
33350 ByteBuffer _val417;
33351 _key416 = iprot.readBinary();
33352 _val417 = iprot.readBinary();
33353 struct.attributes.put(_key416, _val417);
33354 }
33355 }
33356 struct.setAttributesIsSet(true);
33357 }
33358 }
33359 }
33360
33361 }
33362
33363 public static class mutateRowsTs_result implements org.apache.thrift.TBase<mutateRowsTs_result, mutateRowsTs_result._Fields>, java.io.Serializable, Cloneable {
33364 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("mutateRowsTs_result");
33365
33366 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
33367 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
33368
33369 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
33370 static {
33371 schemes.put(StandardScheme.class, new mutateRowsTs_resultStandardSchemeFactory());
33372 schemes.put(TupleScheme.class, new mutateRowsTs_resultTupleSchemeFactory());
33373 }
33374
33375 public IOError io;
33376 public IllegalArgument ia;
33377
33378
33379 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33380 IO((short)1, "io"),
33381 IA((short)2, "ia");
33382
33383 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33384
33385 static {
33386 for (_Fields field : EnumSet.allOf(_Fields.class)) {
33387 byName.put(field.getFieldName(), field);
33388 }
33389 }
33390
33391
33392
33393
33394 public static _Fields findByThriftId(int fieldId) {
33395 switch(fieldId) {
33396 case 1:
33397 return IO;
33398 case 2:
33399 return IA;
33400 default:
33401 return null;
33402 }
33403 }
33404
33405
33406
33407
33408
33409 public static _Fields findByThriftIdOrThrow(int fieldId) {
33410 _Fields fields = findByThriftId(fieldId);
33411 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33412 return fields;
33413 }
33414
33415
33416
33417
33418 public static _Fields findByName(String name) {
33419 return byName.get(name);
33420 }
33421
33422 private final short _thriftId;
33423 private final String _fieldName;
33424
33425 _Fields(short thriftId, String fieldName) {
33426 _thriftId = thriftId;
33427 _fieldName = fieldName;
33428 }
33429
33430 public short getThriftFieldId() {
33431 return _thriftId;
33432 }
33433
33434 public String getFieldName() {
33435 return _fieldName;
33436 }
33437 }
33438
33439
33440 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33441 static {
33442 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33443 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
33444 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33445 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT,
33446 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33447 metaDataMap = Collections.unmodifiableMap(tmpMap);
33448 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(mutateRowsTs_result.class, metaDataMap);
33449 }
33450
33451 public mutateRowsTs_result() {
33452 }
33453
33454 public mutateRowsTs_result(
33455 IOError io,
33456 IllegalArgument ia)
33457 {
33458 this();
33459 this.io = io;
33460 this.ia = ia;
33461 }
33462
33463
33464
33465
33466 public mutateRowsTs_result(mutateRowsTs_result other) {
33467 if (other.isSetIo()) {
33468 this.io = new IOError(other.io);
33469 }
33470 if (other.isSetIa()) {
33471 this.ia = new IllegalArgument(other.ia);
33472 }
33473 }
33474
33475 public mutateRowsTs_result deepCopy() {
33476 return new mutateRowsTs_result(this);
33477 }
33478
33479 @Override
33480 public void clear() {
33481 this.io = null;
33482 this.ia = null;
33483 }
33484
33485 public IOError getIo() {
33486 return this.io;
33487 }
33488
33489 public mutateRowsTs_result setIo(IOError io) {
33490 this.io = io;
33491 return this;
33492 }
33493
33494 public void unsetIo() {
33495 this.io = null;
33496 }
33497
33498
33499 public boolean isSetIo() {
33500 return this.io != null;
33501 }
33502
33503 public void setIoIsSet(boolean value) {
33504 if (!value) {
33505 this.io = null;
33506 }
33507 }
33508
33509 public IllegalArgument getIa() {
33510 return this.ia;
33511 }
33512
33513 public mutateRowsTs_result setIa(IllegalArgument ia) {
33514 this.ia = ia;
33515 return this;
33516 }
33517
33518 public void unsetIa() {
33519 this.ia = null;
33520 }
33521
33522
33523 public boolean isSetIa() {
33524 return this.ia != null;
33525 }
33526
33527 public void setIaIsSet(boolean value) {
33528 if (!value) {
33529 this.ia = null;
33530 }
33531 }
33532
33533 public void setFieldValue(_Fields field, Object value) {
33534 switch (field) {
33535 case IO:
33536 if (value == null) {
33537 unsetIo();
33538 } else {
33539 setIo((IOError)value);
33540 }
33541 break;
33542
33543 case IA:
33544 if (value == null) {
33545 unsetIa();
33546 } else {
33547 setIa((IllegalArgument)value);
33548 }
33549 break;
33550
33551 }
33552 }
33553
33554 public Object getFieldValue(_Fields field) {
33555 switch (field) {
33556 case IO:
33557 return getIo();
33558
33559 case IA:
33560 return getIa();
33561
33562 }
33563 throw new IllegalStateException();
33564 }
33565
33566
33567 public boolean isSet(_Fields field) {
33568 if (field == null) {
33569 throw new IllegalArgumentException();
33570 }
33571
33572 switch (field) {
33573 case IO:
33574 return isSetIo();
33575 case IA:
33576 return isSetIa();
33577 }
33578 throw new IllegalStateException();
33579 }
33580
33581 @Override
33582 public boolean equals(Object that) {
33583 if (that == null)
33584 return false;
33585 if (that instanceof mutateRowsTs_result)
33586 return this.equals((mutateRowsTs_result)that);
33587 return false;
33588 }
33589
33590 public boolean equals(mutateRowsTs_result that) {
33591 if (that == null)
33592 return false;
33593
33594 boolean this_present_io = true && this.isSetIo();
33595 boolean that_present_io = true && that.isSetIo();
33596 if (this_present_io || that_present_io) {
33597 if (!(this_present_io && that_present_io))
33598 return false;
33599 if (!this.io.equals(that.io))
33600 return false;
33601 }
33602
33603 boolean this_present_ia = true && this.isSetIa();
33604 boolean that_present_ia = true && that.isSetIa();
33605 if (this_present_ia || that_present_ia) {
33606 if (!(this_present_ia && that_present_ia))
33607 return false;
33608 if (!this.ia.equals(that.ia))
33609 return false;
33610 }
33611
33612 return true;
33613 }
33614
33615 @Override
33616 public int hashCode() {
33617 HashCodeBuilder builder = new HashCodeBuilder();
33618
33619 boolean present_io = true && (isSetIo());
33620 builder.append(present_io);
33621 if (present_io)
33622 builder.append(io);
33623
33624 boolean present_ia = true && (isSetIa());
33625 builder.append(present_ia);
33626 if (present_ia)
33627 builder.append(ia);
33628
33629 return builder.toHashCode();
33630 }
33631
33632 public int compareTo(mutateRowsTs_result other) {
33633 if (!getClass().equals(other.getClass())) {
33634 return getClass().getName().compareTo(other.getClass().getName());
33635 }
33636
33637 int lastComparison = 0;
33638 mutateRowsTs_result typedOther = (mutateRowsTs_result)other;
33639
33640 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
33641 if (lastComparison != 0) {
33642 return lastComparison;
33643 }
33644 if (isSetIo()) {
33645 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
33646 if (lastComparison != 0) {
33647 return lastComparison;
33648 }
33649 }
33650 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
33651 if (lastComparison != 0) {
33652 return lastComparison;
33653 }
33654 if (isSetIa()) {
33655 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
33656 if (lastComparison != 0) {
33657 return lastComparison;
33658 }
33659 }
33660 return 0;
33661 }
33662
33663 public _Fields fieldForId(int fieldId) {
33664 return _Fields.findByThriftId(fieldId);
33665 }
33666
33667 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33668 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
33669 }
33670
33671 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33672 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
33673 }
33674
33675 @Override
33676 public String toString() {
33677 StringBuilder sb = new StringBuilder("mutateRowsTs_result(");
33678 boolean first = true;
33679
33680 sb.append("io:");
33681 if (this.io == null) {
33682 sb.append("null");
33683 } else {
33684 sb.append(this.io);
33685 }
33686 first = false;
33687 if (!first) sb.append(", ");
33688 sb.append("ia:");
33689 if (this.ia == null) {
33690 sb.append("null");
33691 } else {
33692 sb.append(this.ia);
33693 }
33694 first = false;
33695 sb.append(")");
33696 return sb.toString();
33697 }
33698
33699 public void validate() throws org.apache.thrift.TException {
33700
33701
33702 }
33703
33704 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33705 try {
33706 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33707 } catch (org.apache.thrift.TException te) {
33708 throw new java.io.IOException(te);
33709 }
33710 }
33711
33712 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33713 try {
33714 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33715 } catch (org.apache.thrift.TException te) {
33716 throw new java.io.IOException(te);
33717 }
33718 }
33719
33720 private static class mutateRowsTs_resultStandardSchemeFactory implements SchemeFactory {
33721 public mutateRowsTs_resultStandardScheme getScheme() {
33722 return new mutateRowsTs_resultStandardScheme();
33723 }
33724 }
33725
33726 private static class mutateRowsTs_resultStandardScheme extends StandardScheme<mutateRowsTs_result> {
33727
33728 public void read(org.apache.thrift.protocol.TProtocol iprot, mutateRowsTs_result struct) throws org.apache.thrift.TException {
33729 org.apache.thrift.protocol.TField schemeField;
33730 iprot.readStructBegin();
33731 while (true)
33732 {
33733 schemeField = iprot.readFieldBegin();
33734 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
33735 break;
33736 }
33737 switch (schemeField.id) {
33738 case 1:
33739 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
33740 struct.io = new IOError();
33741 struct.io.read(iprot);
33742 struct.setIoIsSet(true);
33743 } else {
33744 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33745 }
33746 break;
33747 case 2:
33748 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
33749 struct.ia = new IllegalArgument();
33750 struct.ia.read(iprot);
33751 struct.setIaIsSet(true);
33752 } else {
33753 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33754 }
33755 break;
33756 default:
33757 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
33758 }
33759 iprot.readFieldEnd();
33760 }
33761 iprot.readStructEnd();
33762
33763
33764 struct.validate();
33765 }
33766
33767 public void write(org.apache.thrift.protocol.TProtocol oprot, mutateRowsTs_result struct) throws org.apache.thrift.TException {
33768 struct.validate();
33769
33770 oprot.writeStructBegin(STRUCT_DESC);
33771 if (struct.io != null) {
33772 oprot.writeFieldBegin(IO_FIELD_DESC);
33773 struct.io.write(oprot);
33774 oprot.writeFieldEnd();
33775 }
33776 if (struct.ia != null) {
33777 oprot.writeFieldBegin(IA_FIELD_DESC);
33778 struct.ia.write(oprot);
33779 oprot.writeFieldEnd();
33780 }
33781 oprot.writeFieldStop();
33782 oprot.writeStructEnd();
33783 }
33784
33785 }
33786
33787 private static class mutateRowsTs_resultTupleSchemeFactory implements SchemeFactory {
33788 public mutateRowsTs_resultTupleScheme getScheme() {
33789 return new mutateRowsTs_resultTupleScheme();
33790 }
33791 }
33792
33793 private static class mutateRowsTs_resultTupleScheme extends TupleScheme<mutateRowsTs_result> {
33794
33795 @Override
33796 public void write(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_result struct) throws org.apache.thrift.TException {
33797 TTupleProtocol oprot = (TTupleProtocol) prot;
33798 BitSet optionals = new BitSet();
33799 if (struct.isSetIo()) {
33800 optionals.set(0);
33801 }
33802 if (struct.isSetIa()) {
33803 optionals.set(1);
33804 }
33805 oprot.writeBitSet(optionals, 2);
33806 if (struct.isSetIo()) {
33807 struct.io.write(oprot);
33808 }
33809 if (struct.isSetIa()) {
33810 struct.ia.write(oprot);
33811 }
33812 }
33813
33814 @Override
33815 public void read(org.apache.thrift.protocol.TProtocol prot, mutateRowsTs_result struct) throws org.apache.thrift.TException {
33816 TTupleProtocol iprot = (TTupleProtocol) prot;
33817 BitSet incoming = iprot.readBitSet(2);
33818 if (incoming.get(0)) {
33819 struct.io = new IOError();
33820 struct.io.read(iprot);
33821 struct.setIoIsSet(true);
33822 }
33823 if (incoming.get(1)) {
33824 struct.ia = new IllegalArgument();
33825 struct.ia.read(iprot);
33826 struct.setIaIsSet(true);
33827 }
33828 }
33829 }
33830
33831 }
33832
33833 public static class atomicIncrement_args implements org.apache.thrift.TBase<atomicIncrement_args, atomicIncrement_args._Fields>, java.io.Serializable, Cloneable {
33834 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("atomicIncrement_args");
33835
33836 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
33837 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
33838 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
33839 private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I64, (short)4);
33840
33841 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
33842 static {
33843 schemes.put(StandardScheme.class, new atomicIncrement_argsStandardSchemeFactory());
33844 schemes.put(TupleScheme.class, new atomicIncrement_argsTupleSchemeFactory());
33845 }
33846
33847
33848
33849
33850 public ByteBuffer tableName;
33851
33852
33853
33854 public ByteBuffer row;
33855
33856
33857
33858 public ByteBuffer column;
33859
33860
33861
33862 public long value;
33863
33864
33865 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33866
33867
33868
33869 TABLE_NAME((short)1, "tableName"),
33870
33871
33872
33873 ROW((short)2, "row"),
33874
33875
33876
33877 COLUMN((short)3, "column"),
33878
33879
33880
33881 VALUE((short)4, "value");
33882
33883 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33884
33885 static {
33886 for (_Fields field : EnumSet.allOf(_Fields.class)) {
33887 byName.put(field.getFieldName(), field);
33888 }
33889 }
33890
33891
33892
33893
33894 public static _Fields findByThriftId(int fieldId) {
33895 switch(fieldId) {
33896 case 1:
33897 return TABLE_NAME;
33898 case 2:
33899 return ROW;
33900 case 3:
33901 return COLUMN;
33902 case 4:
33903 return VALUE;
33904 default:
33905 return null;
33906 }
33907 }
33908
33909
33910
33911
33912
33913 public static _Fields findByThriftIdOrThrow(int fieldId) {
33914 _Fields fields = findByThriftId(fieldId);
33915 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33916 return fields;
33917 }
33918
33919
33920
33921
33922 public static _Fields findByName(String name) {
33923 return byName.get(name);
33924 }
33925
33926 private final short _thriftId;
33927 private final String _fieldName;
33928
33929 _Fields(short thriftId, String fieldName) {
33930 _thriftId = thriftId;
33931 _fieldName = fieldName;
33932 }
33933
33934 public short getThriftFieldId() {
33935 return _thriftId;
33936 }
33937
33938 public String getFieldName() {
33939 return _fieldName;
33940 }
33941 }
33942
33943
33944 private static final int __VALUE_ISSET_ID = 0;
33945 private byte __isset_bitfield = 0;
33946 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33947 static {
33948 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33949 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
33950 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
33951 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
33952 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
33953 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT,
33954 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
33955 tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT,
33956 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33957 metaDataMap = Collections.unmodifiableMap(tmpMap);
33958 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(atomicIncrement_args.class, metaDataMap);
33959 }
33960
33961 public atomicIncrement_args() {
33962 }
33963
33964 public atomicIncrement_args(
33965 ByteBuffer tableName,
33966 ByteBuffer row,
33967 ByteBuffer column,
33968 long value)
33969 {
33970 this();
33971 this.tableName = tableName;
33972 this.row = row;
33973 this.column = column;
33974 this.value = value;
33975 setValueIsSet(true);
33976 }
33977
33978
33979
33980
33981 public atomicIncrement_args(atomicIncrement_args other) {
33982 __isset_bitfield = other.__isset_bitfield;
33983 if (other.isSetTableName()) {
33984 this.tableName = other.tableName;
33985 }
33986 if (other.isSetRow()) {
33987 this.row = other.row;
33988 }
33989 if (other.isSetColumn()) {
33990 this.column = other.column;
33991 }
33992 this.value = other.value;
33993 }
33994
33995 public atomicIncrement_args deepCopy() {
33996 return new atomicIncrement_args(this);
33997 }
33998
33999 @Override
34000 public void clear() {
34001 this.tableName = null;
34002 this.row = null;
34003 this.column = null;
34004 setValueIsSet(false);
34005 this.value = 0;
34006 }
34007
34008
34009
34010
34011 public byte[] getTableName() {
34012 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
34013 return tableName == null ? null : tableName.array();
34014 }
34015
34016 public ByteBuffer bufferForTableName() {
34017 return tableName;
34018 }
34019
34020
34021
34022
34023 public atomicIncrement_args setTableName(byte[] tableName) {
34024 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
34025 return this;
34026 }
34027
34028 public atomicIncrement_args setTableName(ByteBuffer tableName) {
34029 this.tableName = tableName;
34030 return this;
34031 }
34032
34033 public void unsetTableName() {
34034 this.tableName = null;
34035 }
34036
34037
34038 public boolean isSetTableName() {
34039 return this.tableName != null;
34040 }
34041
34042 public void setTableNameIsSet(boolean value) {
34043 if (!value) {
34044 this.tableName = null;
34045 }
34046 }
34047
34048
34049
34050
34051 public byte[] getRow() {
34052 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
34053 return row == null ? null : row.array();
34054 }
34055
34056 public ByteBuffer bufferForRow() {
34057 return row;
34058 }
34059
34060
34061
34062
34063 public atomicIncrement_args setRow(byte[] row) {
34064 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
34065 return this;
34066 }
34067
34068 public atomicIncrement_args setRow(ByteBuffer row) {
34069 this.row = row;
34070 return this;
34071 }
34072
34073 public void unsetRow() {
34074 this.row = null;
34075 }
34076
34077
34078 public boolean isSetRow() {
34079 return this.row != null;
34080 }
34081
34082 public void setRowIsSet(boolean value) {
34083 if (!value) {
34084 this.row = null;
34085 }
34086 }
34087
34088
34089
34090
34091 public byte[] getColumn() {
34092 setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
34093 return column == null ? null : column.array();
34094 }
34095
34096 public ByteBuffer bufferForColumn() {
34097 return column;
34098 }
34099
34100
34101
34102
34103 public atomicIncrement_args setColumn(byte[] column) {
34104 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
34105 return this;
34106 }
34107
34108 public atomicIncrement_args setColumn(ByteBuffer column) {
34109 this.column = column;
34110 return this;
34111 }
34112
34113 public void unsetColumn() {
34114 this.column = null;
34115 }
34116
34117
34118 public boolean isSetColumn() {
34119 return this.column != null;
34120 }
34121
34122 public void setColumnIsSet(boolean value) {
34123 if (!value) {
34124 this.column = null;
34125 }
34126 }
34127
34128
34129
34130
34131 public long getValue() {
34132 return this.value;
34133 }
34134
34135
34136
34137
34138 public atomicIncrement_args setValue(long value) {
34139 this.value = value;
34140 setValueIsSet(true);
34141 return this;
34142 }
34143
34144 public void unsetValue() {
34145 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __VALUE_ISSET_ID);
34146 }
34147
34148
34149 public boolean isSetValue() {
34150 return EncodingUtils.testBit(__isset_bitfield, __VALUE_ISSET_ID);
34151 }
34152
34153 public void setValueIsSet(boolean value) {
34154 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __VALUE_ISSET_ID, value);
34155 }
34156
34157 public void setFieldValue(_Fields field, Object value) {
34158 switch (field) {
34159 case TABLE_NAME:
34160 if (value == null) {
34161 unsetTableName();
34162 } else {
34163 setTableName((ByteBuffer)value);
34164 }
34165 break;
34166
34167 case ROW:
34168 if (value == null) {
34169 unsetRow();
34170 } else {
34171 setRow((ByteBuffer)value);
34172 }
34173 break;
34174
34175 case COLUMN:
34176 if (value == null) {
34177 unsetColumn();
34178 } else {
34179 setColumn((ByteBuffer)value);
34180 }
34181 break;
34182
34183 case VALUE:
34184 if (value == null) {
34185 unsetValue();
34186 } else {
34187 setValue((Long)value);
34188 }
34189 break;
34190
34191 }
34192 }
34193
34194 public Object getFieldValue(_Fields field) {
34195 switch (field) {
34196 case TABLE_NAME:
34197 return getTableName();
34198
34199 case ROW:
34200 return getRow();
34201
34202 case COLUMN:
34203 return getColumn();
34204
34205 case VALUE:
34206 return Long.valueOf(getValue());
34207
34208 }
34209 throw new IllegalStateException();
34210 }
34211
34212
34213 public boolean isSet(_Fields field) {
34214 if (field == null) {
34215 throw new IllegalArgumentException();
34216 }
34217
34218 switch (field) {
34219 case TABLE_NAME:
34220 return isSetTableName();
34221 case ROW:
34222 return isSetRow();
34223 case COLUMN:
34224 return isSetColumn();
34225 case VALUE:
34226 return isSetValue();
34227 }
34228 throw new IllegalStateException();
34229 }
34230
34231 @Override
34232 public boolean equals(Object that) {
34233 if (that == null)
34234 return false;
34235 if (that instanceof atomicIncrement_args)
34236 return this.equals((atomicIncrement_args)that);
34237 return false;
34238 }
34239
34240 public boolean equals(atomicIncrement_args that) {
34241 if (that == null)
34242 return false;
34243
34244 boolean this_present_tableName = true && this.isSetTableName();
34245 boolean that_present_tableName = true && that.isSetTableName();
34246 if (this_present_tableName || that_present_tableName) {
34247 if (!(this_present_tableName && that_present_tableName))
34248 return false;
34249 if (!this.tableName.equals(that.tableName))
34250 return false;
34251 }
34252
34253 boolean this_present_row = true && this.isSetRow();
34254 boolean that_present_row = true && that.isSetRow();
34255 if (this_present_row || that_present_row) {
34256 if (!(this_present_row && that_present_row))
34257 return false;
34258 if (!this.row.equals(that.row))
34259 return false;
34260 }
34261
34262 boolean this_present_column = true && this.isSetColumn();
34263 boolean that_present_column = true && that.isSetColumn();
34264 if (this_present_column || that_present_column) {
34265 if (!(this_present_column && that_present_column))
34266 return false;
34267 if (!this.column.equals(that.column))
34268 return false;
34269 }
34270
34271 boolean this_present_value = true;
34272 boolean that_present_value = true;
34273 if (this_present_value || that_present_value) {
34274 if (!(this_present_value && that_present_value))
34275 return false;
34276 if (this.value != that.value)
34277 return false;
34278 }
34279
34280 return true;
34281 }
34282
34283 @Override
34284 public int hashCode() {
34285 HashCodeBuilder builder = new HashCodeBuilder();
34286
34287 boolean present_tableName = true && (isSetTableName());
34288 builder.append(present_tableName);
34289 if (present_tableName)
34290 builder.append(tableName);
34291
34292 boolean present_row = true && (isSetRow());
34293 builder.append(present_row);
34294 if (present_row)
34295 builder.append(row);
34296
34297 boolean present_column = true && (isSetColumn());
34298 builder.append(present_column);
34299 if (present_column)
34300 builder.append(column);
34301
34302 boolean present_value = true;
34303 builder.append(present_value);
34304 if (present_value)
34305 builder.append(value);
34306
34307 return builder.toHashCode();
34308 }
34309
34310 public int compareTo(atomicIncrement_args other) {
34311 if (!getClass().equals(other.getClass())) {
34312 return getClass().getName().compareTo(other.getClass().getName());
34313 }
34314
34315 int lastComparison = 0;
34316 atomicIncrement_args typedOther = (atomicIncrement_args)other;
34317
34318 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
34319 if (lastComparison != 0) {
34320 return lastComparison;
34321 }
34322 if (isSetTableName()) {
34323 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
34324 if (lastComparison != 0) {
34325 return lastComparison;
34326 }
34327 }
34328 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
34329 if (lastComparison != 0) {
34330 return lastComparison;
34331 }
34332 if (isSetRow()) {
34333 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
34334 if (lastComparison != 0) {
34335 return lastComparison;
34336 }
34337 }
34338 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
34339 if (lastComparison != 0) {
34340 return lastComparison;
34341 }
34342 if (isSetColumn()) {
34343 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
34344 if (lastComparison != 0) {
34345 return lastComparison;
34346 }
34347 }
34348 lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
34349 if (lastComparison != 0) {
34350 return lastComparison;
34351 }
34352 if (isSetValue()) {
34353 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
34354 if (lastComparison != 0) {
34355 return lastComparison;
34356 }
34357 }
34358 return 0;
34359 }
34360
34361 public _Fields fieldForId(int fieldId) {
34362 return _Fields.findByThriftId(fieldId);
34363 }
34364
34365 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34366 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
34367 }
34368
34369 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34370 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
34371 }
34372
34373 @Override
34374 public String toString() {
34375 StringBuilder sb = new StringBuilder("atomicIncrement_args(");
34376 boolean first = true;
34377
34378 sb.append("tableName:");
34379 if (this.tableName == null) {
34380 sb.append("null");
34381 } else {
34382 sb.append(this.tableName);
34383 }
34384 first = false;
34385 if (!first) sb.append(", ");
34386 sb.append("row:");
34387 if (this.row == null) {
34388 sb.append("null");
34389 } else {
34390 sb.append(this.row);
34391 }
34392 first = false;
34393 if (!first) sb.append(", ");
34394 sb.append("column:");
34395 if (this.column == null) {
34396 sb.append("null");
34397 } else {
34398 sb.append(this.column);
34399 }
34400 first = false;
34401 if (!first) sb.append(", ");
34402 sb.append("value:");
34403 sb.append(this.value);
34404 first = false;
34405 sb.append(")");
34406 return sb.toString();
34407 }
34408
34409 public void validate() throws org.apache.thrift.TException {
34410
34411
34412 }
34413
34414 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34415 try {
34416 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34417 } catch (org.apache.thrift.TException te) {
34418 throw new java.io.IOException(te);
34419 }
34420 }
34421
34422 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34423 try {
34424
34425 __isset_bitfield = 0;
34426 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34427 } catch (org.apache.thrift.TException te) {
34428 throw new java.io.IOException(te);
34429 }
34430 }
34431
34432 private static class atomicIncrement_argsStandardSchemeFactory implements SchemeFactory {
34433 public atomicIncrement_argsStandardScheme getScheme() {
34434 return new atomicIncrement_argsStandardScheme();
34435 }
34436 }
34437
34438 private static class atomicIncrement_argsStandardScheme extends StandardScheme<atomicIncrement_args> {
34439
34440 public void read(org.apache.thrift.protocol.TProtocol iprot, atomicIncrement_args struct) throws org.apache.thrift.TException {
34441 org.apache.thrift.protocol.TField schemeField;
34442 iprot.readStructBegin();
34443 while (true)
34444 {
34445 schemeField = iprot.readFieldBegin();
34446 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
34447 break;
34448 }
34449 switch (schemeField.id) {
34450 case 1:
34451 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
34452 struct.tableName = iprot.readBinary();
34453 struct.setTableNameIsSet(true);
34454 } else {
34455 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34456 }
34457 break;
34458 case 2:
34459 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
34460 struct.row = iprot.readBinary();
34461 struct.setRowIsSet(true);
34462 } else {
34463 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34464 }
34465 break;
34466 case 3:
34467 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
34468 struct.column = iprot.readBinary();
34469 struct.setColumnIsSet(true);
34470 } else {
34471 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34472 }
34473 break;
34474 case 4:
34475 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
34476 struct.value = iprot.readI64();
34477 struct.setValueIsSet(true);
34478 } else {
34479 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34480 }
34481 break;
34482 default:
34483 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
34484 }
34485 iprot.readFieldEnd();
34486 }
34487 iprot.readStructEnd();
34488
34489
34490 struct.validate();
34491 }
34492
34493 public void write(org.apache.thrift.protocol.TProtocol oprot, atomicIncrement_args struct) throws org.apache.thrift.TException {
34494 struct.validate();
34495
34496 oprot.writeStructBegin(STRUCT_DESC);
34497 if (struct.tableName != null) {
34498 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
34499 oprot.writeBinary(struct.tableName);
34500 oprot.writeFieldEnd();
34501 }
34502 if (struct.row != null) {
34503 oprot.writeFieldBegin(ROW_FIELD_DESC);
34504 oprot.writeBinary(struct.row);
34505 oprot.writeFieldEnd();
34506 }
34507 if (struct.column != null) {
34508 oprot.writeFieldBegin(COLUMN_FIELD_DESC);
34509 oprot.writeBinary(struct.column);
34510 oprot.writeFieldEnd();
34511 }
34512 oprot.writeFieldBegin(VALUE_FIELD_DESC);
34513 oprot.writeI64(struct.value);
34514 oprot.writeFieldEnd();
34515 oprot.writeFieldStop();
34516 oprot.writeStructEnd();
34517 }
34518
34519 }
34520
34521 private static class atomicIncrement_argsTupleSchemeFactory implements SchemeFactory {
34522 public atomicIncrement_argsTupleScheme getScheme() {
34523 return new atomicIncrement_argsTupleScheme();
34524 }
34525 }
34526
34527 private static class atomicIncrement_argsTupleScheme extends TupleScheme<atomicIncrement_args> {
34528
34529 @Override
34530 public void write(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_args struct) throws org.apache.thrift.TException {
34531 TTupleProtocol oprot = (TTupleProtocol) prot;
34532 BitSet optionals = new BitSet();
34533 if (struct.isSetTableName()) {
34534 optionals.set(0);
34535 }
34536 if (struct.isSetRow()) {
34537 optionals.set(1);
34538 }
34539 if (struct.isSetColumn()) {
34540 optionals.set(2);
34541 }
34542 if (struct.isSetValue()) {
34543 optionals.set(3);
34544 }
34545 oprot.writeBitSet(optionals, 4);
34546 if (struct.isSetTableName()) {
34547 oprot.writeBinary(struct.tableName);
34548 }
34549 if (struct.isSetRow()) {
34550 oprot.writeBinary(struct.row);
34551 }
34552 if (struct.isSetColumn()) {
34553 oprot.writeBinary(struct.column);
34554 }
34555 if (struct.isSetValue()) {
34556 oprot.writeI64(struct.value);
34557 }
34558 }
34559
34560 @Override
34561 public void read(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_args struct) throws org.apache.thrift.TException {
34562 TTupleProtocol iprot = (TTupleProtocol) prot;
34563 BitSet incoming = iprot.readBitSet(4);
34564 if (incoming.get(0)) {
34565 struct.tableName = iprot.readBinary();
34566 struct.setTableNameIsSet(true);
34567 }
34568 if (incoming.get(1)) {
34569 struct.row = iprot.readBinary();
34570 struct.setRowIsSet(true);
34571 }
34572 if (incoming.get(2)) {
34573 struct.column = iprot.readBinary();
34574 struct.setColumnIsSet(true);
34575 }
34576 if (incoming.get(3)) {
34577 struct.value = iprot.readI64();
34578 struct.setValueIsSet(true);
34579 }
34580 }
34581 }
34582
34583 }
34584
34585 public static class atomicIncrement_result implements org.apache.thrift.TBase<atomicIncrement_result, atomicIncrement_result._Fields>, java.io.Serializable, Cloneable {
34586 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("atomicIncrement_result");
34587
34588 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
34589 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
34590 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
34591
34592 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
34593 static {
34594 schemes.put(StandardScheme.class, new atomicIncrement_resultStandardSchemeFactory());
34595 schemes.put(TupleScheme.class, new atomicIncrement_resultTupleSchemeFactory());
34596 }
34597
34598 public long success;
34599 public IOError io;
34600 public IllegalArgument ia;
34601
34602
34603 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34604 SUCCESS((short)0, "success"),
34605 IO((short)1, "io"),
34606 IA((short)2, "ia");
34607
34608 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34609
34610 static {
34611 for (_Fields field : EnumSet.allOf(_Fields.class)) {
34612 byName.put(field.getFieldName(), field);
34613 }
34614 }
34615
34616
34617
34618
34619 public static _Fields findByThriftId(int fieldId) {
34620 switch(fieldId) {
34621 case 0:
34622 return SUCCESS;
34623 case 1:
34624 return IO;
34625 case 2:
34626 return IA;
34627 default:
34628 return null;
34629 }
34630 }
34631
34632
34633
34634
34635
34636 public static _Fields findByThriftIdOrThrow(int fieldId) {
34637 _Fields fields = findByThriftId(fieldId);
34638 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34639 return fields;
34640 }
34641
34642
34643
34644
34645 public static _Fields findByName(String name) {
34646 return byName.get(name);
34647 }
34648
34649 private final short _thriftId;
34650 private final String _fieldName;
34651
34652 _Fields(short thriftId, String fieldName) {
34653 _thriftId = thriftId;
34654 _fieldName = fieldName;
34655 }
34656
34657 public short getThriftFieldId() {
34658 return _thriftId;
34659 }
34660
34661 public String getFieldName() {
34662 return _fieldName;
34663 }
34664 }
34665
34666
34667 private static final int __SUCCESS_ISSET_ID = 0;
34668 private byte __isset_bitfield = 0;
34669 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34670 static {
34671 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34672 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
34673 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34674 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
34675 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34676 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT,
34677 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
34678 metaDataMap = Collections.unmodifiableMap(tmpMap);
34679 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(atomicIncrement_result.class, metaDataMap);
34680 }
34681
34682 public atomicIncrement_result() {
34683 }
34684
34685 public atomicIncrement_result(
34686 long success,
34687 IOError io,
34688 IllegalArgument ia)
34689 {
34690 this();
34691 this.success = success;
34692 setSuccessIsSet(true);
34693 this.io = io;
34694 this.ia = ia;
34695 }
34696
34697
34698
34699
34700 public atomicIncrement_result(atomicIncrement_result other) {
34701 __isset_bitfield = other.__isset_bitfield;
34702 this.success = other.success;
34703 if (other.isSetIo()) {
34704 this.io = new IOError(other.io);
34705 }
34706 if (other.isSetIa()) {
34707 this.ia = new IllegalArgument(other.ia);
34708 }
34709 }
34710
34711 public atomicIncrement_result deepCopy() {
34712 return new atomicIncrement_result(this);
34713 }
34714
34715 @Override
34716 public void clear() {
34717 setSuccessIsSet(false);
34718 this.success = 0;
34719 this.io = null;
34720 this.ia = null;
34721 }
34722
34723 public long getSuccess() {
34724 return this.success;
34725 }
34726
34727 public atomicIncrement_result setSuccess(long success) {
34728 this.success = success;
34729 setSuccessIsSet(true);
34730 return this;
34731 }
34732
34733 public void unsetSuccess() {
34734 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
34735 }
34736
34737
34738 public boolean isSetSuccess() {
34739 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
34740 }
34741
34742 public void setSuccessIsSet(boolean value) {
34743 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
34744 }
34745
34746 public IOError getIo() {
34747 return this.io;
34748 }
34749
34750 public atomicIncrement_result setIo(IOError io) {
34751 this.io = io;
34752 return this;
34753 }
34754
34755 public void unsetIo() {
34756 this.io = null;
34757 }
34758
34759
34760 public boolean isSetIo() {
34761 return this.io != null;
34762 }
34763
34764 public void setIoIsSet(boolean value) {
34765 if (!value) {
34766 this.io = null;
34767 }
34768 }
34769
34770 public IllegalArgument getIa() {
34771 return this.ia;
34772 }
34773
34774 public atomicIncrement_result setIa(IllegalArgument ia) {
34775 this.ia = ia;
34776 return this;
34777 }
34778
34779 public void unsetIa() {
34780 this.ia = null;
34781 }
34782
34783
34784 public boolean isSetIa() {
34785 return this.ia != null;
34786 }
34787
34788 public void setIaIsSet(boolean value) {
34789 if (!value) {
34790 this.ia = null;
34791 }
34792 }
34793
34794 public void setFieldValue(_Fields field, Object value) {
34795 switch (field) {
34796 case SUCCESS:
34797 if (value == null) {
34798 unsetSuccess();
34799 } else {
34800 setSuccess((Long)value);
34801 }
34802 break;
34803
34804 case IO:
34805 if (value == null) {
34806 unsetIo();
34807 } else {
34808 setIo((IOError)value);
34809 }
34810 break;
34811
34812 case IA:
34813 if (value == null) {
34814 unsetIa();
34815 } else {
34816 setIa((IllegalArgument)value);
34817 }
34818 break;
34819
34820 }
34821 }
34822
34823 public Object getFieldValue(_Fields field) {
34824 switch (field) {
34825 case SUCCESS:
34826 return Long.valueOf(getSuccess());
34827
34828 case IO:
34829 return getIo();
34830
34831 case IA:
34832 return getIa();
34833
34834 }
34835 throw new IllegalStateException();
34836 }
34837
34838
34839 public boolean isSet(_Fields field) {
34840 if (field == null) {
34841 throw new IllegalArgumentException();
34842 }
34843
34844 switch (field) {
34845 case SUCCESS:
34846 return isSetSuccess();
34847 case IO:
34848 return isSetIo();
34849 case IA:
34850 return isSetIa();
34851 }
34852 throw new IllegalStateException();
34853 }
34854
34855 @Override
34856 public boolean equals(Object that) {
34857 if (that == null)
34858 return false;
34859 if (that instanceof atomicIncrement_result)
34860 return this.equals((atomicIncrement_result)that);
34861 return false;
34862 }
34863
34864 public boolean equals(atomicIncrement_result that) {
34865 if (that == null)
34866 return false;
34867
34868 boolean this_present_success = true;
34869 boolean that_present_success = true;
34870 if (this_present_success || that_present_success) {
34871 if (!(this_present_success && that_present_success))
34872 return false;
34873 if (this.success != that.success)
34874 return false;
34875 }
34876
34877 boolean this_present_io = true && this.isSetIo();
34878 boolean that_present_io = true && that.isSetIo();
34879 if (this_present_io || that_present_io) {
34880 if (!(this_present_io && that_present_io))
34881 return false;
34882 if (!this.io.equals(that.io))
34883 return false;
34884 }
34885
34886 boolean this_present_ia = true && this.isSetIa();
34887 boolean that_present_ia = true && that.isSetIa();
34888 if (this_present_ia || that_present_ia) {
34889 if (!(this_present_ia && that_present_ia))
34890 return false;
34891 if (!this.ia.equals(that.ia))
34892 return false;
34893 }
34894
34895 return true;
34896 }
34897
34898 @Override
34899 public int hashCode() {
34900 HashCodeBuilder builder = new HashCodeBuilder();
34901
34902 boolean present_success = true;
34903 builder.append(present_success);
34904 if (present_success)
34905 builder.append(success);
34906
34907 boolean present_io = true && (isSetIo());
34908 builder.append(present_io);
34909 if (present_io)
34910 builder.append(io);
34911
34912 boolean present_ia = true && (isSetIa());
34913 builder.append(present_ia);
34914 if (present_ia)
34915 builder.append(ia);
34916
34917 return builder.toHashCode();
34918 }
34919
34920 public int compareTo(atomicIncrement_result other) {
34921 if (!getClass().equals(other.getClass())) {
34922 return getClass().getName().compareTo(other.getClass().getName());
34923 }
34924
34925 int lastComparison = 0;
34926 atomicIncrement_result typedOther = (atomicIncrement_result)other;
34927
34928 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
34929 if (lastComparison != 0) {
34930 return lastComparison;
34931 }
34932 if (isSetSuccess()) {
34933 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34934 if (lastComparison != 0) {
34935 return lastComparison;
34936 }
34937 }
34938 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
34939 if (lastComparison != 0) {
34940 return lastComparison;
34941 }
34942 if (isSetIo()) {
34943 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
34944 if (lastComparison != 0) {
34945 return lastComparison;
34946 }
34947 }
34948 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
34949 if (lastComparison != 0) {
34950 return lastComparison;
34951 }
34952 if (isSetIa()) {
34953 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
34954 if (lastComparison != 0) {
34955 return lastComparison;
34956 }
34957 }
34958 return 0;
34959 }
34960
34961 public _Fields fieldForId(int fieldId) {
34962 return _Fields.findByThriftId(fieldId);
34963 }
34964
34965 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34966 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
34967 }
34968
34969 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34970 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
34971 }
34972
34973 @Override
34974 public String toString() {
34975 StringBuilder sb = new StringBuilder("atomicIncrement_result(");
34976 boolean first = true;
34977
34978 sb.append("success:");
34979 sb.append(this.success);
34980 first = false;
34981 if (!first) sb.append(", ");
34982 sb.append("io:");
34983 if (this.io == null) {
34984 sb.append("null");
34985 } else {
34986 sb.append(this.io);
34987 }
34988 first = false;
34989 if (!first) sb.append(", ");
34990 sb.append("ia:");
34991 if (this.ia == null) {
34992 sb.append("null");
34993 } else {
34994 sb.append(this.ia);
34995 }
34996 first = false;
34997 sb.append(")");
34998 return sb.toString();
34999 }
35000
35001 public void validate() throws org.apache.thrift.TException {
35002
35003
35004 }
35005
35006 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35007 try {
35008 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35009 } catch (org.apache.thrift.TException te) {
35010 throw new java.io.IOException(te);
35011 }
35012 }
35013
35014 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35015 try {
35016
35017 __isset_bitfield = 0;
35018 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35019 } catch (org.apache.thrift.TException te) {
35020 throw new java.io.IOException(te);
35021 }
35022 }
35023
35024 private static class atomicIncrement_resultStandardSchemeFactory implements SchemeFactory {
35025 public atomicIncrement_resultStandardScheme getScheme() {
35026 return new atomicIncrement_resultStandardScheme();
35027 }
35028 }
35029
35030 private static class atomicIncrement_resultStandardScheme extends StandardScheme<atomicIncrement_result> {
35031
35032 public void read(org.apache.thrift.protocol.TProtocol iprot, atomicIncrement_result struct) throws org.apache.thrift.TException {
35033 org.apache.thrift.protocol.TField schemeField;
35034 iprot.readStructBegin();
35035 while (true)
35036 {
35037 schemeField = iprot.readFieldBegin();
35038 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
35039 break;
35040 }
35041 switch (schemeField.id) {
35042 case 0:
35043 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
35044 struct.success = iprot.readI64();
35045 struct.setSuccessIsSet(true);
35046 } else {
35047 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35048 }
35049 break;
35050 case 1:
35051 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
35052 struct.io = new IOError();
35053 struct.io.read(iprot);
35054 struct.setIoIsSet(true);
35055 } else {
35056 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35057 }
35058 break;
35059 case 2:
35060 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
35061 struct.ia = new IllegalArgument();
35062 struct.ia.read(iprot);
35063 struct.setIaIsSet(true);
35064 } else {
35065 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35066 }
35067 break;
35068 default:
35069 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35070 }
35071 iprot.readFieldEnd();
35072 }
35073 iprot.readStructEnd();
35074
35075
35076 struct.validate();
35077 }
35078
35079 public void write(org.apache.thrift.protocol.TProtocol oprot, atomicIncrement_result struct) throws org.apache.thrift.TException {
35080 struct.validate();
35081
35082 oprot.writeStructBegin(STRUCT_DESC);
35083 if (struct.isSetSuccess()) {
35084 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35085 oprot.writeI64(struct.success);
35086 oprot.writeFieldEnd();
35087 }
35088 if (struct.io != null) {
35089 oprot.writeFieldBegin(IO_FIELD_DESC);
35090 struct.io.write(oprot);
35091 oprot.writeFieldEnd();
35092 }
35093 if (struct.ia != null) {
35094 oprot.writeFieldBegin(IA_FIELD_DESC);
35095 struct.ia.write(oprot);
35096 oprot.writeFieldEnd();
35097 }
35098 oprot.writeFieldStop();
35099 oprot.writeStructEnd();
35100 }
35101
35102 }
35103
35104 private static class atomicIncrement_resultTupleSchemeFactory implements SchemeFactory {
35105 public atomicIncrement_resultTupleScheme getScheme() {
35106 return new atomicIncrement_resultTupleScheme();
35107 }
35108 }
35109
35110 private static class atomicIncrement_resultTupleScheme extends TupleScheme<atomicIncrement_result> {
35111
35112 @Override
35113 public void write(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_result struct) throws org.apache.thrift.TException {
35114 TTupleProtocol oprot = (TTupleProtocol) prot;
35115 BitSet optionals = new BitSet();
35116 if (struct.isSetSuccess()) {
35117 optionals.set(0);
35118 }
35119 if (struct.isSetIo()) {
35120 optionals.set(1);
35121 }
35122 if (struct.isSetIa()) {
35123 optionals.set(2);
35124 }
35125 oprot.writeBitSet(optionals, 3);
35126 if (struct.isSetSuccess()) {
35127 oprot.writeI64(struct.success);
35128 }
35129 if (struct.isSetIo()) {
35130 struct.io.write(oprot);
35131 }
35132 if (struct.isSetIa()) {
35133 struct.ia.write(oprot);
35134 }
35135 }
35136
35137 @Override
35138 public void read(org.apache.thrift.protocol.TProtocol prot, atomicIncrement_result struct) throws org.apache.thrift.TException {
35139 TTupleProtocol iprot = (TTupleProtocol) prot;
35140 BitSet incoming = iprot.readBitSet(3);
35141 if (incoming.get(0)) {
35142 struct.success = iprot.readI64();
35143 struct.setSuccessIsSet(true);
35144 }
35145 if (incoming.get(1)) {
35146 struct.io = new IOError();
35147 struct.io.read(iprot);
35148 struct.setIoIsSet(true);
35149 }
35150 if (incoming.get(2)) {
35151 struct.ia = new IllegalArgument();
35152 struct.ia.read(iprot);
35153 struct.setIaIsSet(true);
35154 }
35155 }
35156 }
35157
35158 }
35159
35160 public static class deleteAll_args implements org.apache.thrift.TBase<deleteAll_args, deleteAll_args._Fields>, java.io.Serializable, Cloneable {
35161 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAll_args");
35162
35163 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
35164 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
35165 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
35166 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
35167
35168 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
35169 static {
35170 schemes.put(StandardScheme.class, new deleteAll_argsStandardSchemeFactory());
35171 schemes.put(TupleScheme.class, new deleteAll_argsTupleSchemeFactory());
35172 }
35173
35174
35175
35176
35177 public ByteBuffer tableName;
35178
35179
35180
35181 public ByteBuffer row;
35182
35183
35184
35185 public ByteBuffer column;
35186
35187
35188
35189 public Map<ByteBuffer,ByteBuffer> attributes;
35190
35191
35192 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35193
35194
35195
35196 TABLE_NAME((short)1, "tableName"),
35197
35198
35199
35200 ROW((short)2, "row"),
35201
35202
35203
35204 COLUMN((short)3, "column"),
35205
35206
35207
35208 ATTRIBUTES((short)4, "attributes");
35209
35210 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35211
35212 static {
35213 for (_Fields field : EnumSet.allOf(_Fields.class)) {
35214 byName.put(field.getFieldName(), field);
35215 }
35216 }
35217
35218
35219
35220
35221 public static _Fields findByThriftId(int fieldId) {
35222 switch(fieldId) {
35223 case 1:
35224 return TABLE_NAME;
35225 case 2:
35226 return ROW;
35227 case 3:
35228 return COLUMN;
35229 case 4:
35230 return ATTRIBUTES;
35231 default:
35232 return null;
35233 }
35234 }
35235
35236
35237
35238
35239
35240 public static _Fields findByThriftIdOrThrow(int fieldId) {
35241 _Fields fields = findByThriftId(fieldId);
35242 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35243 return fields;
35244 }
35245
35246
35247
35248
35249 public static _Fields findByName(String name) {
35250 return byName.get(name);
35251 }
35252
35253 private final short _thriftId;
35254 private final String _fieldName;
35255
35256 _Fields(short thriftId, String fieldName) {
35257 _thriftId = thriftId;
35258 _fieldName = fieldName;
35259 }
35260
35261 public short getThriftFieldId() {
35262 return _thriftId;
35263 }
35264
35265 public String getFieldName() {
35266 return _fieldName;
35267 }
35268 }
35269
35270
35271 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35272 static {
35273 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35274 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
35275 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
35276 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
35277 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
35278 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT,
35279 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
35280 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
35281 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
35282 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
35283 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
35284 metaDataMap = Collections.unmodifiableMap(tmpMap);
35285 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAll_args.class, metaDataMap);
35286 }
35287
35288 public deleteAll_args() {
35289 }
35290
35291 public deleteAll_args(
35292 ByteBuffer tableName,
35293 ByteBuffer row,
35294 ByteBuffer column,
35295 Map<ByteBuffer,ByteBuffer> attributes)
35296 {
35297 this();
35298 this.tableName = tableName;
35299 this.row = row;
35300 this.column = column;
35301 this.attributes = attributes;
35302 }
35303
35304
35305
35306
35307 public deleteAll_args(deleteAll_args other) {
35308 if (other.isSetTableName()) {
35309 this.tableName = other.tableName;
35310 }
35311 if (other.isSetRow()) {
35312 this.row = other.row;
35313 }
35314 if (other.isSetColumn()) {
35315 this.column = other.column;
35316 }
35317 if (other.isSetAttributes()) {
35318 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
35319 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
35320
35321 ByteBuffer other_element_key = other_element.getKey();
35322 ByteBuffer other_element_value = other_element.getValue();
35323
35324 ByteBuffer __this__attributes_copy_key = other_element_key;
35325
35326 ByteBuffer __this__attributes_copy_value = other_element_value;
35327
35328 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
35329 }
35330 this.attributes = __this__attributes;
35331 }
35332 }
35333
35334 public deleteAll_args deepCopy() {
35335 return new deleteAll_args(this);
35336 }
35337
35338 @Override
35339 public void clear() {
35340 this.tableName = null;
35341 this.row = null;
35342 this.column = null;
35343 this.attributes = null;
35344 }
35345
35346
35347
35348
35349 public byte[] getTableName() {
35350 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
35351 return tableName == null ? null : tableName.array();
35352 }
35353
35354 public ByteBuffer bufferForTableName() {
35355 return tableName;
35356 }
35357
35358
35359
35360
35361 public deleteAll_args setTableName(byte[] tableName) {
35362 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
35363 return this;
35364 }
35365
35366 public deleteAll_args setTableName(ByteBuffer tableName) {
35367 this.tableName = tableName;
35368 return this;
35369 }
35370
35371 public void unsetTableName() {
35372 this.tableName = null;
35373 }
35374
35375
35376 public boolean isSetTableName() {
35377 return this.tableName != null;
35378 }
35379
35380 public void setTableNameIsSet(boolean value) {
35381 if (!value) {
35382 this.tableName = null;
35383 }
35384 }
35385
35386
35387
35388
35389 public byte[] getRow() {
35390 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
35391 return row == null ? null : row.array();
35392 }
35393
35394 public ByteBuffer bufferForRow() {
35395 return row;
35396 }
35397
35398
35399
35400
35401 public deleteAll_args setRow(byte[] row) {
35402 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
35403 return this;
35404 }
35405
35406 public deleteAll_args setRow(ByteBuffer row) {
35407 this.row = row;
35408 return this;
35409 }
35410
35411 public void unsetRow() {
35412 this.row = null;
35413 }
35414
35415
35416 public boolean isSetRow() {
35417 return this.row != null;
35418 }
35419
35420 public void setRowIsSet(boolean value) {
35421 if (!value) {
35422 this.row = null;
35423 }
35424 }
35425
35426
35427
35428
35429 public byte[] getColumn() {
35430 setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
35431 return column == null ? null : column.array();
35432 }
35433
35434 public ByteBuffer bufferForColumn() {
35435 return column;
35436 }
35437
35438
35439
35440
35441 public deleteAll_args setColumn(byte[] column) {
35442 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
35443 return this;
35444 }
35445
35446 public deleteAll_args setColumn(ByteBuffer column) {
35447 this.column = column;
35448 return this;
35449 }
35450
35451 public void unsetColumn() {
35452 this.column = null;
35453 }
35454
35455
35456 public boolean isSetColumn() {
35457 return this.column != null;
35458 }
35459
35460 public void setColumnIsSet(boolean value) {
35461 if (!value) {
35462 this.column = null;
35463 }
35464 }
35465
35466 public int getAttributesSize() {
35467 return (this.attributes == null) ? 0 : this.attributes.size();
35468 }
35469
35470 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
35471 if (this.attributes == null) {
35472 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
35473 }
35474 this.attributes.put(key, val);
35475 }
35476
35477
35478
35479
35480 public Map<ByteBuffer,ByteBuffer> getAttributes() {
35481 return this.attributes;
35482 }
35483
35484
35485
35486
35487 public deleteAll_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
35488 this.attributes = attributes;
35489 return this;
35490 }
35491
35492 public void unsetAttributes() {
35493 this.attributes = null;
35494 }
35495
35496
35497 public boolean isSetAttributes() {
35498 return this.attributes != null;
35499 }
35500
35501 public void setAttributesIsSet(boolean value) {
35502 if (!value) {
35503 this.attributes = null;
35504 }
35505 }
35506
35507 public void setFieldValue(_Fields field, Object value) {
35508 switch (field) {
35509 case TABLE_NAME:
35510 if (value == null) {
35511 unsetTableName();
35512 } else {
35513 setTableName((ByteBuffer)value);
35514 }
35515 break;
35516
35517 case ROW:
35518 if (value == null) {
35519 unsetRow();
35520 } else {
35521 setRow((ByteBuffer)value);
35522 }
35523 break;
35524
35525 case COLUMN:
35526 if (value == null) {
35527 unsetColumn();
35528 } else {
35529 setColumn((ByteBuffer)value);
35530 }
35531 break;
35532
35533 case ATTRIBUTES:
35534 if (value == null) {
35535 unsetAttributes();
35536 } else {
35537 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
35538 }
35539 break;
35540
35541 }
35542 }
35543
35544 public Object getFieldValue(_Fields field) {
35545 switch (field) {
35546 case TABLE_NAME:
35547 return getTableName();
35548
35549 case ROW:
35550 return getRow();
35551
35552 case COLUMN:
35553 return getColumn();
35554
35555 case ATTRIBUTES:
35556 return getAttributes();
35557
35558 }
35559 throw new IllegalStateException();
35560 }
35561
35562
35563 public boolean isSet(_Fields field) {
35564 if (field == null) {
35565 throw new IllegalArgumentException();
35566 }
35567
35568 switch (field) {
35569 case TABLE_NAME:
35570 return isSetTableName();
35571 case ROW:
35572 return isSetRow();
35573 case COLUMN:
35574 return isSetColumn();
35575 case ATTRIBUTES:
35576 return isSetAttributes();
35577 }
35578 throw new IllegalStateException();
35579 }
35580
35581 @Override
35582 public boolean equals(Object that) {
35583 if (that == null)
35584 return false;
35585 if (that instanceof deleteAll_args)
35586 return this.equals((deleteAll_args)that);
35587 return false;
35588 }
35589
35590 public boolean equals(deleteAll_args that) {
35591 if (that == null)
35592 return false;
35593
35594 boolean this_present_tableName = true && this.isSetTableName();
35595 boolean that_present_tableName = true && that.isSetTableName();
35596 if (this_present_tableName || that_present_tableName) {
35597 if (!(this_present_tableName && that_present_tableName))
35598 return false;
35599 if (!this.tableName.equals(that.tableName))
35600 return false;
35601 }
35602
35603 boolean this_present_row = true && this.isSetRow();
35604 boolean that_present_row = true && that.isSetRow();
35605 if (this_present_row || that_present_row) {
35606 if (!(this_present_row && that_present_row))
35607 return false;
35608 if (!this.row.equals(that.row))
35609 return false;
35610 }
35611
35612 boolean this_present_column = true && this.isSetColumn();
35613 boolean that_present_column = true && that.isSetColumn();
35614 if (this_present_column || that_present_column) {
35615 if (!(this_present_column && that_present_column))
35616 return false;
35617 if (!this.column.equals(that.column))
35618 return false;
35619 }
35620
35621 boolean this_present_attributes = true && this.isSetAttributes();
35622 boolean that_present_attributes = true && that.isSetAttributes();
35623 if (this_present_attributes || that_present_attributes) {
35624 if (!(this_present_attributes && that_present_attributes))
35625 return false;
35626 if (!this.attributes.equals(that.attributes))
35627 return false;
35628 }
35629
35630 return true;
35631 }
35632
35633 @Override
35634 public int hashCode() {
35635 HashCodeBuilder builder = new HashCodeBuilder();
35636
35637 boolean present_tableName = true && (isSetTableName());
35638 builder.append(present_tableName);
35639 if (present_tableName)
35640 builder.append(tableName);
35641
35642 boolean present_row = true && (isSetRow());
35643 builder.append(present_row);
35644 if (present_row)
35645 builder.append(row);
35646
35647 boolean present_column = true && (isSetColumn());
35648 builder.append(present_column);
35649 if (present_column)
35650 builder.append(column);
35651
35652 boolean present_attributes = true && (isSetAttributes());
35653 builder.append(present_attributes);
35654 if (present_attributes)
35655 builder.append(attributes);
35656
35657 return builder.toHashCode();
35658 }
35659
35660 public int compareTo(deleteAll_args other) {
35661 if (!getClass().equals(other.getClass())) {
35662 return getClass().getName().compareTo(other.getClass().getName());
35663 }
35664
35665 int lastComparison = 0;
35666 deleteAll_args typedOther = (deleteAll_args)other;
35667
35668 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
35669 if (lastComparison != 0) {
35670 return lastComparison;
35671 }
35672 if (isSetTableName()) {
35673 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
35674 if (lastComparison != 0) {
35675 return lastComparison;
35676 }
35677 }
35678 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
35679 if (lastComparison != 0) {
35680 return lastComparison;
35681 }
35682 if (isSetRow()) {
35683 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
35684 if (lastComparison != 0) {
35685 return lastComparison;
35686 }
35687 }
35688 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
35689 if (lastComparison != 0) {
35690 return lastComparison;
35691 }
35692 if (isSetColumn()) {
35693 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
35694 if (lastComparison != 0) {
35695 return lastComparison;
35696 }
35697 }
35698 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
35699 if (lastComparison != 0) {
35700 return lastComparison;
35701 }
35702 if (isSetAttributes()) {
35703 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
35704 if (lastComparison != 0) {
35705 return lastComparison;
35706 }
35707 }
35708 return 0;
35709 }
35710
35711 public _Fields fieldForId(int fieldId) {
35712 return _Fields.findByThriftId(fieldId);
35713 }
35714
35715 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35716 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
35717 }
35718
35719 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35720 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
35721 }
35722
35723 @Override
35724 public String toString() {
35725 StringBuilder sb = new StringBuilder("deleteAll_args(");
35726 boolean first = true;
35727
35728 sb.append("tableName:");
35729 if (this.tableName == null) {
35730 sb.append("null");
35731 } else {
35732 sb.append(this.tableName);
35733 }
35734 first = false;
35735 if (!first) sb.append(", ");
35736 sb.append("row:");
35737 if (this.row == null) {
35738 sb.append("null");
35739 } else {
35740 sb.append(this.row);
35741 }
35742 first = false;
35743 if (!first) sb.append(", ");
35744 sb.append("column:");
35745 if (this.column == null) {
35746 sb.append("null");
35747 } else {
35748 sb.append(this.column);
35749 }
35750 first = false;
35751 if (!first) sb.append(", ");
35752 sb.append("attributes:");
35753 if (this.attributes == null) {
35754 sb.append("null");
35755 } else {
35756 sb.append(this.attributes);
35757 }
35758 first = false;
35759 sb.append(")");
35760 return sb.toString();
35761 }
35762
35763 public void validate() throws org.apache.thrift.TException {
35764
35765
35766 }
35767
35768 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35769 try {
35770 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35771 } catch (org.apache.thrift.TException te) {
35772 throw new java.io.IOException(te);
35773 }
35774 }
35775
35776 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35777 try {
35778 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35779 } catch (org.apache.thrift.TException te) {
35780 throw new java.io.IOException(te);
35781 }
35782 }
35783
35784 private static class deleteAll_argsStandardSchemeFactory implements SchemeFactory {
35785 public deleteAll_argsStandardScheme getScheme() {
35786 return new deleteAll_argsStandardScheme();
35787 }
35788 }
35789
35790 private static class deleteAll_argsStandardScheme extends StandardScheme<deleteAll_args> {
35791
35792 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAll_args struct) throws org.apache.thrift.TException {
35793 org.apache.thrift.protocol.TField schemeField;
35794 iprot.readStructBegin();
35795 while (true)
35796 {
35797 schemeField = iprot.readFieldBegin();
35798 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
35799 break;
35800 }
35801 switch (schemeField.id) {
35802 case 1:
35803 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
35804 struct.tableName = iprot.readBinary();
35805 struct.setTableNameIsSet(true);
35806 } else {
35807 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35808 }
35809 break;
35810 case 2:
35811 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
35812 struct.row = iprot.readBinary();
35813 struct.setRowIsSet(true);
35814 } else {
35815 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35816 }
35817 break;
35818 case 3:
35819 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
35820 struct.column = iprot.readBinary();
35821 struct.setColumnIsSet(true);
35822 } else {
35823 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35824 }
35825 break;
35826 case 4:
35827 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
35828 {
35829 org.apache.thrift.protocol.TMap _map418 = iprot.readMapBegin();
35830 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map418.size);
35831 for (int _i419 = 0; _i419 < _map418.size; ++_i419)
35832 {
35833 ByteBuffer _key420;
35834 ByteBuffer _val421;
35835 _key420 = iprot.readBinary();
35836 _val421 = iprot.readBinary();
35837 struct.attributes.put(_key420, _val421);
35838 }
35839 iprot.readMapEnd();
35840 }
35841 struct.setAttributesIsSet(true);
35842 } else {
35843 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35844 }
35845 break;
35846 default:
35847 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
35848 }
35849 iprot.readFieldEnd();
35850 }
35851 iprot.readStructEnd();
35852
35853
35854 struct.validate();
35855 }
35856
35857 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAll_args struct) throws org.apache.thrift.TException {
35858 struct.validate();
35859
35860 oprot.writeStructBegin(STRUCT_DESC);
35861 if (struct.tableName != null) {
35862 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
35863 oprot.writeBinary(struct.tableName);
35864 oprot.writeFieldEnd();
35865 }
35866 if (struct.row != null) {
35867 oprot.writeFieldBegin(ROW_FIELD_DESC);
35868 oprot.writeBinary(struct.row);
35869 oprot.writeFieldEnd();
35870 }
35871 if (struct.column != null) {
35872 oprot.writeFieldBegin(COLUMN_FIELD_DESC);
35873 oprot.writeBinary(struct.column);
35874 oprot.writeFieldEnd();
35875 }
35876 if (struct.attributes != null) {
35877 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
35878 {
35879 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
35880 for (Map.Entry<ByteBuffer, ByteBuffer> _iter422 : struct.attributes.entrySet())
35881 {
35882 oprot.writeBinary(_iter422.getKey());
35883 oprot.writeBinary(_iter422.getValue());
35884 }
35885 oprot.writeMapEnd();
35886 }
35887 oprot.writeFieldEnd();
35888 }
35889 oprot.writeFieldStop();
35890 oprot.writeStructEnd();
35891 }
35892
35893 }
35894
35895 private static class deleteAll_argsTupleSchemeFactory implements SchemeFactory {
35896 public deleteAll_argsTupleScheme getScheme() {
35897 return new deleteAll_argsTupleScheme();
35898 }
35899 }
35900
35901 private static class deleteAll_argsTupleScheme extends TupleScheme<deleteAll_args> {
35902
35903 @Override
35904 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAll_args struct) throws org.apache.thrift.TException {
35905 TTupleProtocol oprot = (TTupleProtocol) prot;
35906 BitSet optionals = new BitSet();
35907 if (struct.isSetTableName()) {
35908 optionals.set(0);
35909 }
35910 if (struct.isSetRow()) {
35911 optionals.set(1);
35912 }
35913 if (struct.isSetColumn()) {
35914 optionals.set(2);
35915 }
35916 if (struct.isSetAttributes()) {
35917 optionals.set(3);
35918 }
35919 oprot.writeBitSet(optionals, 4);
35920 if (struct.isSetTableName()) {
35921 oprot.writeBinary(struct.tableName);
35922 }
35923 if (struct.isSetRow()) {
35924 oprot.writeBinary(struct.row);
35925 }
35926 if (struct.isSetColumn()) {
35927 oprot.writeBinary(struct.column);
35928 }
35929 if (struct.isSetAttributes()) {
35930 {
35931 oprot.writeI32(struct.attributes.size());
35932 for (Map.Entry<ByteBuffer, ByteBuffer> _iter423 : struct.attributes.entrySet())
35933 {
35934 oprot.writeBinary(_iter423.getKey());
35935 oprot.writeBinary(_iter423.getValue());
35936 }
35937 }
35938 }
35939 }
35940
35941 @Override
35942 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAll_args struct) throws org.apache.thrift.TException {
35943 TTupleProtocol iprot = (TTupleProtocol) prot;
35944 BitSet incoming = iprot.readBitSet(4);
35945 if (incoming.get(0)) {
35946 struct.tableName = iprot.readBinary();
35947 struct.setTableNameIsSet(true);
35948 }
35949 if (incoming.get(1)) {
35950 struct.row = iprot.readBinary();
35951 struct.setRowIsSet(true);
35952 }
35953 if (incoming.get(2)) {
35954 struct.column = iprot.readBinary();
35955 struct.setColumnIsSet(true);
35956 }
35957 if (incoming.get(3)) {
35958 {
35959 org.apache.thrift.protocol.TMap _map424 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
35960 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map424.size);
35961 for (int _i425 = 0; _i425 < _map424.size; ++_i425)
35962 {
35963 ByteBuffer _key426;
35964 ByteBuffer _val427;
35965 _key426 = iprot.readBinary();
35966 _val427 = iprot.readBinary();
35967 struct.attributes.put(_key426, _val427);
35968 }
35969 }
35970 struct.setAttributesIsSet(true);
35971 }
35972 }
35973 }
35974
35975 }
35976
35977 public static class deleteAll_result implements org.apache.thrift.TBase<deleteAll_result, deleteAll_result._Fields>, java.io.Serializable, Cloneable {
35978 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAll_result");
35979
35980 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
35981
35982 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
35983 static {
35984 schemes.put(StandardScheme.class, new deleteAll_resultStandardSchemeFactory());
35985 schemes.put(TupleScheme.class, new deleteAll_resultTupleSchemeFactory());
35986 }
35987
35988 public IOError io;
35989
35990
35991 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35992 IO((short)1, "io");
35993
35994 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35995
35996 static {
35997 for (_Fields field : EnumSet.allOf(_Fields.class)) {
35998 byName.put(field.getFieldName(), field);
35999 }
36000 }
36001
36002
36003
36004
36005 public static _Fields findByThriftId(int fieldId) {
36006 switch(fieldId) {
36007 case 1:
36008 return IO;
36009 default:
36010 return null;
36011 }
36012 }
36013
36014
36015
36016
36017
36018 public static _Fields findByThriftIdOrThrow(int fieldId) {
36019 _Fields fields = findByThriftId(fieldId);
36020 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36021 return fields;
36022 }
36023
36024
36025
36026
36027 public static _Fields findByName(String name) {
36028 return byName.get(name);
36029 }
36030
36031 private final short _thriftId;
36032 private final String _fieldName;
36033
36034 _Fields(short thriftId, String fieldName) {
36035 _thriftId = thriftId;
36036 _fieldName = fieldName;
36037 }
36038
36039 public short getThriftFieldId() {
36040 return _thriftId;
36041 }
36042
36043 public String getFieldName() {
36044 return _fieldName;
36045 }
36046 }
36047
36048
36049 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36050 static {
36051 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36052 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
36053 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
36054 metaDataMap = Collections.unmodifiableMap(tmpMap);
36055 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAll_result.class, metaDataMap);
36056 }
36057
36058 public deleteAll_result() {
36059 }
36060
36061 public deleteAll_result(
36062 IOError io)
36063 {
36064 this();
36065 this.io = io;
36066 }
36067
36068
36069
36070
36071 public deleteAll_result(deleteAll_result other) {
36072 if (other.isSetIo()) {
36073 this.io = new IOError(other.io);
36074 }
36075 }
36076
36077 public deleteAll_result deepCopy() {
36078 return new deleteAll_result(this);
36079 }
36080
36081 @Override
36082 public void clear() {
36083 this.io = null;
36084 }
36085
36086 public IOError getIo() {
36087 return this.io;
36088 }
36089
36090 public deleteAll_result setIo(IOError io) {
36091 this.io = io;
36092 return this;
36093 }
36094
36095 public void unsetIo() {
36096 this.io = null;
36097 }
36098
36099
36100 public boolean isSetIo() {
36101 return this.io != null;
36102 }
36103
36104 public void setIoIsSet(boolean value) {
36105 if (!value) {
36106 this.io = null;
36107 }
36108 }
36109
36110 public void setFieldValue(_Fields field, Object value) {
36111 switch (field) {
36112 case IO:
36113 if (value == null) {
36114 unsetIo();
36115 } else {
36116 setIo((IOError)value);
36117 }
36118 break;
36119
36120 }
36121 }
36122
36123 public Object getFieldValue(_Fields field) {
36124 switch (field) {
36125 case IO:
36126 return getIo();
36127
36128 }
36129 throw new IllegalStateException();
36130 }
36131
36132
36133 public boolean isSet(_Fields field) {
36134 if (field == null) {
36135 throw new IllegalArgumentException();
36136 }
36137
36138 switch (field) {
36139 case IO:
36140 return isSetIo();
36141 }
36142 throw new IllegalStateException();
36143 }
36144
36145 @Override
36146 public boolean equals(Object that) {
36147 if (that == null)
36148 return false;
36149 if (that instanceof deleteAll_result)
36150 return this.equals((deleteAll_result)that);
36151 return false;
36152 }
36153
36154 public boolean equals(deleteAll_result that) {
36155 if (that == null)
36156 return false;
36157
36158 boolean this_present_io = true && this.isSetIo();
36159 boolean that_present_io = true && that.isSetIo();
36160 if (this_present_io || that_present_io) {
36161 if (!(this_present_io && that_present_io))
36162 return false;
36163 if (!this.io.equals(that.io))
36164 return false;
36165 }
36166
36167 return true;
36168 }
36169
36170 @Override
36171 public int hashCode() {
36172 HashCodeBuilder builder = new HashCodeBuilder();
36173
36174 boolean present_io = true && (isSetIo());
36175 builder.append(present_io);
36176 if (present_io)
36177 builder.append(io);
36178
36179 return builder.toHashCode();
36180 }
36181
36182 public int compareTo(deleteAll_result other) {
36183 if (!getClass().equals(other.getClass())) {
36184 return getClass().getName().compareTo(other.getClass().getName());
36185 }
36186
36187 int lastComparison = 0;
36188 deleteAll_result typedOther = (deleteAll_result)other;
36189
36190 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
36191 if (lastComparison != 0) {
36192 return lastComparison;
36193 }
36194 if (isSetIo()) {
36195 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
36196 if (lastComparison != 0) {
36197 return lastComparison;
36198 }
36199 }
36200 return 0;
36201 }
36202
36203 public _Fields fieldForId(int fieldId) {
36204 return _Fields.findByThriftId(fieldId);
36205 }
36206
36207 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36208 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
36209 }
36210
36211 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36212 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
36213 }
36214
36215 @Override
36216 public String toString() {
36217 StringBuilder sb = new StringBuilder("deleteAll_result(");
36218 boolean first = true;
36219
36220 sb.append("io:");
36221 if (this.io == null) {
36222 sb.append("null");
36223 } else {
36224 sb.append(this.io);
36225 }
36226 first = false;
36227 sb.append(")");
36228 return sb.toString();
36229 }
36230
36231 public void validate() throws org.apache.thrift.TException {
36232
36233
36234 }
36235
36236 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36237 try {
36238 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36239 } catch (org.apache.thrift.TException te) {
36240 throw new java.io.IOException(te);
36241 }
36242 }
36243
36244 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36245 try {
36246 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36247 } catch (org.apache.thrift.TException te) {
36248 throw new java.io.IOException(te);
36249 }
36250 }
36251
36252 private static class deleteAll_resultStandardSchemeFactory implements SchemeFactory {
36253 public deleteAll_resultStandardScheme getScheme() {
36254 return new deleteAll_resultStandardScheme();
36255 }
36256 }
36257
36258 private static class deleteAll_resultStandardScheme extends StandardScheme<deleteAll_result> {
36259
36260 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAll_result struct) throws org.apache.thrift.TException {
36261 org.apache.thrift.protocol.TField schemeField;
36262 iprot.readStructBegin();
36263 while (true)
36264 {
36265 schemeField = iprot.readFieldBegin();
36266 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
36267 break;
36268 }
36269 switch (schemeField.id) {
36270 case 1:
36271 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
36272 struct.io = new IOError();
36273 struct.io.read(iprot);
36274 struct.setIoIsSet(true);
36275 } else {
36276 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36277 }
36278 break;
36279 default:
36280 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
36281 }
36282 iprot.readFieldEnd();
36283 }
36284 iprot.readStructEnd();
36285
36286
36287 struct.validate();
36288 }
36289
36290 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAll_result struct) throws org.apache.thrift.TException {
36291 struct.validate();
36292
36293 oprot.writeStructBegin(STRUCT_DESC);
36294 if (struct.io != null) {
36295 oprot.writeFieldBegin(IO_FIELD_DESC);
36296 struct.io.write(oprot);
36297 oprot.writeFieldEnd();
36298 }
36299 oprot.writeFieldStop();
36300 oprot.writeStructEnd();
36301 }
36302
36303 }
36304
36305 private static class deleteAll_resultTupleSchemeFactory implements SchemeFactory {
36306 public deleteAll_resultTupleScheme getScheme() {
36307 return new deleteAll_resultTupleScheme();
36308 }
36309 }
36310
36311 private static class deleteAll_resultTupleScheme extends TupleScheme<deleteAll_result> {
36312
36313 @Override
36314 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAll_result struct) throws org.apache.thrift.TException {
36315 TTupleProtocol oprot = (TTupleProtocol) prot;
36316 BitSet optionals = new BitSet();
36317 if (struct.isSetIo()) {
36318 optionals.set(0);
36319 }
36320 oprot.writeBitSet(optionals, 1);
36321 if (struct.isSetIo()) {
36322 struct.io.write(oprot);
36323 }
36324 }
36325
36326 @Override
36327 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAll_result struct) throws org.apache.thrift.TException {
36328 TTupleProtocol iprot = (TTupleProtocol) prot;
36329 BitSet incoming = iprot.readBitSet(1);
36330 if (incoming.get(0)) {
36331 struct.io = new IOError();
36332 struct.io.read(iprot);
36333 struct.setIoIsSet(true);
36334 }
36335 }
36336 }
36337
36338 }
36339
36340 public static class deleteAllTs_args implements org.apache.thrift.TBase<deleteAllTs_args, deleteAllTs_args._Fields>, java.io.Serializable, Cloneable {
36341 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllTs_args");
36342
36343 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
36344 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
36345 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
36346 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
36347 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
36348
36349 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
36350 static {
36351 schemes.put(StandardScheme.class, new deleteAllTs_argsStandardSchemeFactory());
36352 schemes.put(TupleScheme.class, new deleteAllTs_argsTupleSchemeFactory());
36353 }
36354
36355
36356
36357
36358 public ByteBuffer tableName;
36359
36360
36361
36362 public ByteBuffer row;
36363
36364
36365
36366 public ByteBuffer column;
36367
36368
36369
36370 public long timestamp;
36371
36372
36373
36374 public Map<ByteBuffer,ByteBuffer> attributes;
36375
36376
36377 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36378
36379
36380
36381 TABLE_NAME((short)1, "tableName"),
36382
36383
36384
36385 ROW((short)2, "row"),
36386
36387
36388
36389 COLUMN((short)3, "column"),
36390
36391
36392
36393 TIMESTAMP((short)4, "timestamp"),
36394
36395
36396
36397 ATTRIBUTES((short)5, "attributes");
36398
36399 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36400
36401 static {
36402 for (_Fields field : EnumSet.allOf(_Fields.class)) {
36403 byName.put(field.getFieldName(), field);
36404 }
36405 }
36406
36407
36408
36409
36410 public static _Fields findByThriftId(int fieldId) {
36411 switch(fieldId) {
36412 case 1:
36413 return TABLE_NAME;
36414 case 2:
36415 return ROW;
36416 case 3:
36417 return COLUMN;
36418 case 4:
36419 return TIMESTAMP;
36420 case 5:
36421 return ATTRIBUTES;
36422 default:
36423 return null;
36424 }
36425 }
36426
36427
36428
36429
36430
36431 public static _Fields findByThriftIdOrThrow(int fieldId) {
36432 _Fields fields = findByThriftId(fieldId);
36433 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36434 return fields;
36435 }
36436
36437
36438
36439
36440 public static _Fields findByName(String name) {
36441 return byName.get(name);
36442 }
36443
36444 private final short _thriftId;
36445 private final String _fieldName;
36446
36447 _Fields(short thriftId, String fieldName) {
36448 _thriftId = thriftId;
36449 _fieldName = fieldName;
36450 }
36451
36452 public short getThriftFieldId() {
36453 return _thriftId;
36454 }
36455
36456 public String getFieldName() {
36457 return _fieldName;
36458 }
36459 }
36460
36461
36462 private static final int __TIMESTAMP_ISSET_ID = 0;
36463 private byte __isset_bitfield = 0;
36464 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36465 static {
36466 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36467 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
36468 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
36469 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
36470 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
36471 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT,
36472 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
36473 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
36474 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36475 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
36476 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
36477 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
36478 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
36479 metaDataMap = Collections.unmodifiableMap(tmpMap);
36480 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllTs_args.class, metaDataMap);
36481 }
36482
36483 public deleteAllTs_args() {
36484 }
36485
36486 public deleteAllTs_args(
36487 ByteBuffer tableName,
36488 ByteBuffer row,
36489 ByteBuffer column,
36490 long timestamp,
36491 Map<ByteBuffer,ByteBuffer> attributes)
36492 {
36493 this();
36494 this.tableName = tableName;
36495 this.row = row;
36496 this.column = column;
36497 this.timestamp = timestamp;
36498 setTimestampIsSet(true);
36499 this.attributes = attributes;
36500 }
36501
36502
36503
36504
36505 public deleteAllTs_args(deleteAllTs_args other) {
36506 __isset_bitfield = other.__isset_bitfield;
36507 if (other.isSetTableName()) {
36508 this.tableName = other.tableName;
36509 }
36510 if (other.isSetRow()) {
36511 this.row = other.row;
36512 }
36513 if (other.isSetColumn()) {
36514 this.column = other.column;
36515 }
36516 this.timestamp = other.timestamp;
36517 if (other.isSetAttributes()) {
36518 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
36519 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
36520
36521 ByteBuffer other_element_key = other_element.getKey();
36522 ByteBuffer other_element_value = other_element.getValue();
36523
36524 ByteBuffer __this__attributes_copy_key = other_element_key;
36525
36526 ByteBuffer __this__attributes_copy_value = other_element_value;
36527
36528 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
36529 }
36530 this.attributes = __this__attributes;
36531 }
36532 }
36533
36534 public deleteAllTs_args deepCopy() {
36535 return new deleteAllTs_args(this);
36536 }
36537
36538 @Override
36539 public void clear() {
36540 this.tableName = null;
36541 this.row = null;
36542 this.column = null;
36543 setTimestampIsSet(false);
36544 this.timestamp = 0;
36545 this.attributes = null;
36546 }
36547
36548
36549
36550
36551 public byte[] getTableName() {
36552 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
36553 return tableName == null ? null : tableName.array();
36554 }
36555
36556 public ByteBuffer bufferForTableName() {
36557 return tableName;
36558 }
36559
36560
36561
36562
36563 public deleteAllTs_args setTableName(byte[] tableName) {
36564 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
36565 return this;
36566 }
36567
36568 public deleteAllTs_args setTableName(ByteBuffer tableName) {
36569 this.tableName = tableName;
36570 return this;
36571 }
36572
36573 public void unsetTableName() {
36574 this.tableName = null;
36575 }
36576
36577
36578 public boolean isSetTableName() {
36579 return this.tableName != null;
36580 }
36581
36582 public void setTableNameIsSet(boolean value) {
36583 if (!value) {
36584 this.tableName = null;
36585 }
36586 }
36587
36588
36589
36590
36591 public byte[] getRow() {
36592 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
36593 return row == null ? null : row.array();
36594 }
36595
36596 public ByteBuffer bufferForRow() {
36597 return row;
36598 }
36599
36600
36601
36602
36603 public deleteAllTs_args setRow(byte[] row) {
36604 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
36605 return this;
36606 }
36607
36608 public deleteAllTs_args setRow(ByteBuffer row) {
36609 this.row = row;
36610 return this;
36611 }
36612
36613 public void unsetRow() {
36614 this.row = null;
36615 }
36616
36617
36618 public boolean isSetRow() {
36619 return this.row != null;
36620 }
36621
36622 public void setRowIsSet(boolean value) {
36623 if (!value) {
36624 this.row = null;
36625 }
36626 }
36627
36628
36629
36630
36631 public byte[] getColumn() {
36632 setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
36633 return column == null ? null : column.array();
36634 }
36635
36636 public ByteBuffer bufferForColumn() {
36637 return column;
36638 }
36639
36640
36641
36642
36643 public deleteAllTs_args setColumn(byte[] column) {
36644 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
36645 return this;
36646 }
36647
36648 public deleteAllTs_args setColumn(ByteBuffer column) {
36649 this.column = column;
36650 return this;
36651 }
36652
36653 public void unsetColumn() {
36654 this.column = null;
36655 }
36656
36657
36658 public boolean isSetColumn() {
36659 return this.column != null;
36660 }
36661
36662 public void setColumnIsSet(boolean value) {
36663 if (!value) {
36664 this.column = null;
36665 }
36666 }
36667
36668
36669
36670
36671 public long getTimestamp() {
36672 return this.timestamp;
36673 }
36674
36675
36676
36677
36678 public deleteAllTs_args setTimestamp(long timestamp) {
36679 this.timestamp = timestamp;
36680 setTimestampIsSet(true);
36681 return this;
36682 }
36683
36684 public void unsetTimestamp() {
36685 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
36686 }
36687
36688
36689 public boolean isSetTimestamp() {
36690 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
36691 }
36692
36693 public void setTimestampIsSet(boolean value) {
36694 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
36695 }
36696
36697 public int getAttributesSize() {
36698 return (this.attributes == null) ? 0 : this.attributes.size();
36699 }
36700
36701 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
36702 if (this.attributes == null) {
36703 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
36704 }
36705 this.attributes.put(key, val);
36706 }
36707
36708
36709
36710
36711 public Map<ByteBuffer,ByteBuffer> getAttributes() {
36712 return this.attributes;
36713 }
36714
36715
36716
36717
36718 public deleteAllTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
36719 this.attributes = attributes;
36720 return this;
36721 }
36722
36723 public void unsetAttributes() {
36724 this.attributes = null;
36725 }
36726
36727
36728 public boolean isSetAttributes() {
36729 return this.attributes != null;
36730 }
36731
36732 public void setAttributesIsSet(boolean value) {
36733 if (!value) {
36734 this.attributes = null;
36735 }
36736 }
36737
36738 public void setFieldValue(_Fields field, Object value) {
36739 switch (field) {
36740 case TABLE_NAME:
36741 if (value == null) {
36742 unsetTableName();
36743 } else {
36744 setTableName((ByteBuffer)value);
36745 }
36746 break;
36747
36748 case ROW:
36749 if (value == null) {
36750 unsetRow();
36751 } else {
36752 setRow((ByteBuffer)value);
36753 }
36754 break;
36755
36756 case COLUMN:
36757 if (value == null) {
36758 unsetColumn();
36759 } else {
36760 setColumn((ByteBuffer)value);
36761 }
36762 break;
36763
36764 case TIMESTAMP:
36765 if (value == null) {
36766 unsetTimestamp();
36767 } else {
36768 setTimestamp((Long)value);
36769 }
36770 break;
36771
36772 case ATTRIBUTES:
36773 if (value == null) {
36774 unsetAttributes();
36775 } else {
36776 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
36777 }
36778 break;
36779
36780 }
36781 }
36782
36783 public Object getFieldValue(_Fields field) {
36784 switch (field) {
36785 case TABLE_NAME:
36786 return getTableName();
36787
36788 case ROW:
36789 return getRow();
36790
36791 case COLUMN:
36792 return getColumn();
36793
36794 case TIMESTAMP:
36795 return Long.valueOf(getTimestamp());
36796
36797 case ATTRIBUTES:
36798 return getAttributes();
36799
36800 }
36801 throw new IllegalStateException();
36802 }
36803
36804
36805 public boolean isSet(_Fields field) {
36806 if (field == null) {
36807 throw new IllegalArgumentException();
36808 }
36809
36810 switch (field) {
36811 case TABLE_NAME:
36812 return isSetTableName();
36813 case ROW:
36814 return isSetRow();
36815 case COLUMN:
36816 return isSetColumn();
36817 case TIMESTAMP:
36818 return isSetTimestamp();
36819 case ATTRIBUTES:
36820 return isSetAttributes();
36821 }
36822 throw new IllegalStateException();
36823 }
36824
36825 @Override
36826 public boolean equals(Object that) {
36827 if (that == null)
36828 return false;
36829 if (that instanceof deleteAllTs_args)
36830 return this.equals((deleteAllTs_args)that);
36831 return false;
36832 }
36833
36834 public boolean equals(deleteAllTs_args that) {
36835 if (that == null)
36836 return false;
36837
36838 boolean this_present_tableName = true && this.isSetTableName();
36839 boolean that_present_tableName = true && that.isSetTableName();
36840 if (this_present_tableName || that_present_tableName) {
36841 if (!(this_present_tableName && that_present_tableName))
36842 return false;
36843 if (!this.tableName.equals(that.tableName))
36844 return false;
36845 }
36846
36847 boolean this_present_row = true && this.isSetRow();
36848 boolean that_present_row = true && that.isSetRow();
36849 if (this_present_row || that_present_row) {
36850 if (!(this_present_row && that_present_row))
36851 return false;
36852 if (!this.row.equals(that.row))
36853 return false;
36854 }
36855
36856 boolean this_present_column = true && this.isSetColumn();
36857 boolean that_present_column = true && that.isSetColumn();
36858 if (this_present_column || that_present_column) {
36859 if (!(this_present_column && that_present_column))
36860 return false;
36861 if (!this.column.equals(that.column))
36862 return false;
36863 }
36864
36865 boolean this_present_timestamp = true;
36866 boolean that_present_timestamp = true;
36867 if (this_present_timestamp || that_present_timestamp) {
36868 if (!(this_present_timestamp && that_present_timestamp))
36869 return false;
36870 if (this.timestamp != that.timestamp)
36871 return false;
36872 }
36873
36874 boolean this_present_attributes = true && this.isSetAttributes();
36875 boolean that_present_attributes = true && that.isSetAttributes();
36876 if (this_present_attributes || that_present_attributes) {
36877 if (!(this_present_attributes && that_present_attributes))
36878 return false;
36879 if (!this.attributes.equals(that.attributes))
36880 return false;
36881 }
36882
36883 return true;
36884 }
36885
36886 @Override
36887 public int hashCode() {
36888 HashCodeBuilder builder = new HashCodeBuilder();
36889
36890 boolean present_tableName = true && (isSetTableName());
36891 builder.append(present_tableName);
36892 if (present_tableName)
36893 builder.append(tableName);
36894
36895 boolean present_row = true && (isSetRow());
36896 builder.append(present_row);
36897 if (present_row)
36898 builder.append(row);
36899
36900 boolean present_column = true && (isSetColumn());
36901 builder.append(present_column);
36902 if (present_column)
36903 builder.append(column);
36904
36905 boolean present_timestamp = true;
36906 builder.append(present_timestamp);
36907 if (present_timestamp)
36908 builder.append(timestamp);
36909
36910 boolean present_attributes = true && (isSetAttributes());
36911 builder.append(present_attributes);
36912 if (present_attributes)
36913 builder.append(attributes);
36914
36915 return builder.toHashCode();
36916 }
36917
36918 public int compareTo(deleteAllTs_args other) {
36919 if (!getClass().equals(other.getClass())) {
36920 return getClass().getName().compareTo(other.getClass().getName());
36921 }
36922
36923 int lastComparison = 0;
36924 deleteAllTs_args typedOther = (deleteAllTs_args)other;
36925
36926 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
36927 if (lastComparison != 0) {
36928 return lastComparison;
36929 }
36930 if (isSetTableName()) {
36931 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
36932 if (lastComparison != 0) {
36933 return lastComparison;
36934 }
36935 }
36936 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
36937 if (lastComparison != 0) {
36938 return lastComparison;
36939 }
36940 if (isSetRow()) {
36941 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
36942 if (lastComparison != 0) {
36943 return lastComparison;
36944 }
36945 }
36946 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
36947 if (lastComparison != 0) {
36948 return lastComparison;
36949 }
36950 if (isSetColumn()) {
36951 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
36952 if (lastComparison != 0) {
36953 return lastComparison;
36954 }
36955 }
36956 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
36957 if (lastComparison != 0) {
36958 return lastComparison;
36959 }
36960 if (isSetTimestamp()) {
36961 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
36962 if (lastComparison != 0) {
36963 return lastComparison;
36964 }
36965 }
36966 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
36967 if (lastComparison != 0) {
36968 return lastComparison;
36969 }
36970 if (isSetAttributes()) {
36971 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
36972 if (lastComparison != 0) {
36973 return lastComparison;
36974 }
36975 }
36976 return 0;
36977 }
36978
36979 public _Fields fieldForId(int fieldId) {
36980 return _Fields.findByThriftId(fieldId);
36981 }
36982
36983 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36984 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
36985 }
36986
36987 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36988 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
36989 }
36990
36991 @Override
36992 public String toString() {
36993 StringBuilder sb = new StringBuilder("deleteAllTs_args(");
36994 boolean first = true;
36995
36996 sb.append("tableName:");
36997 if (this.tableName == null) {
36998 sb.append("null");
36999 } else {
37000 sb.append(this.tableName);
37001 }
37002 first = false;
37003 if (!first) sb.append(", ");
37004 sb.append("row:");
37005 if (this.row == null) {
37006 sb.append("null");
37007 } else {
37008 sb.append(this.row);
37009 }
37010 first = false;
37011 if (!first) sb.append(", ");
37012 sb.append("column:");
37013 if (this.column == null) {
37014 sb.append("null");
37015 } else {
37016 sb.append(this.column);
37017 }
37018 first = false;
37019 if (!first) sb.append(", ");
37020 sb.append("timestamp:");
37021 sb.append(this.timestamp);
37022 first = false;
37023 if (!first) sb.append(", ");
37024 sb.append("attributes:");
37025 if (this.attributes == null) {
37026 sb.append("null");
37027 } else {
37028 sb.append(this.attributes);
37029 }
37030 first = false;
37031 sb.append(")");
37032 return sb.toString();
37033 }
37034
37035 public void validate() throws org.apache.thrift.TException {
37036
37037
37038 }
37039
37040 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37041 try {
37042 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37043 } catch (org.apache.thrift.TException te) {
37044 throw new java.io.IOException(te);
37045 }
37046 }
37047
37048 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37049 try {
37050
37051 __isset_bitfield = 0;
37052 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37053 } catch (org.apache.thrift.TException te) {
37054 throw new java.io.IOException(te);
37055 }
37056 }
37057
37058 private static class deleteAllTs_argsStandardSchemeFactory implements SchemeFactory {
37059 public deleteAllTs_argsStandardScheme getScheme() {
37060 return new deleteAllTs_argsStandardScheme();
37061 }
37062 }
37063
37064 private static class deleteAllTs_argsStandardScheme extends StandardScheme<deleteAllTs_args> {
37065
37066 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllTs_args struct) throws org.apache.thrift.TException {
37067 org.apache.thrift.protocol.TField schemeField;
37068 iprot.readStructBegin();
37069 while (true)
37070 {
37071 schemeField = iprot.readFieldBegin();
37072 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
37073 break;
37074 }
37075 switch (schemeField.id) {
37076 case 1:
37077 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
37078 struct.tableName = iprot.readBinary();
37079 struct.setTableNameIsSet(true);
37080 } else {
37081 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37082 }
37083 break;
37084 case 2:
37085 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
37086 struct.row = iprot.readBinary();
37087 struct.setRowIsSet(true);
37088 } else {
37089 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37090 }
37091 break;
37092 case 3:
37093 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
37094 struct.column = iprot.readBinary();
37095 struct.setColumnIsSet(true);
37096 } else {
37097 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37098 }
37099 break;
37100 case 4:
37101 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
37102 struct.timestamp = iprot.readI64();
37103 struct.setTimestampIsSet(true);
37104 } else {
37105 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37106 }
37107 break;
37108 case 5:
37109 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
37110 {
37111 org.apache.thrift.protocol.TMap _map428 = iprot.readMapBegin();
37112 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map428.size);
37113 for (int _i429 = 0; _i429 < _map428.size; ++_i429)
37114 {
37115 ByteBuffer _key430;
37116 ByteBuffer _val431;
37117 _key430 = iprot.readBinary();
37118 _val431 = iprot.readBinary();
37119 struct.attributes.put(_key430, _val431);
37120 }
37121 iprot.readMapEnd();
37122 }
37123 struct.setAttributesIsSet(true);
37124 } else {
37125 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37126 }
37127 break;
37128 default:
37129 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37130 }
37131 iprot.readFieldEnd();
37132 }
37133 iprot.readStructEnd();
37134
37135
37136 struct.validate();
37137 }
37138
37139 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllTs_args struct) throws org.apache.thrift.TException {
37140 struct.validate();
37141
37142 oprot.writeStructBegin(STRUCT_DESC);
37143 if (struct.tableName != null) {
37144 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
37145 oprot.writeBinary(struct.tableName);
37146 oprot.writeFieldEnd();
37147 }
37148 if (struct.row != null) {
37149 oprot.writeFieldBegin(ROW_FIELD_DESC);
37150 oprot.writeBinary(struct.row);
37151 oprot.writeFieldEnd();
37152 }
37153 if (struct.column != null) {
37154 oprot.writeFieldBegin(COLUMN_FIELD_DESC);
37155 oprot.writeBinary(struct.column);
37156 oprot.writeFieldEnd();
37157 }
37158 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
37159 oprot.writeI64(struct.timestamp);
37160 oprot.writeFieldEnd();
37161 if (struct.attributes != null) {
37162 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
37163 {
37164 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
37165 for (Map.Entry<ByteBuffer, ByteBuffer> _iter432 : struct.attributes.entrySet())
37166 {
37167 oprot.writeBinary(_iter432.getKey());
37168 oprot.writeBinary(_iter432.getValue());
37169 }
37170 oprot.writeMapEnd();
37171 }
37172 oprot.writeFieldEnd();
37173 }
37174 oprot.writeFieldStop();
37175 oprot.writeStructEnd();
37176 }
37177
37178 }
37179
37180 private static class deleteAllTs_argsTupleSchemeFactory implements SchemeFactory {
37181 public deleteAllTs_argsTupleScheme getScheme() {
37182 return new deleteAllTs_argsTupleScheme();
37183 }
37184 }
37185
37186 private static class deleteAllTs_argsTupleScheme extends TupleScheme<deleteAllTs_args> {
37187
37188 @Override
37189 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_args struct) throws org.apache.thrift.TException {
37190 TTupleProtocol oprot = (TTupleProtocol) prot;
37191 BitSet optionals = new BitSet();
37192 if (struct.isSetTableName()) {
37193 optionals.set(0);
37194 }
37195 if (struct.isSetRow()) {
37196 optionals.set(1);
37197 }
37198 if (struct.isSetColumn()) {
37199 optionals.set(2);
37200 }
37201 if (struct.isSetTimestamp()) {
37202 optionals.set(3);
37203 }
37204 if (struct.isSetAttributes()) {
37205 optionals.set(4);
37206 }
37207 oprot.writeBitSet(optionals, 5);
37208 if (struct.isSetTableName()) {
37209 oprot.writeBinary(struct.tableName);
37210 }
37211 if (struct.isSetRow()) {
37212 oprot.writeBinary(struct.row);
37213 }
37214 if (struct.isSetColumn()) {
37215 oprot.writeBinary(struct.column);
37216 }
37217 if (struct.isSetTimestamp()) {
37218 oprot.writeI64(struct.timestamp);
37219 }
37220 if (struct.isSetAttributes()) {
37221 {
37222 oprot.writeI32(struct.attributes.size());
37223 for (Map.Entry<ByteBuffer, ByteBuffer> _iter433 : struct.attributes.entrySet())
37224 {
37225 oprot.writeBinary(_iter433.getKey());
37226 oprot.writeBinary(_iter433.getValue());
37227 }
37228 }
37229 }
37230 }
37231
37232 @Override
37233 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_args struct) throws org.apache.thrift.TException {
37234 TTupleProtocol iprot = (TTupleProtocol) prot;
37235 BitSet incoming = iprot.readBitSet(5);
37236 if (incoming.get(0)) {
37237 struct.tableName = iprot.readBinary();
37238 struct.setTableNameIsSet(true);
37239 }
37240 if (incoming.get(1)) {
37241 struct.row = iprot.readBinary();
37242 struct.setRowIsSet(true);
37243 }
37244 if (incoming.get(2)) {
37245 struct.column = iprot.readBinary();
37246 struct.setColumnIsSet(true);
37247 }
37248 if (incoming.get(3)) {
37249 struct.timestamp = iprot.readI64();
37250 struct.setTimestampIsSet(true);
37251 }
37252 if (incoming.get(4)) {
37253 {
37254 org.apache.thrift.protocol.TMap _map434 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
37255 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map434.size);
37256 for (int _i435 = 0; _i435 < _map434.size; ++_i435)
37257 {
37258 ByteBuffer _key436;
37259 ByteBuffer _val437;
37260 _key436 = iprot.readBinary();
37261 _val437 = iprot.readBinary();
37262 struct.attributes.put(_key436, _val437);
37263 }
37264 }
37265 struct.setAttributesIsSet(true);
37266 }
37267 }
37268 }
37269
37270 }
37271
37272 public static class deleteAllTs_result implements org.apache.thrift.TBase<deleteAllTs_result, deleteAllTs_result._Fields>, java.io.Serializable, Cloneable {
37273 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllTs_result");
37274
37275 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
37276
37277 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
37278 static {
37279 schemes.put(StandardScheme.class, new deleteAllTs_resultStandardSchemeFactory());
37280 schemes.put(TupleScheme.class, new deleteAllTs_resultTupleSchemeFactory());
37281 }
37282
37283 public IOError io;
37284
37285
37286 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37287 IO((short)1, "io");
37288
37289 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37290
37291 static {
37292 for (_Fields field : EnumSet.allOf(_Fields.class)) {
37293 byName.put(field.getFieldName(), field);
37294 }
37295 }
37296
37297
37298
37299
37300 public static _Fields findByThriftId(int fieldId) {
37301 switch(fieldId) {
37302 case 1:
37303 return IO;
37304 default:
37305 return null;
37306 }
37307 }
37308
37309
37310
37311
37312
37313 public static _Fields findByThriftIdOrThrow(int fieldId) {
37314 _Fields fields = findByThriftId(fieldId);
37315 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37316 return fields;
37317 }
37318
37319
37320
37321
37322 public static _Fields findByName(String name) {
37323 return byName.get(name);
37324 }
37325
37326 private final short _thriftId;
37327 private final String _fieldName;
37328
37329 _Fields(short thriftId, String fieldName) {
37330 _thriftId = thriftId;
37331 _fieldName = fieldName;
37332 }
37333
37334 public short getThriftFieldId() {
37335 return _thriftId;
37336 }
37337
37338 public String getFieldName() {
37339 return _fieldName;
37340 }
37341 }
37342
37343
37344 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37345 static {
37346 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37347 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
37348 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
37349 metaDataMap = Collections.unmodifiableMap(tmpMap);
37350 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllTs_result.class, metaDataMap);
37351 }
37352
37353 public deleteAllTs_result() {
37354 }
37355
37356 public deleteAllTs_result(
37357 IOError io)
37358 {
37359 this();
37360 this.io = io;
37361 }
37362
37363
37364
37365
37366 public deleteAllTs_result(deleteAllTs_result other) {
37367 if (other.isSetIo()) {
37368 this.io = new IOError(other.io);
37369 }
37370 }
37371
37372 public deleteAllTs_result deepCopy() {
37373 return new deleteAllTs_result(this);
37374 }
37375
37376 @Override
37377 public void clear() {
37378 this.io = null;
37379 }
37380
37381 public IOError getIo() {
37382 return this.io;
37383 }
37384
37385 public deleteAllTs_result setIo(IOError io) {
37386 this.io = io;
37387 return this;
37388 }
37389
37390 public void unsetIo() {
37391 this.io = null;
37392 }
37393
37394
37395 public boolean isSetIo() {
37396 return this.io != null;
37397 }
37398
37399 public void setIoIsSet(boolean value) {
37400 if (!value) {
37401 this.io = null;
37402 }
37403 }
37404
37405 public void setFieldValue(_Fields field, Object value) {
37406 switch (field) {
37407 case IO:
37408 if (value == null) {
37409 unsetIo();
37410 } else {
37411 setIo((IOError)value);
37412 }
37413 break;
37414
37415 }
37416 }
37417
37418 public Object getFieldValue(_Fields field) {
37419 switch (field) {
37420 case IO:
37421 return getIo();
37422
37423 }
37424 throw new IllegalStateException();
37425 }
37426
37427
37428 public boolean isSet(_Fields field) {
37429 if (field == null) {
37430 throw new IllegalArgumentException();
37431 }
37432
37433 switch (field) {
37434 case IO:
37435 return isSetIo();
37436 }
37437 throw new IllegalStateException();
37438 }
37439
37440 @Override
37441 public boolean equals(Object that) {
37442 if (that == null)
37443 return false;
37444 if (that instanceof deleteAllTs_result)
37445 return this.equals((deleteAllTs_result)that);
37446 return false;
37447 }
37448
37449 public boolean equals(deleteAllTs_result that) {
37450 if (that == null)
37451 return false;
37452
37453 boolean this_present_io = true && this.isSetIo();
37454 boolean that_present_io = true && that.isSetIo();
37455 if (this_present_io || that_present_io) {
37456 if (!(this_present_io && that_present_io))
37457 return false;
37458 if (!this.io.equals(that.io))
37459 return false;
37460 }
37461
37462 return true;
37463 }
37464
37465 @Override
37466 public int hashCode() {
37467 HashCodeBuilder builder = new HashCodeBuilder();
37468
37469 boolean present_io = true && (isSetIo());
37470 builder.append(present_io);
37471 if (present_io)
37472 builder.append(io);
37473
37474 return builder.toHashCode();
37475 }
37476
37477 public int compareTo(deleteAllTs_result other) {
37478 if (!getClass().equals(other.getClass())) {
37479 return getClass().getName().compareTo(other.getClass().getName());
37480 }
37481
37482 int lastComparison = 0;
37483 deleteAllTs_result typedOther = (deleteAllTs_result)other;
37484
37485 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
37486 if (lastComparison != 0) {
37487 return lastComparison;
37488 }
37489 if (isSetIo()) {
37490 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
37491 if (lastComparison != 0) {
37492 return lastComparison;
37493 }
37494 }
37495 return 0;
37496 }
37497
37498 public _Fields fieldForId(int fieldId) {
37499 return _Fields.findByThriftId(fieldId);
37500 }
37501
37502 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37503 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
37504 }
37505
37506 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37507 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
37508 }
37509
37510 @Override
37511 public String toString() {
37512 StringBuilder sb = new StringBuilder("deleteAllTs_result(");
37513 boolean first = true;
37514
37515 sb.append("io:");
37516 if (this.io == null) {
37517 sb.append("null");
37518 } else {
37519 sb.append(this.io);
37520 }
37521 first = false;
37522 sb.append(")");
37523 return sb.toString();
37524 }
37525
37526 public void validate() throws org.apache.thrift.TException {
37527
37528
37529 }
37530
37531 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37532 try {
37533 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37534 } catch (org.apache.thrift.TException te) {
37535 throw new java.io.IOException(te);
37536 }
37537 }
37538
37539 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37540 try {
37541 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37542 } catch (org.apache.thrift.TException te) {
37543 throw new java.io.IOException(te);
37544 }
37545 }
37546
37547 private static class deleteAllTs_resultStandardSchemeFactory implements SchemeFactory {
37548 public deleteAllTs_resultStandardScheme getScheme() {
37549 return new deleteAllTs_resultStandardScheme();
37550 }
37551 }
37552
37553 private static class deleteAllTs_resultStandardScheme extends StandardScheme<deleteAllTs_result> {
37554
37555 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllTs_result struct) throws org.apache.thrift.TException {
37556 org.apache.thrift.protocol.TField schemeField;
37557 iprot.readStructBegin();
37558 while (true)
37559 {
37560 schemeField = iprot.readFieldBegin();
37561 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
37562 break;
37563 }
37564 switch (schemeField.id) {
37565 case 1:
37566 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
37567 struct.io = new IOError();
37568 struct.io.read(iprot);
37569 struct.setIoIsSet(true);
37570 } else {
37571 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37572 }
37573 break;
37574 default:
37575 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
37576 }
37577 iprot.readFieldEnd();
37578 }
37579 iprot.readStructEnd();
37580
37581
37582 struct.validate();
37583 }
37584
37585 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllTs_result struct) throws org.apache.thrift.TException {
37586 struct.validate();
37587
37588 oprot.writeStructBegin(STRUCT_DESC);
37589 if (struct.io != null) {
37590 oprot.writeFieldBegin(IO_FIELD_DESC);
37591 struct.io.write(oprot);
37592 oprot.writeFieldEnd();
37593 }
37594 oprot.writeFieldStop();
37595 oprot.writeStructEnd();
37596 }
37597
37598 }
37599
37600 private static class deleteAllTs_resultTupleSchemeFactory implements SchemeFactory {
37601 public deleteAllTs_resultTupleScheme getScheme() {
37602 return new deleteAllTs_resultTupleScheme();
37603 }
37604 }
37605
37606 private static class deleteAllTs_resultTupleScheme extends TupleScheme<deleteAllTs_result> {
37607
37608 @Override
37609 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_result struct) throws org.apache.thrift.TException {
37610 TTupleProtocol oprot = (TTupleProtocol) prot;
37611 BitSet optionals = new BitSet();
37612 if (struct.isSetIo()) {
37613 optionals.set(0);
37614 }
37615 oprot.writeBitSet(optionals, 1);
37616 if (struct.isSetIo()) {
37617 struct.io.write(oprot);
37618 }
37619 }
37620
37621 @Override
37622 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllTs_result struct) throws org.apache.thrift.TException {
37623 TTupleProtocol iprot = (TTupleProtocol) prot;
37624 BitSet incoming = iprot.readBitSet(1);
37625 if (incoming.get(0)) {
37626 struct.io = new IOError();
37627 struct.io.read(iprot);
37628 struct.setIoIsSet(true);
37629 }
37630 }
37631 }
37632
37633 }
37634
37635 public static class deleteAllRow_args implements org.apache.thrift.TBase<deleteAllRow_args, deleteAllRow_args._Fields>, java.io.Serializable, Cloneable {
37636 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRow_args");
37637
37638 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
37639 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
37640 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3);
37641
37642 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
37643 static {
37644 schemes.put(StandardScheme.class, new deleteAllRow_argsStandardSchemeFactory());
37645 schemes.put(TupleScheme.class, new deleteAllRow_argsTupleSchemeFactory());
37646 }
37647
37648
37649
37650
37651 public ByteBuffer tableName;
37652
37653
37654
37655 public ByteBuffer row;
37656
37657
37658
37659 public Map<ByteBuffer,ByteBuffer> attributes;
37660
37661
37662 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37663
37664
37665
37666 TABLE_NAME((short)1, "tableName"),
37667
37668
37669
37670 ROW((short)2, "row"),
37671
37672
37673
37674 ATTRIBUTES((short)3, "attributes");
37675
37676 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37677
37678 static {
37679 for (_Fields field : EnumSet.allOf(_Fields.class)) {
37680 byName.put(field.getFieldName(), field);
37681 }
37682 }
37683
37684
37685
37686
37687 public static _Fields findByThriftId(int fieldId) {
37688 switch(fieldId) {
37689 case 1:
37690 return TABLE_NAME;
37691 case 2:
37692 return ROW;
37693 case 3:
37694 return ATTRIBUTES;
37695 default:
37696 return null;
37697 }
37698 }
37699
37700
37701
37702
37703
37704 public static _Fields findByThriftIdOrThrow(int fieldId) {
37705 _Fields fields = findByThriftId(fieldId);
37706 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37707 return fields;
37708 }
37709
37710
37711
37712
37713 public static _Fields findByName(String name) {
37714 return byName.get(name);
37715 }
37716
37717 private final short _thriftId;
37718 private final String _fieldName;
37719
37720 _Fields(short thriftId, String fieldName) {
37721 _thriftId = thriftId;
37722 _fieldName = fieldName;
37723 }
37724
37725 public short getThriftFieldId() {
37726 return _thriftId;
37727 }
37728
37729 public String getFieldName() {
37730 return _fieldName;
37731 }
37732 }
37733
37734
37735 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37736 static {
37737 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37738 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
37739 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
37740 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
37741 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
37742 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
37743 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
37744 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
37745 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
37746 metaDataMap = Collections.unmodifiableMap(tmpMap);
37747 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRow_args.class, metaDataMap);
37748 }
37749
37750 public deleteAllRow_args() {
37751 }
37752
37753 public deleteAllRow_args(
37754 ByteBuffer tableName,
37755 ByteBuffer row,
37756 Map<ByteBuffer,ByteBuffer> attributes)
37757 {
37758 this();
37759 this.tableName = tableName;
37760 this.row = row;
37761 this.attributes = attributes;
37762 }
37763
37764
37765
37766
37767 public deleteAllRow_args(deleteAllRow_args other) {
37768 if (other.isSetTableName()) {
37769 this.tableName = other.tableName;
37770 }
37771 if (other.isSetRow()) {
37772 this.row = other.row;
37773 }
37774 if (other.isSetAttributes()) {
37775 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
37776 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
37777
37778 ByteBuffer other_element_key = other_element.getKey();
37779 ByteBuffer other_element_value = other_element.getValue();
37780
37781 ByteBuffer __this__attributes_copy_key = other_element_key;
37782
37783 ByteBuffer __this__attributes_copy_value = other_element_value;
37784
37785 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
37786 }
37787 this.attributes = __this__attributes;
37788 }
37789 }
37790
37791 public deleteAllRow_args deepCopy() {
37792 return new deleteAllRow_args(this);
37793 }
37794
37795 @Override
37796 public void clear() {
37797 this.tableName = null;
37798 this.row = null;
37799 this.attributes = null;
37800 }
37801
37802
37803
37804
37805 public byte[] getTableName() {
37806 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
37807 return tableName == null ? null : tableName.array();
37808 }
37809
37810 public ByteBuffer bufferForTableName() {
37811 return tableName;
37812 }
37813
37814
37815
37816
37817 public deleteAllRow_args setTableName(byte[] tableName) {
37818 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
37819 return this;
37820 }
37821
37822 public deleteAllRow_args setTableName(ByteBuffer tableName) {
37823 this.tableName = tableName;
37824 return this;
37825 }
37826
37827 public void unsetTableName() {
37828 this.tableName = null;
37829 }
37830
37831
37832 public boolean isSetTableName() {
37833 return this.tableName != null;
37834 }
37835
37836 public void setTableNameIsSet(boolean value) {
37837 if (!value) {
37838 this.tableName = null;
37839 }
37840 }
37841
37842
37843
37844
37845 public byte[] getRow() {
37846 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
37847 return row == null ? null : row.array();
37848 }
37849
37850 public ByteBuffer bufferForRow() {
37851 return row;
37852 }
37853
37854
37855
37856
37857 public deleteAllRow_args setRow(byte[] row) {
37858 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
37859 return this;
37860 }
37861
37862 public deleteAllRow_args setRow(ByteBuffer row) {
37863 this.row = row;
37864 return this;
37865 }
37866
37867 public void unsetRow() {
37868 this.row = null;
37869 }
37870
37871
37872 public boolean isSetRow() {
37873 return this.row != null;
37874 }
37875
37876 public void setRowIsSet(boolean value) {
37877 if (!value) {
37878 this.row = null;
37879 }
37880 }
37881
37882 public int getAttributesSize() {
37883 return (this.attributes == null) ? 0 : this.attributes.size();
37884 }
37885
37886 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
37887 if (this.attributes == null) {
37888 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
37889 }
37890 this.attributes.put(key, val);
37891 }
37892
37893
37894
37895
37896 public Map<ByteBuffer,ByteBuffer> getAttributes() {
37897 return this.attributes;
37898 }
37899
37900
37901
37902
37903 public deleteAllRow_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
37904 this.attributes = attributes;
37905 return this;
37906 }
37907
37908 public void unsetAttributes() {
37909 this.attributes = null;
37910 }
37911
37912
37913 public boolean isSetAttributes() {
37914 return this.attributes != null;
37915 }
37916
37917 public void setAttributesIsSet(boolean value) {
37918 if (!value) {
37919 this.attributes = null;
37920 }
37921 }
37922
37923 public void setFieldValue(_Fields field, Object value) {
37924 switch (field) {
37925 case TABLE_NAME:
37926 if (value == null) {
37927 unsetTableName();
37928 } else {
37929 setTableName((ByteBuffer)value);
37930 }
37931 break;
37932
37933 case ROW:
37934 if (value == null) {
37935 unsetRow();
37936 } else {
37937 setRow((ByteBuffer)value);
37938 }
37939 break;
37940
37941 case ATTRIBUTES:
37942 if (value == null) {
37943 unsetAttributes();
37944 } else {
37945 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
37946 }
37947 break;
37948
37949 }
37950 }
37951
37952 public Object getFieldValue(_Fields field) {
37953 switch (field) {
37954 case TABLE_NAME:
37955 return getTableName();
37956
37957 case ROW:
37958 return getRow();
37959
37960 case ATTRIBUTES:
37961 return getAttributes();
37962
37963 }
37964 throw new IllegalStateException();
37965 }
37966
37967
37968 public boolean isSet(_Fields field) {
37969 if (field == null) {
37970 throw new IllegalArgumentException();
37971 }
37972
37973 switch (field) {
37974 case TABLE_NAME:
37975 return isSetTableName();
37976 case ROW:
37977 return isSetRow();
37978 case ATTRIBUTES:
37979 return isSetAttributes();
37980 }
37981 throw new IllegalStateException();
37982 }
37983
37984 @Override
37985 public boolean equals(Object that) {
37986 if (that == null)
37987 return false;
37988 if (that instanceof deleteAllRow_args)
37989 return this.equals((deleteAllRow_args)that);
37990 return false;
37991 }
37992
37993 public boolean equals(deleteAllRow_args that) {
37994 if (that == null)
37995 return false;
37996
37997 boolean this_present_tableName = true && this.isSetTableName();
37998 boolean that_present_tableName = true && that.isSetTableName();
37999 if (this_present_tableName || that_present_tableName) {
38000 if (!(this_present_tableName && that_present_tableName))
38001 return false;
38002 if (!this.tableName.equals(that.tableName))
38003 return false;
38004 }
38005
38006 boolean this_present_row = true && this.isSetRow();
38007 boolean that_present_row = true && that.isSetRow();
38008 if (this_present_row || that_present_row) {
38009 if (!(this_present_row && that_present_row))
38010 return false;
38011 if (!this.row.equals(that.row))
38012 return false;
38013 }
38014
38015 boolean this_present_attributes = true && this.isSetAttributes();
38016 boolean that_present_attributes = true && that.isSetAttributes();
38017 if (this_present_attributes || that_present_attributes) {
38018 if (!(this_present_attributes && that_present_attributes))
38019 return false;
38020 if (!this.attributes.equals(that.attributes))
38021 return false;
38022 }
38023
38024 return true;
38025 }
38026
38027 @Override
38028 public int hashCode() {
38029 HashCodeBuilder builder = new HashCodeBuilder();
38030
38031 boolean present_tableName = true && (isSetTableName());
38032 builder.append(present_tableName);
38033 if (present_tableName)
38034 builder.append(tableName);
38035
38036 boolean present_row = true && (isSetRow());
38037 builder.append(present_row);
38038 if (present_row)
38039 builder.append(row);
38040
38041 boolean present_attributes = true && (isSetAttributes());
38042 builder.append(present_attributes);
38043 if (present_attributes)
38044 builder.append(attributes);
38045
38046 return builder.toHashCode();
38047 }
38048
38049 public int compareTo(deleteAllRow_args other) {
38050 if (!getClass().equals(other.getClass())) {
38051 return getClass().getName().compareTo(other.getClass().getName());
38052 }
38053
38054 int lastComparison = 0;
38055 deleteAllRow_args typedOther = (deleteAllRow_args)other;
38056
38057 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
38058 if (lastComparison != 0) {
38059 return lastComparison;
38060 }
38061 if (isSetTableName()) {
38062 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
38063 if (lastComparison != 0) {
38064 return lastComparison;
38065 }
38066 }
38067 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
38068 if (lastComparison != 0) {
38069 return lastComparison;
38070 }
38071 if (isSetRow()) {
38072 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
38073 if (lastComparison != 0) {
38074 return lastComparison;
38075 }
38076 }
38077 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
38078 if (lastComparison != 0) {
38079 return lastComparison;
38080 }
38081 if (isSetAttributes()) {
38082 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
38083 if (lastComparison != 0) {
38084 return lastComparison;
38085 }
38086 }
38087 return 0;
38088 }
38089
38090 public _Fields fieldForId(int fieldId) {
38091 return _Fields.findByThriftId(fieldId);
38092 }
38093
38094 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38095 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
38096 }
38097
38098 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38099 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
38100 }
38101
38102 @Override
38103 public String toString() {
38104 StringBuilder sb = new StringBuilder("deleteAllRow_args(");
38105 boolean first = true;
38106
38107 sb.append("tableName:");
38108 if (this.tableName == null) {
38109 sb.append("null");
38110 } else {
38111 sb.append(this.tableName);
38112 }
38113 first = false;
38114 if (!first) sb.append(", ");
38115 sb.append("row:");
38116 if (this.row == null) {
38117 sb.append("null");
38118 } else {
38119 sb.append(this.row);
38120 }
38121 first = false;
38122 if (!first) sb.append(", ");
38123 sb.append("attributes:");
38124 if (this.attributes == null) {
38125 sb.append("null");
38126 } else {
38127 sb.append(this.attributes);
38128 }
38129 first = false;
38130 sb.append(")");
38131 return sb.toString();
38132 }
38133
38134 public void validate() throws org.apache.thrift.TException {
38135
38136
38137 }
38138
38139 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38140 try {
38141 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38142 } catch (org.apache.thrift.TException te) {
38143 throw new java.io.IOException(te);
38144 }
38145 }
38146
38147 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38148 try {
38149 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38150 } catch (org.apache.thrift.TException te) {
38151 throw new java.io.IOException(te);
38152 }
38153 }
38154
38155 private static class deleteAllRow_argsStandardSchemeFactory implements SchemeFactory {
38156 public deleteAllRow_argsStandardScheme getScheme() {
38157 return new deleteAllRow_argsStandardScheme();
38158 }
38159 }
38160
38161 private static class deleteAllRow_argsStandardScheme extends StandardScheme<deleteAllRow_args> {
38162
38163 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRow_args struct) throws org.apache.thrift.TException {
38164 org.apache.thrift.protocol.TField schemeField;
38165 iprot.readStructBegin();
38166 while (true)
38167 {
38168 schemeField = iprot.readFieldBegin();
38169 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
38170 break;
38171 }
38172 switch (schemeField.id) {
38173 case 1:
38174 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
38175 struct.tableName = iprot.readBinary();
38176 struct.setTableNameIsSet(true);
38177 } else {
38178 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38179 }
38180 break;
38181 case 2:
38182 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
38183 struct.row = iprot.readBinary();
38184 struct.setRowIsSet(true);
38185 } else {
38186 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38187 }
38188 break;
38189 case 3:
38190 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
38191 {
38192 org.apache.thrift.protocol.TMap _map438 = iprot.readMapBegin();
38193 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map438.size);
38194 for (int _i439 = 0; _i439 < _map438.size; ++_i439)
38195 {
38196 ByteBuffer _key440;
38197 ByteBuffer _val441;
38198 _key440 = iprot.readBinary();
38199 _val441 = iprot.readBinary();
38200 struct.attributes.put(_key440, _val441);
38201 }
38202 iprot.readMapEnd();
38203 }
38204 struct.setAttributesIsSet(true);
38205 } else {
38206 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38207 }
38208 break;
38209 default:
38210 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38211 }
38212 iprot.readFieldEnd();
38213 }
38214 iprot.readStructEnd();
38215
38216
38217 struct.validate();
38218 }
38219
38220 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRow_args struct) throws org.apache.thrift.TException {
38221 struct.validate();
38222
38223 oprot.writeStructBegin(STRUCT_DESC);
38224 if (struct.tableName != null) {
38225 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
38226 oprot.writeBinary(struct.tableName);
38227 oprot.writeFieldEnd();
38228 }
38229 if (struct.row != null) {
38230 oprot.writeFieldBegin(ROW_FIELD_DESC);
38231 oprot.writeBinary(struct.row);
38232 oprot.writeFieldEnd();
38233 }
38234 if (struct.attributes != null) {
38235 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
38236 {
38237 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
38238 for (Map.Entry<ByteBuffer, ByteBuffer> _iter442 : struct.attributes.entrySet())
38239 {
38240 oprot.writeBinary(_iter442.getKey());
38241 oprot.writeBinary(_iter442.getValue());
38242 }
38243 oprot.writeMapEnd();
38244 }
38245 oprot.writeFieldEnd();
38246 }
38247 oprot.writeFieldStop();
38248 oprot.writeStructEnd();
38249 }
38250
38251 }
38252
38253 private static class deleteAllRow_argsTupleSchemeFactory implements SchemeFactory {
38254 public deleteAllRow_argsTupleScheme getScheme() {
38255 return new deleteAllRow_argsTupleScheme();
38256 }
38257 }
38258
38259 private static class deleteAllRow_argsTupleScheme extends TupleScheme<deleteAllRow_args> {
38260
38261 @Override
38262 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_args struct) throws org.apache.thrift.TException {
38263 TTupleProtocol oprot = (TTupleProtocol) prot;
38264 BitSet optionals = new BitSet();
38265 if (struct.isSetTableName()) {
38266 optionals.set(0);
38267 }
38268 if (struct.isSetRow()) {
38269 optionals.set(1);
38270 }
38271 if (struct.isSetAttributes()) {
38272 optionals.set(2);
38273 }
38274 oprot.writeBitSet(optionals, 3);
38275 if (struct.isSetTableName()) {
38276 oprot.writeBinary(struct.tableName);
38277 }
38278 if (struct.isSetRow()) {
38279 oprot.writeBinary(struct.row);
38280 }
38281 if (struct.isSetAttributes()) {
38282 {
38283 oprot.writeI32(struct.attributes.size());
38284 for (Map.Entry<ByteBuffer, ByteBuffer> _iter443 : struct.attributes.entrySet())
38285 {
38286 oprot.writeBinary(_iter443.getKey());
38287 oprot.writeBinary(_iter443.getValue());
38288 }
38289 }
38290 }
38291 }
38292
38293 @Override
38294 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_args struct) throws org.apache.thrift.TException {
38295 TTupleProtocol iprot = (TTupleProtocol) prot;
38296 BitSet incoming = iprot.readBitSet(3);
38297 if (incoming.get(0)) {
38298 struct.tableName = iprot.readBinary();
38299 struct.setTableNameIsSet(true);
38300 }
38301 if (incoming.get(1)) {
38302 struct.row = iprot.readBinary();
38303 struct.setRowIsSet(true);
38304 }
38305 if (incoming.get(2)) {
38306 {
38307 org.apache.thrift.protocol.TMap _map444 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
38308 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map444.size);
38309 for (int _i445 = 0; _i445 < _map444.size; ++_i445)
38310 {
38311 ByteBuffer _key446;
38312 ByteBuffer _val447;
38313 _key446 = iprot.readBinary();
38314 _val447 = iprot.readBinary();
38315 struct.attributes.put(_key446, _val447);
38316 }
38317 }
38318 struct.setAttributesIsSet(true);
38319 }
38320 }
38321 }
38322
38323 }
38324
38325 public static class deleteAllRow_result implements org.apache.thrift.TBase<deleteAllRow_result, deleteAllRow_result._Fields>, java.io.Serializable, Cloneable {
38326 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRow_result");
38327
38328 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
38329
38330 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
38331 static {
38332 schemes.put(StandardScheme.class, new deleteAllRow_resultStandardSchemeFactory());
38333 schemes.put(TupleScheme.class, new deleteAllRow_resultTupleSchemeFactory());
38334 }
38335
38336 public IOError io;
38337
38338
38339 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38340 IO((short)1, "io");
38341
38342 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38343
38344 static {
38345 for (_Fields field : EnumSet.allOf(_Fields.class)) {
38346 byName.put(field.getFieldName(), field);
38347 }
38348 }
38349
38350
38351
38352
38353 public static _Fields findByThriftId(int fieldId) {
38354 switch(fieldId) {
38355 case 1:
38356 return IO;
38357 default:
38358 return null;
38359 }
38360 }
38361
38362
38363
38364
38365
38366 public static _Fields findByThriftIdOrThrow(int fieldId) {
38367 _Fields fields = findByThriftId(fieldId);
38368 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38369 return fields;
38370 }
38371
38372
38373
38374
38375 public static _Fields findByName(String name) {
38376 return byName.get(name);
38377 }
38378
38379 private final short _thriftId;
38380 private final String _fieldName;
38381
38382 _Fields(short thriftId, String fieldName) {
38383 _thriftId = thriftId;
38384 _fieldName = fieldName;
38385 }
38386
38387 public short getThriftFieldId() {
38388 return _thriftId;
38389 }
38390
38391 public String getFieldName() {
38392 return _fieldName;
38393 }
38394 }
38395
38396
38397 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38398 static {
38399 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38400 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
38401 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
38402 metaDataMap = Collections.unmodifiableMap(tmpMap);
38403 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRow_result.class, metaDataMap);
38404 }
38405
38406 public deleteAllRow_result() {
38407 }
38408
38409 public deleteAllRow_result(
38410 IOError io)
38411 {
38412 this();
38413 this.io = io;
38414 }
38415
38416
38417
38418
38419 public deleteAllRow_result(deleteAllRow_result other) {
38420 if (other.isSetIo()) {
38421 this.io = new IOError(other.io);
38422 }
38423 }
38424
38425 public deleteAllRow_result deepCopy() {
38426 return new deleteAllRow_result(this);
38427 }
38428
38429 @Override
38430 public void clear() {
38431 this.io = null;
38432 }
38433
38434 public IOError getIo() {
38435 return this.io;
38436 }
38437
38438 public deleteAllRow_result setIo(IOError io) {
38439 this.io = io;
38440 return this;
38441 }
38442
38443 public void unsetIo() {
38444 this.io = null;
38445 }
38446
38447
38448 public boolean isSetIo() {
38449 return this.io != null;
38450 }
38451
38452 public void setIoIsSet(boolean value) {
38453 if (!value) {
38454 this.io = null;
38455 }
38456 }
38457
38458 public void setFieldValue(_Fields field, Object value) {
38459 switch (field) {
38460 case IO:
38461 if (value == null) {
38462 unsetIo();
38463 } else {
38464 setIo((IOError)value);
38465 }
38466 break;
38467
38468 }
38469 }
38470
38471 public Object getFieldValue(_Fields field) {
38472 switch (field) {
38473 case IO:
38474 return getIo();
38475
38476 }
38477 throw new IllegalStateException();
38478 }
38479
38480
38481 public boolean isSet(_Fields field) {
38482 if (field == null) {
38483 throw new IllegalArgumentException();
38484 }
38485
38486 switch (field) {
38487 case IO:
38488 return isSetIo();
38489 }
38490 throw new IllegalStateException();
38491 }
38492
38493 @Override
38494 public boolean equals(Object that) {
38495 if (that == null)
38496 return false;
38497 if (that instanceof deleteAllRow_result)
38498 return this.equals((deleteAllRow_result)that);
38499 return false;
38500 }
38501
38502 public boolean equals(deleteAllRow_result that) {
38503 if (that == null)
38504 return false;
38505
38506 boolean this_present_io = true && this.isSetIo();
38507 boolean that_present_io = true && that.isSetIo();
38508 if (this_present_io || that_present_io) {
38509 if (!(this_present_io && that_present_io))
38510 return false;
38511 if (!this.io.equals(that.io))
38512 return false;
38513 }
38514
38515 return true;
38516 }
38517
38518 @Override
38519 public int hashCode() {
38520 HashCodeBuilder builder = new HashCodeBuilder();
38521
38522 boolean present_io = true && (isSetIo());
38523 builder.append(present_io);
38524 if (present_io)
38525 builder.append(io);
38526
38527 return builder.toHashCode();
38528 }
38529
38530 public int compareTo(deleteAllRow_result other) {
38531 if (!getClass().equals(other.getClass())) {
38532 return getClass().getName().compareTo(other.getClass().getName());
38533 }
38534
38535 int lastComparison = 0;
38536 deleteAllRow_result typedOther = (deleteAllRow_result)other;
38537
38538 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
38539 if (lastComparison != 0) {
38540 return lastComparison;
38541 }
38542 if (isSetIo()) {
38543 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
38544 if (lastComparison != 0) {
38545 return lastComparison;
38546 }
38547 }
38548 return 0;
38549 }
38550
38551 public _Fields fieldForId(int fieldId) {
38552 return _Fields.findByThriftId(fieldId);
38553 }
38554
38555 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38556 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
38557 }
38558
38559 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38560 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
38561 }
38562
38563 @Override
38564 public String toString() {
38565 StringBuilder sb = new StringBuilder("deleteAllRow_result(");
38566 boolean first = true;
38567
38568 sb.append("io:");
38569 if (this.io == null) {
38570 sb.append("null");
38571 } else {
38572 sb.append(this.io);
38573 }
38574 first = false;
38575 sb.append(")");
38576 return sb.toString();
38577 }
38578
38579 public void validate() throws org.apache.thrift.TException {
38580
38581
38582 }
38583
38584 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38585 try {
38586 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38587 } catch (org.apache.thrift.TException te) {
38588 throw new java.io.IOException(te);
38589 }
38590 }
38591
38592 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38593 try {
38594 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38595 } catch (org.apache.thrift.TException te) {
38596 throw new java.io.IOException(te);
38597 }
38598 }
38599
38600 private static class deleteAllRow_resultStandardSchemeFactory implements SchemeFactory {
38601 public deleteAllRow_resultStandardScheme getScheme() {
38602 return new deleteAllRow_resultStandardScheme();
38603 }
38604 }
38605
38606 private static class deleteAllRow_resultStandardScheme extends StandardScheme<deleteAllRow_result> {
38607
38608 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRow_result struct) throws org.apache.thrift.TException {
38609 org.apache.thrift.protocol.TField schemeField;
38610 iprot.readStructBegin();
38611 while (true)
38612 {
38613 schemeField = iprot.readFieldBegin();
38614 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
38615 break;
38616 }
38617 switch (schemeField.id) {
38618 case 1:
38619 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
38620 struct.io = new IOError();
38621 struct.io.read(iprot);
38622 struct.setIoIsSet(true);
38623 } else {
38624 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38625 }
38626 break;
38627 default:
38628 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
38629 }
38630 iprot.readFieldEnd();
38631 }
38632 iprot.readStructEnd();
38633
38634
38635 struct.validate();
38636 }
38637
38638 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRow_result struct) throws org.apache.thrift.TException {
38639 struct.validate();
38640
38641 oprot.writeStructBegin(STRUCT_DESC);
38642 if (struct.io != null) {
38643 oprot.writeFieldBegin(IO_FIELD_DESC);
38644 struct.io.write(oprot);
38645 oprot.writeFieldEnd();
38646 }
38647 oprot.writeFieldStop();
38648 oprot.writeStructEnd();
38649 }
38650
38651 }
38652
38653 private static class deleteAllRow_resultTupleSchemeFactory implements SchemeFactory {
38654 public deleteAllRow_resultTupleScheme getScheme() {
38655 return new deleteAllRow_resultTupleScheme();
38656 }
38657 }
38658
38659 private static class deleteAllRow_resultTupleScheme extends TupleScheme<deleteAllRow_result> {
38660
38661 @Override
38662 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_result struct) throws org.apache.thrift.TException {
38663 TTupleProtocol oprot = (TTupleProtocol) prot;
38664 BitSet optionals = new BitSet();
38665 if (struct.isSetIo()) {
38666 optionals.set(0);
38667 }
38668 oprot.writeBitSet(optionals, 1);
38669 if (struct.isSetIo()) {
38670 struct.io.write(oprot);
38671 }
38672 }
38673
38674 @Override
38675 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRow_result struct) throws org.apache.thrift.TException {
38676 TTupleProtocol iprot = (TTupleProtocol) prot;
38677 BitSet incoming = iprot.readBitSet(1);
38678 if (incoming.get(0)) {
38679 struct.io = new IOError();
38680 struct.io.read(iprot);
38681 struct.setIoIsSet(true);
38682 }
38683 }
38684 }
38685
38686 }
38687
38688 public static class increment_args implements org.apache.thrift.TBase<increment_args, increment_args._Fields>, java.io.Serializable, Cloneable {
38689 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_args");
38690
38691 private static final org.apache.thrift.protocol.TField INCREMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("increment", org.apache.thrift.protocol.TType.STRUCT, (short)1);
38692
38693 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
38694 static {
38695 schemes.put(StandardScheme.class, new increment_argsStandardSchemeFactory());
38696 schemes.put(TupleScheme.class, new increment_argsTupleSchemeFactory());
38697 }
38698
38699
38700
38701
38702 public TIncrement increment;
38703
38704
38705 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38706
38707
38708
38709 INCREMENT((short)1, "increment");
38710
38711 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38712
38713 static {
38714 for (_Fields field : EnumSet.allOf(_Fields.class)) {
38715 byName.put(field.getFieldName(), field);
38716 }
38717 }
38718
38719
38720
38721
38722 public static _Fields findByThriftId(int fieldId) {
38723 switch(fieldId) {
38724 case 1:
38725 return INCREMENT;
38726 default:
38727 return null;
38728 }
38729 }
38730
38731
38732
38733
38734
38735 public static _Fields findByThriftIdOrThrow(int fieldId) {
38736 _Fields fields = findByThriftId(fieldId);
38737 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38738 return fields;
38739 }
38740
38741
38742
38743
38744 public static _Fields findByName(String name) {
38745 return byName.get(name);
38746 }
38747
38748 private final short _thriftId;
38749 private final String _fieldName;
38750
38751 _Fields(short thriftId, String fieldName) {
38752 _thriftId = thriftId;
38753 _fieldName = fieldName;
38754 }
38755
38756 public short getThriftFieldId() {
38757 return _thriftId;
38758 }
38759
38760 public String getFieldName() {
38761 return _fieldName;
38762 }
38763 }
38764
38765
38766 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38767 static {
38768 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38769 tmpMap.put(_Fields.INCREMENT, new org.apache.thrift.meta_data.FieldMetaData("increment", org.apache.thrift.TFieldRequirementType.DEFAULT,
38770 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIncrement.class)));
38771 metaDataMap = Collections.unmodifiableMap(tmpMap);
38772 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_args.class, metaDataMap);
38773 }
38774
38775 public increment_args() {
38776 }
38777
38778 public increment_args(
38779 TIncrement increment)
38780 {
38781 this();
38782 this.increment = increment;
38783 }
38784
38785
38786
38787
38788 public increment_args(increment_args other) {
38789 if (other.isSetIncrement()) {
38790 this.increment = new TIncrement(other.increment);
38791 }
38792 }
38793
38794 public increment_args deepCopy() {
38795 return new increment_args(this);
38796 }
38797
38798 @Override
38799 public void clear() {
38800 this.increment = null;
38801 }
38802
38803
38804
38805
38806 public TIncrement getIncrement() {
38807 return this.increment;
38808 }
38809
38810
38811
38812
38813 public increment_args setIncrement(TIncrement increment) {
38814 this.increment = increment;
38815 return this;
38816 }
38817
38818 public void unsetIncrement() {
38819 this.increment = null;
38820 }
38821
38822
38823 public boolean isSetIncrement() {
38824 return this.increment != null;
38825 }
38826
38827 public void setIncrementIsSet(boolean value) {
38828 if (!value) {
38829 this.increment = null;
38830 }
38831 }
38832
38833 public void setFieldValue(_Fields field, Object value) {
38834 switch (field) {
38835 case INCREMENT:
38836 if (value == null) {
38837 unsetIncrement();
38838 } else {
38839 setIncrement((TIncrement)value);
38840 }
38841 break;
38842
38843 }
38844 }
38845
38846 public Object getFieldValue(_Fields field) {
38847 switch (field) {
38848 case INCREMENT:
38849 return getIncrement();
38850
38851 }
38852 throw new IllegalStateException();
38853 }
38854
38855
38856 public boolean isSet(_Fields field) {
38857 if (field == null) {
38858 throw new IllegalArgumentException();
38859 }
38860
38861 switch (field) {
38862 case INCREMENT:
38863 return isSetIncrement();
38864 }
38865 throw new IllegalStateException();
38866 }
38867
38868 @Override
38869 public boolean equals(Object that) {
38870 if (that == null)
38871 return false;
38872 if (that instanceof increment_args)
38873 return this.equals((increment_args)that);
38874 return false;
38875 }
38876
38877 public boolean equals(increment_args that) {
38878 if (that == null)
38879 return false;
38880
38881 boolean this_present_increment = true && this.isSetIncrement();
38882 boolean that_present_increment = true && that.isSetIncrement();
38883 if (this_present_increment || that_present_increment) {
38884 if (!(this_present_increment && that_present_increment))
38885 return false;
38886 if (!this.increment.equals(that.increment))
38887 return false;
38888 }
38889
38890 return true;
38891 }
38892
38893 @Override
38894 public int hashCode() {
38895 HashCodeBuilder builder = new HashCodeBuilder();
38896
38897 boolean present_increment = true && (isSetIncrement());
38898 builder.append(present_increment);
38899 if (present_increment)
38900 builder.append(increment);
38901
38902 return builder.toHashCode();
38903 }
38904
38905 public int compareTo(increment_args other) {
38906 if (!getClass().equals(other.getClass())) {
38907 return getClass().getName().compareTo(other.getClass().getName());
38908 }
38909
38910 int lastComparison = 0;
38911 increment_args typedOther = (increment_args)other;
38912
38913 lastComparison = Boolean.valueOf(isSetIncrement()).compareTo(typedOther.isSetIncrement());
38914 if (lastComparison != 0) {
38915 return lastComparison;
38916 }
38917 if (isSetIncrement()) {
38918 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.increment, typedOther.increment);
38919 if (lastComparison != 0) {
38920 return lastComparison;
38921 }
38922 }
38923 return 0;
38924 }
38925
38926 public _Fields fieldForId(int fieldId) {
38927 return _Fields.findByThriftId(fieldId);
38928 }
38929
38930 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38931 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
38932 }
38933
38934 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38935 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
38936 }
38937
38938 @Override
38939 public String toString() {
38940 StringBuilder sb = new StringBuilder("increment_args(");
38941 boolean first = true;
38942
38943 sb.append("increment:");
38944 if (this.increment == null) {
38945 sb.append("null");
38946 } else {
38947 sb.append(this.increment);
38948 }
38949 first = false;
38950 sb.append(")");
38951 return sb.toString();
38952 }
38953
38954 public void validate() throws org.apache.thrift.TException {
38955
38956
38957 if (increment != null) {
38958 increment.validate();
38959 }
38960 }
38961
38962 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38963 try {
38964 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38965 } catch (org.apache.thrift.TException te) {
38966 throw new java.io.IOException(te);
38967 }
38968 }
38969
38970 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38971 try {
38972 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38973 } catch (org.apache.thrift.TException te) {
38974 throw new java.io.IOException(te);
38975 }
38976 }
38977
38978 private static class increment_argsStandardSchemeFactory implements SchemeFactory {
38979 public increment_argsStandardScheme getScheme() {
38980 return new increment_argsStandardScheme();
38981 }
38982 }
38983
38984 private static class increment_argsStandardScheme extends StandardScheme<increment_args> {
38985
38986 public void read(org.apache.thrift.protocol.TProtocol iprot, increment_args struct) throws org.apache.thrift.TException {
38987 org.apache.thrift.protocol.TField schemeField;
38988 iprot.readStructBegin();
38989 while (true)
38990 {
38991 schemeField = iprot.readFieldBegin();
38992 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
38993 break;
38994 }
38995 switch (schemeField.id) {
38996 case 1:
38997 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
38998 struct.increment = new TIncrement();
38999 struct.increment.read(iprot);
39000 struct.setIncrementIsSet(true);
39001 } else {
39002 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39003 }
39004 break;
39005 default:
39006 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39007 }
39008 iprot.readFieldEnd();
39009 }
39010 iprot.readStructEnd();
39011
39012
39013 struct.validate();
39014 }
39015
39016 public void write(org.apache.thrift.protocol.TProtocol oprot, increment_args struct) throws org.apache.thrift.TException {
39017 struct.validate();
39018
39019 oprot.writeStructBegin(STRUCT_DESC);
39020 if (struct.increment != null) {
39021 oprot.writeFieldBegin(INCREMENT_FIELD_DESC);
39022 struct.increment.write(oprot);
39023 oprot.writeFieldEnd();
39024 }
39025 oprot.writeFieldStop();
39026 oprot.writeStructEnd();
39027 }
39028
39029 }
39030
39031 private static class increment_argsTupleSchemeFactory implements SchemeFactory {
39032 public increment_argsTupleScheme getScheme() {
39033 return new increment_argsTupleScheme();
39034 }
39035 }
39036
39037 private static class increment_argsTupleScheme extends TupleScheme<increment_args> {
39038
39039 @Override
39040 public void write(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException {
39041 TTupleProtocol oprot = (TTupleProtocol) prot;
39042 BitSet optionals = new BitSet();
39043 if (struct.isSetIncrement()) {
39044 optionals.set(0);
39045 }
39046 oprot.writeBitSet(optionals, 1);
39047 if (struct.isSetIncrement()) {
39048 struct.increment.write(oprot);
39049 }
39050 }
39051
39052 @Override
39053 public void read(org.apache.thrift.protocol.TProtocol prot, increment_args struct) throws org.apache.thrift.TException {
39054 TTupleProtocol iprot = (TTupleProtocol) prot;
39055 BitSet incoming = iprot.readBitSet(1);
39056 if (incoming.get(0)) {
39057 struct.increment = new TIncrement();
39058 struct.increment.read(iprot);
39059 struct.setIncrementIsSet(true);
39060 }
39061 }
39062 }
39063
39064 }
39065
39066 public static class increment_result implements org.apache.thrift.TBase<increment_result, increment_result._Fields>, java.io.Serializable, Cloneable {
39067 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("increment_result");
39068
39069 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
39070
39071 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
39072 static {
39073 schemes.put(StandardScheme.class, new increment_resultStandardSchemeFactory());
39074 schemes.put(TupleScheme.class, new increment_resultTupleSchemeFactory());
39075 }
39076
39077 public IOError io;
39078
39079
39080 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39081 IO((short)1, "io");
39082
39083 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39084
39085 static {
39086 for (_Fields field : EnumSet.allOf(_Fields.class)) {
39087 byName.put(field.getFieldName(), field);
39088 }
39089 }
39090
39091
39092
39093
39094 public static _Fields findByThriftId(int fieldId) {
39095 switch(fieldId) {
39096 case 1:
39097 return IO;
39098 default:
39099 return null;
39100 }
39101 }
39102
39103
39104
39105
39106
39107 public static _Fields findByThriftIdOrThrow(int fieldId) {
39108 _Fields fields = findByThriftId(fieldId);
39109 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39110 return fields;
39111 }
39112
39113
39114
39115
39116 public static _Fields findByName(String name) {
39117 return byName.get(name);
39118 }
39119
39120 private final short _thriftId;
39121 private final String _fieldName;
39122
39123 _Fields(short thriftId, String fieldName) {
39124 _thriftId = thriftId;
39125 _fieldName = fieldName;
39126 }
39127
39128 public short getThriftFieldId() {
39129 return _thriftId;
39130 }
39131
39132 public String getFieldName() {
39133 return _fieldName;
39134 }
39135 }
39136
39137
39138 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39139 static {
39140 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39141 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
39142 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39143 metaDataMap = Collections.unmodifiableMap(tmpMap);
39144 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(increment_result.class, metaDataMap);
39145 }
39146
39147 public increment_result() {
39148 }
39149
39150 public increment_result(
39151 IOError io)
39152 {
39153 this();
39154 this.io = io;
39155 }
39156
39157
39158
39159
39160 public increment_result(increment_result other) {
39161 if (other.isSetIo()) {
39162 this.io = new IOError(other.io);
39163 }
39164 }
39165
39166 public increment_result deepCopy() {
39167 return new increment_result(this);
39168 }
39169
39170 @Override
39171 public void clear() {
39172 this.io = null;
39173 }
39174
39175 public IOError getIo() {
39176 return this.io;
39177 }
39178
39179 public increment_result setIo(IOError io) {
39180 this.io = io;
39181 return this;
39182 }
39183
39184 public void unsetIo() {
39185 this.io = null;
39186 }
39187
39188
39189 public boolean isSetIo() {
39190 return this.io != null;
39191 }
39192
39193 public void setIoIsSet(boolean value) {
39194 if (!value) {
39195 this.io = null;
39196 }
39197 }
39198
39199 public void setFieldValue(_Fields field, Object value) {
39200 switch (field) {
39201 case IO:
39202 if (value == null) {
39203 unsetIo();
39204 } else {
39205 setIo((IOError)value);
39206 }
39207 break;
39208
39209 }
39210 }
39211
39212 public Object getFieldValue(_Fields field) {
39213 switch (field) {
39214 case IO:
39215 return getIo();
39216
39217 }
39218 throw new IllegalStateException();
39219 }
39220
39221
39222 public boolean isSet(_Fields field) {
39223 if (field == null) {
39224 throw new IllegalArgumentException();
39225 }
39226
39227 switch (field) {
39228 case IO:
39229 return isSetIo();
39230 }
39231 throw new IllegalStateException();
39232 }
39233
39234 @Override
39235 public boolean equals(Object that) {
39236 if (that == null)
39237 return false;
39238 if (that instanceof increment_result)
39239 return this.equals((increment_result)that);
39240 return false;
39241 }
39242
39243 public boolean equals(increment_result that) {
39244 if (that == null)
39245 return false;
39246
39247 boolean this_present_io = true && this.isSetIo();
39248 boolean that_present_io = true && that.isSetIo();
39249 if (this_present_io || that_present_io) {
39250 if (!(this_present_io && that_present_io))
39251 return false;
39252 if (!this.io.equals(that.io))
39253 return false;
39254 }
39255
39256 return true;
39257 }
39258
39259 @Override
39260 public int hashCode() {
39261 HashCodeBuilder builder = new HashCodeBuilder();
39262
39263 boolean present_io = true && (isSetIo());
39264 builder.append(present_io);
39265 if (present_io)
39266 builder.append(io);
39267
39268 return builder.toHashCode();
39269 }
39270
39271 public int compareTo(increment_result other) {
39272 if (!getClass().equals(other.getClass())) {
39273 return getClass().getName().compareTo(other.getClass().getName());
39274 }
39275
39276 int lastComparison = 0;
39277 increment_result typedOther = (increment_result)other;
39278
39279 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
39280 if (lastComparison != 0) {
39281 return lastComparison;
39282 }
39283 if (isSetIo()) {
39284 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
39285 if (lastComparison != 0) {
39286 return lastComparison;
39287 }
39288 }
39289 return 0;
39290 }
39291
39292 public _Fields fieldForId(int fieldId) {
39293 return _Fields.findByThriftId(fieldId);
39294 }
39295
39296 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39297 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
39298 }
39299
39300 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39301 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
39302 }
39303
39304 @Override
39305 public String toString() {
39306 StringBuilder sb = new StringBuilder("increment_result(");
39307 boolean first = true;
39308
39309 sb.append("io:");
39310 if (this.io == null) {
39311 sb.append("null");
39312 } else {
39313 sb.append(this.io);
39314 }
39315 first = false;
39316 sb.append(")");
39317 return sb.toString();
39318 }
39319
39320 public void validate() throws org.apache.thrift.TException {
39321
39322
39323 }
39324
39325 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39326 try {
39327 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39328 } catch (org.apache.thrift.TException te) {
39329 throw new java.io.IOException(te);
39330 }
39331 }
39332
39333 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39334 try {
39335 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39336 } catch (org.apache.thrift.TException te) {
39337 throw new java.io.IOException(te);
39338 }
39339 }
39340
39341 private static class increment_resultStandardSchemeFactory implements SchemeFactory {
39342 public increment_resultStandardScheme getScheme() {
39343 return new increment_resultStandardScheme();
39344 }
39345 }
39346
39347 private static class increment_resultStandardScheme extends StandardScheme<increment_result> {
39348
39349 public void read(org.apache.thrift.protocol.TProtocol iprot, increment_result struct) throws org.apache.thrift.TException {
39350 org.apache.thrift.protocol.TField schemeField;
39351 iprot.readStructBegin();
39352 while (true)
39353 {
39354 schemeField = iprot.readFieldBegin();
39355 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
39356 break;
39357 }
39358 switch (schemeField.id) {
39359 case 1:
39360 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
39361 struct.io = new IOError();
39362 struct.io.read(iprot);
39363 struct.setIoIsSet(true);
39364 } else {
39365 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39366 }
39367 break;
39368 default:
39369 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39370 }
39371 iprot.readFieldEnd();
39372 }
39373 iprot.readStructEnd();
39374
39375
39376 struct.validate();
39377 }
39378
39379 public void write(org.apache.thrift.protocol.TProtocol oprot, increment_result struct) throws org.apache.thrift.TException {
39380 struct.validate();
39381
39382 oprot.writeStructBegin(STRUCT_DESC);
39383 if (struct.io != null) {
39384 oprot.writeFieldBegin(IO_FIELD_DESC);
39385 struct.io.write(oprot);
39386 oprot.writeFieldEnd();
39387 }
39388 oprot.writeFieldStop();
39389 oprot.writeStructEnd();
39390 }
39391
39392 }
39393
39394 private static class increment_resultTupleSchemeFactory implements SchemeFactory {
39395 public increment_resultTupleScheme getScheme() {
39396 return new increment_resultTupleScheme();
39397 }
39398 }
39399
39400 private static class increment_resultTupleScheme extends TupleScheme<increment_result> {
39401
39402 @Override
39403 public void write(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException {
39404 TTupleProtocol oprot = (TTupleProtocol) prot;
39405 BitSet optionals = new BitSet();
39406 if (struct.isSetIo()) {
39407 optionals.set(0);
39408 }
39409 oprot.writeBitSet(optionals, 1);
39410 if (struct.isSetIo()) {
39411 struct.io.write(oprot);
39412 }
39413 }
39414
39415 @Override
39416 public void read(org.apache.thrift.protocol.TProtocol prot, increment_result struct) throws org.apache.thrift.TException {
39417 TTupleProtocol iprot = (TTupleProtocol) prot;
39418 BitSet incoming = iprot.readBitSet(1);
39419 if (incoming.get(0)) {
39420 struct.io = new IOError();
39421 struct.io.read(iprot);
39422 struct.setIoIsSet(true);
39423 }
39424 }
39425 }
39426
39427 }
39428
39429 public static class incrementRows_args implements org.apache.thrift.TBase<incrementRows_args, incrementRows_args._Fields>, java.io.Serializable, Cloneable {
39430 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("incrementRows_args");
39431
39432 private static final org.apache.thrift.protocol.TField INCREMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("increments", org.apache.thrift.protocol.TType.LIST, (short)1);
39433
39434 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
39435 static {
39436 schemes.put(StandardScheme.class, new incrementRows_argsStandardSchemeFactory());
39437 schemes.put(TupleScheme.class, new incrementRows_argsTupleSchemeFactory());
39438 }
39439
39440
39441
39442
39443 public List<TIncrement> increments;
39444
39445
39446 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39447
39448
39449
39450 INCREMENTS((short)1, "increments");
39451
39452 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39453
39454 static {
39455 for (_Fields field : EnumSet.allOf(_Fields.class)) {
39456 byName.put(field.getFieldName(), field);
39457 }
39458 }
39459
39460
39461
39462
39463 public static _Fields findByThriftId(int fieldId) {
39464 switch(fieldId) {
39465 case 1:
39466 return INCREMENTS;
39467 default:
39468 return null;
39469 }
39470 }
39471
39472
39473
39474
39475
39476 public static _Fields findByThriftIdOrThrow(int fieldId) {
39477 _Fields fields = findByThriftId(fieldId);
39478 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39479 return fields;
39480 }
39481
39482
39483
39484
39485 public static _Fields findByName(String name) {
39486 return byName.get(name);
39487 }
39488
39489 private final short _thriftId;
39490 private final String _fieldName;
39491
39492 _Fields(short thriftId, String fieldName) {
39493 _thriftId = thriftId;
39494 _fieldName = fieldName;
39495 }
39496
39497 public short getThriftFieldId() {
39498 return _thriftId;
39499 }
39500
39501 public String getFieldName() {
39502 return _fieldName;
39503 }
39504 }
39505
39506
39507 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39508 static {
39509 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39510 tmpMap.put(_Fields.INCREMENTS, new org.apache.thrift.meta_data.FieldMetaData("increments", org.apache.thrift.TFieldRequirementType.DEFAULT,
39511 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
39512 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIncrement.class))));
39513 metaDataMap = Collections.unmodifiableMap(tmpMap);
39514 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(incrementRows_args.class, metaDataMap);
39515 }
39516
39517 public incrementRows_args() {
39518 }
39519
39520 public incrementRows_args(
39521 List<TIncrement> increments)
39522 {
39523 this();
39524 this.increments = increments;
39525 }
39526
39527
39528
39529
39530 public incrementRows_args(incrementRows_args other) {
39531 if (other.isSetIncrements()) {
39532 List<TIncrement> __this__increments = new ArrayList<TIncrement>();
39533 for (TIncrement other_element : other.increments) {
39534 __this__increments.add(new TIncrement(other_element));
39535 }
39536 this.increments = __this__increments;
39537 }
39538 }
39539
39540 public incrementRows_args deepCopy() {
39541 return new incrementRows_args(this);
39542 }
39543
39544 @Override
39545 public void clear() {
39546 this.increments = null;
39547 }
39548
39549 public int getIncrementsSize() {
39550 return (this.increments == null) ? 0 : this.increments.size();
39551 }
39552
39553 public java.util.Iterator<TIncrement> getIncrementsIterator() {
39554 return (this.increments == null) ? null : this.increments.iterator();
39555 }
39556
39557 public void addToIncrements(TIncrement elem) {
39558 if (this.increments == null) {
39559 this.increments = new ArrayList<TIncrement>();
39560 }
39561 this.increments.add(elem);
39562 }
39563
39564
39565
39566
39567 public List<TIncrement> getIncrements() {
39568 return this.increments;
39569 }
39570
39571
39572
39573
39574 public incrementRows_args setIncrements(List<TIncrement> increments) {
39575 this.increments = increments;
39576 return this;
39577 }
39578
39579 public void unsetIncrements() {
39580 this.increments = null;
39581 }
39582
39583
39584 public boolean isSetIncrements() {
39585 return this.increments != null;
39586 }
39587
39588 public void setIncrementsIsSet(boolean value) {
39589 if (!value) {
39590 this.increments = null;
39591 }
39592 }
39593
39594 public void setFieldValue(_Fields field, Object value) {
39595 switch (field) {
39596 case INCREMENTS:
39597 if (value == null) {
39598 unsetIncrements();
39599 } else {
39600 setIncrements((List<TIncrement>)value);
39601 }
39602 break;
39603
39604 }
39605 }
39606
39607 public Object getFieldValue(_Fields field) {
39608 switch (field) {
39609 case INCREMENTS:
39610 return getIncrements();
39611
39612 }
39613 throw new IllegalStateException();
39614 }
39615
39616
39617 public boolean isSet(_Fields field) {
39618 if (field == null) {
39619 throw new IllegalArgumentException();
39620 }
39621
39622 switch (field) {
39623 case INCREMENTS:
39624 return isSetIncrements();
39625 }
39626 throw new IllegalStateException();
39627 }
39628
39629 @Override
39630 public boolean equals(Object that) {
39631 if (that == null)
39632 return false;
39633 if (that instanceof incrementRows_args)
39634 return this.equals((incrementRows_args)that);
39635 return false;
39636 }
39637
39638 public boolean equals(incrementRows_args that) {
39639 if (that == null)
39640 return false;
39641
39642 boolean this_present_increments = true && this.isSetIncrements();
39643 boolean that_present_increments = true && that.isSetIncrements();
39644 if (this_present_increments || that_present_increments) {
39645 if (!(this_present_increments && that_present_increments))
39646 return false;
39647 if (!this.increments.equals(that.increments))
39648 return false;
39649 }
39650
39651 return true;
39652 }
39653
39654 @Override
39655 public int hashCode() {
39656 HashCodeBuilder builder = new HashCodeBuilder();
39657
39658 boolean present_increments = true && (isSetIncrements());
39659 builder.append(present_increments);
39660 if (present_increments)
39661 builder.append(increments);
39662
39663 return builder.toHashCode();
39664 }
39665
39666 public int compareTo(incrementRows_args other) {
39667 if (!getClass().equals(other.getClass())) {
39668 return getClass().getName().compareTo(other.getClass().getName());
39669 }
39670
39671 int lastComparison = 0;
39672 incrementRows_args typedOther = (incrementRows_args)other;
39673
39674 lastComparison = Boolean.valueOf(isSetIncrements()).compareTo(typedOther.isSetIncrements());
39675 if (lastComparison != 0) {
39676 return lastComparison;
39677 }
39678 if (isSetIncrements()) {
39679 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.increments, typedOther.increments);
39680 if (lastComparison != 0) {
39681 return lastComparison;
39682 }
39683 }
39684 return 0;
39685 }
39686
39687 public _Fields fieldForId(int fieldId) {
39688 return _Fields.findByThriftId(fieldId);
39689 }
39690
39691 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39692 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
39693 }
39694
39695 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39696 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
39697 }
39698
39699 @Override
39700 public String toString() {
39701 StringBuilder sb = new StringBuilder("incrementRows_args(");
39702 boolean first = true;
39703
39704 sb.append("increments:");
39705 if (this.increments == null) {
39706 sb.append("null");
39707 } else {
39708 sb.append(this.increments);
39709 }
39710 first = false;
39711 sb.append(")");
39712 return sb.toString();
39713 }
39714
39715 public void validate() throws org.apache.thrift.TException {
39716
39717
39718 }
39719
39720 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39721 try {
39722 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39723 } catch (org.apache.thrift.TException te) {
39724 throw new java.io.IOException(te);
39725 }
39726 }
39727
39728 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39729 try {
39730 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39731 } catch (org.apache.thrift.TException te) {
39732 throw new java.io.IOException(te);
39733 }
39734 }
39735
39736 private static class incrementRows_argsStandardSchemeFactory implements SchemeFactory {
39737 public incrementRows_argsStandardScheme getScheme() {
39738 return new incrementRows_argsStandardScheme();
39739 }
39740 }
39741
39742 private static class incrementRows_argsStandardScheme extends StandardScheme<incrementRows_args> {
39743
39744 public void read(org.apache.thrift.protocol.TProtocol iprot, incrementRows_args struct) throws org.apache.thrift.TException {
39745 org.apache.thrift.protocol.TField schemeField;
39746 iprot.readStructBegin();
39747 while (true)
39748 {
39749 schemeField = iprot.readFieldBegin();
39750 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
39751 break;
39752 }
39753 switch (schemeField.id) {
39754 case 1:
39755 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
39756 {
39757 org.apache.thrift.protocol.TList _list448 = iprot.readListBegin();
39758 struct.increments = new ArrayList<TIncrement>(_list448.size);
39759 for (int _i449 = 0; _i449 < _list448.size; ++_i449)
39760 {
39761 TIncrement _elem450;
39762 _elem450 = new TIncrement();
39763 _elem450.read(iprot);
39764 struct.increments.add(_elem450);
39765 }
39766 iprot.readListEnd();
39767 }
39768 struct.setIncrementsIsSet(true);
39769 } else {
39770 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39771 }
39772 break;
39773 default:
39774 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
39775 }
39776 iprot.readFieldEnd();
39777 }
39778 iprot.readStructEnd();
39779
39780
39781 struct.validate();
39782 }
39783
39784 public void write(org.apache.thrift.protocol.TProtocol oprot, incrementRows_args struct) throws org.apache.thrift.TException {
39785 struct.validate();
39786
39787 oprot.writeStructBegin(STRUCT_DESC);
39788 if (struct.increments != null) {
39789 oprot.writeFieldBegin(INCREMENTS_FIELD_DESC);
39790 {
39791 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.increments.size()));
39792 for (TIncrement _iter451 : struct.increments)
39793 {
39794 _iter451.write(oprot);
39795 }
39796 oprot.writeListEnd();
39797 }
39798 oprot.writeFieldEnd();
39799 }
39800 oprot.writeFieldStop();
39801 oprot.writeStructEnd();
39802 }
39803
39804 }
39805
39806 private static class incrementRows_argsTupleSchemeFactory implements SchemeFactory {
39807 public incrementRows_argsTupleScheme getScheme() {
39808 return new incrementRows_argsTupleScheme();
39809 }
39810 }
39811
39812 private static class incrementRows_argsTupleScheme extends TupleScheme<incrementRows_args> {
39813
39814 @Override
39815 public void write(org.apache.thrift.protocol.TProtocol prot, incrementRows_args struct) throws org.apache.thrift.TException {
39816 TTupleProtocol oprot = (TTupleProtocol) prot;
39817 BitSet optionals = new BitSet();
39818 if (struct.isSetIncrements()) {
39819 optionals.set(0);
39820 }
39821 oprot.writeBitSet(optionals, 1);
39822 if (struct.isSetIncrements()) {
39823 {
39824 oprot.writeI32(struct.increments.size());
39825 for (TIncrement _iter452 : struct.increments)
39826 {
39827 _iter452.write(oprot);
39828 }
39829 }
39830 }
39831 }
39832
39833 @Override
39834 public void read(org.apache.thrift.protocol.TProtocol prot, incrementRows_args struct) throws org.apache.thrift.TException {
39835 TTupleProtocol iprot = (TTupleProtocol) prot;
39836 BitSet incoming = iprot.readBitSet(1);
39837 if (incoming.get(0)) {
39838 {
39839 org.apache.thrift.protocol.TList _list453 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
39840 struct.increments = new ArrayList<TIncrement>(_list453.size);
39841 for (int _i454 = 0; _i454 < _list453.size; ++_i454)
39842 {
39843 TIncrement _elem455;
39844 _elem455 = new TIncrement();
39845 _elem455.read(iprot);
39846 struct.increments.add(_elem455);
39847 }
39848 }
39849 struct.setIncrementsIsSet(true);
39850 }
39851 }
39852 }
39853
39854 }
39855
39856 public static class incrementRows_result implements org.apache.thrift.TBase<incrementRows_result, incrementRows_result._Fields>, java.io.Serializable, Cloneable {
39857 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("incrementRows_result");
39858
39859 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
39860
39861 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
39862 static {
39863 schemes.put(StandardScheme.class, new incrementRows_resultStandardSchemeFactory());
39864 schemes.put(TupleScheme.class, new incrementRows_resultTupleSchemeFactory());
39865 }
39866
39867 public IOError io;
39868
39869
39870 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39871 IO((short)1, "io");
39872
39873 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39874
39875 static {
39876 for (_Fields field : EnumSet.allOf(_Fields.class)) {
39877 byName.put(field.getFieldName(), field);
39878 }
39879 }
39880
39881
39882
39883
39884 public static _Fields findByThriftId(int fieldId) {
39885 switch(fieldId) {
39886 case 1:
39887 return IO;
39888 default:
39889 return null;
39890 }
39891 }
39892
39893
39894
39895
39896
39897 public static _Fields findByThriftIdOrThrow(int fieldId) {
39898 _Fields fields = findByThriftId(fieldId);
39899 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39900 return fields;
39901 }
39902
39903
39904
39905
39906 public static _Fields findByName(String name) {
39907 return byName.get(name);
39908 }
39909
39910 private final short _thriftId;
39911 private final String _fieldName;
39912
39913 _Fields(short thriftId, String fieldName) {
39914 _thriftId = thriftId;
39915 _fieldName = fieldName;
39916 }
39917
39918 public short getThriftFieldId() {
39919 return _thriftId;
39920 }
39921
39922 public String getFieldName() {
39923 return _fieldName;
39924 }
39925 }
39926
39927
39928 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39929 static {
39930 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39931 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
39932 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
39933 metaDataMap = Collections.unmodifiableMap(tmpMap);
39934 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(incrementRows_result.class, metaDataMap);
39935 }
39936
39937 public incrementRows_result() {
39938 }
39939
39940 public incrementRows_result(
39941 IOError io)
39942 {
39943 this();
39944 this.io = io;
39945 }
39946
39947
39948
39949
39950 public incrementRows_result(incrementRows_result other) {
39951 if (other.isSetIo()) {
39952 this.io = new IOError(other.io);
39953 }
39954 }
39955
39956 public incrementRows_result deepCopy() {
39957 return new incrementRows_result(this);
39958 }
39959
39960 @Override
39961 public void clear() {
39962 this.io = null;
39963 }
39964
39965 public IOError getIo() {
39966 return this.io;
39967 }
39968
39969 public incrementRows_result setIo(IOError io) {
39970 this.io = io;
39971 return this;
39972 }
39973
39974 public void unsetIo() {
39975 this.io = null;
39976 }
39977
39978
39979 public boolean isSetIo() {
39980 return this.io != null;
39981 }
39982
39983 public void setIoIsSet(boolean value) {
39984 if (!value) {
39985 this.io = null;
39986 }
39987 }
39988
39989 public void setFieldValue(_Fields field, Object value) {
39990 switch (field) {
39991 case IO:
39992 if (value == null) {
39993 unsetIo();
39994 } else {
39995 setIo((IOError)value);
39996 }
39997 break;
39998
39999 }
40000 }
40001
40002 public Object getFieldValue(_Fields field) {
40003 switch (field) {
40004 case IO:
40005 return getIo();
40006
40007 }
40008 throw new IllegalStateException();
40009 }
40010
40011
40012 public boolean isSet(_Fields field) {
40013 if (field == null) {
40014 throw new IllegalArgumentException();
40015 }
40016
40017 switch (field) {
40018 case IO:
40019 return isSetIo();
40020 }
40021 throw new IllegalStateException();
40022 }
40023
40024 @Override
40025 public boolean equals(Object that) {
40026 if (that == null)
40027 return false;
40028 if (that instanceof incrementRows_result)
40029 return this.equals((incrementRows_result)that);
40030 return false;
40031 }
40032
40033 public boolean equals(incrementRows_result that) {
40034 if (that == null)
40035 return false;
40036
40037 boolean this_present_io = true && this.isSetIo();
40038 boolean that_present_io = true && that.isSetIo();
40039 if (this_present_io || that_present_io) {
40040 if (!(this_present_io && that_present_io))
40041 return false;
40042 if (!this.io.equals(that.io))
40043 return false;
40044 }
40045
40046 return true;
40047 }
40048
40049 @Override
40050 public int hashCode() {
40051 HashCodeBuilder builder = new HashCodeBuilder();
40052
40053 boolean present_io = true && (isSetIo());
40054 builder.append(present_io);
40055 if (present_io)
40056 builder.append(io);
40057
40058 return builder.toHashCode();
40059 }
40060
40061 public int compareTo(incrementRows_result other) {
40062 if (!getClass().equals(other.getClass())) {
40063 return getClass().getName().compareTo(other.getClass().getName());
40064 }
40065
40066 int lastComparison = 0;
40067 incrementRows_result typedOther = (incrementRows_result)other;
40068
40069 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
40070 if (lastComparison != 0) {
40071 return lastComparison;
40072 }
40073 if (isSetIo()) {
40074 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
40075 if (lastComparison != 0) {
40076 return lastComparison;
40077 }
40078 }
40079 return 0;
40080 }
40081
40082 public _Fields fieldForId(int fieldId) {
40083 return _Fields.findByThriftId(fieldId);
40084 }
40085
40086 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40087 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
40088 }
40089
40090 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40091 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
40092 }
40093
40094 @Override
40095 public String toString() {
40096 StringBuilder sb = new StringBuilder("incrementRows_result(");
40097 boolean first = true;
40098
40099 sb.append("io:");
40100 if (this.io == null) {
40101 sb.append("null");
40102 } else {
40103 sb.append(this.io);
40104 }
40105 first = false;
40106 sb.append(")");
40107 return sb.toString();
40108 }
40109
40110 public void validate() throws org.apache.thrift.TException {
40111
40112
40113 }
40114
40115 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40116 try {
40117 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40118 } catch (org.apache.thrift.TException te) {
40119 throw new java.io.IOException(te);
40120 }
40121 }
40122
40123 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40124 try {
40125 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40126 } catch (org.apache.thrift.TException te) {
40127 throw new java.io.IOException(te);
40128 }
40129 }
40130
40131 private static class incrementRows_resultStandardSchemeFactory implements SchemeFactory {
40132 public incrementRows_resultStandardScheme getScheme() {
40133 return new incrementRows_resultStandardScheme();
40134 }
40135 }
40136
40137 private static class incrementRows_resultStandardScheme extends StandardScheme<incrementRows_result> {
40138
40139 public void read(org.apache.thrift.protocol.TProtocol iprot, incrementRows_result struct) throws org.apache.thrift.TException {
40140 org.apache.thrift.protocol.TField schemeField;
40141 iprot.readStructBegin();
40142 while (true)
40143 {
40144 schemeField = iprot.readFieldBegin();
40145 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
40146 break;
40147 }
40148 switch (schemeField.id) {
40149 case 1:
40150 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
40151 struct.io = new IOError();
40152 struct.io.read(iprot);
40153 struct.setIoIsSet(true);
40154 } else {
40155 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40156 }
40157 break;
40158 default:
40159 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40160 }
40161 iprot.readFieldEnd();
40162 }
40163 iprot.readStructEnd();
40164
40165
40166 struct.validate();
40167 }
40168
40169 public void write(org.apache.thrift.protocol.TProtocol oprot, incrementRows_result struct) throws org.apache.thrift.TException {
40170 struct.validate();
40171
40172 oprot.writeStructBegin(STRUCT_DESC);
40173 if (struct.io != null) {
40174 oprot.writeFieldBegin(IO_FIELD_DESC);
40175 struct.io.write(oprot);
40176 oprot.writeFieldEnd();
40177 }
40178 oprot.writeFieldStop();
40179 oprot.writeStructEnd();
40180 }
40181
40182 }
40183
40184 private static class incrementRows_resultTupleSchemeFactory implements SchemeFactory {
40185 public incrementRows_resultTupleScheme getScheme() {
40186 return new incrementRows_resultTupleScheme();
40187 }
40188 }
40189
40190 private static class incrementRows_resultTupleScheme extends TupleScheme<incrementRows_result> {
40191
40192 @Override
40193 public void write(org.apache.thrift.protocol.TProtocol prot, incrementRows_result struct) throws org.apache.thrift.TException {
40194 TTupleProtocol oprot = (TTupleProtocol) prot;
40195 BitSet optionals = new BitSet();
40196 if (struct.isSetIo()) {
40197 optionals.set(0);
40198 }
40199 oprot.writeBitSet(optionals, 1);
40200 if (struct.isSetIo()) {
40201 struct.io.write(oprot);
40202 }
40203 }
40204
40205 @Override
40206 public void read(org.apache.thrift.protocol.TProtocol prot, incrementRows_result struct) throws org.apache.thrift.TException {
40207 TTupleProtocol iprot = (TTupleProtocol) prot;
40208 BitSet incoming = iprot.readBitSet(1);
40209 if (incoming.get(0)) {
40210 struct.io = new IOError();
40211 struct.io.read(iprot);
40212 struct.setIoIsSet(true);
40213 }
40214 }
40215 }
40216
40217 }
40218
40219 public static class deleteAllRowTs_args implements org.apache.thrift.TBase<deleteAllRowTs_args, deleteAllRowTs_args._Fields>, java.io.Serializable, Cloneable {
40220 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRowTs_args");
40221
40222 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
40223 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
40224 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)3);
40225 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
40226
40227 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
40228 static {
40229 schemes.put(StandardScheme.class, new deleteAllRowTs_argsStandardSchemeFactory());
40230 schemes.put(TupleScheme.class, new deleteAllRowTs_argsTupleSchemeFactory());
40231 }
40232
40233
40234
40235
40236 public ByteBuffer tableName;
40237
40238
40239
40240 public ByteBuffer row;
40241
40242
40243
40244 public long timestamp;
40245
40246
40247
40248 public Map<ByteBuffer,ByteBuffer> attributes;
40249
40250
40251 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40252
40253
40254
40255 TABLE_NAME((short)1, "tableName"),
40256
40257
40258
40259 ROW((short)2, "row"),
40260
40261
40262
40263 TIMESTAMP((short)3, "timestamp"),
40264
40265
40266
40267 ATTRIBUTES((short)4, "attributes");
40268
40269 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40270
40271 static {
40272 for (_Fields field : EnumSet.allOf(_Fields.class)) {
40273 byName.put(field.getFieldName(), field);
40274 }
40275 }
40276
40277
40278
40279
40280 public static _Fields findByThriftId(int fieldId) {
40281 switch(fieldId) {
40282 case 1:
40283 return TABLE_NAME;
40284 case 2:
40285 return ROW;
40286 case 3:
40287 return TIMESTAMP;
40288 case 4:
40289 return ATTRIBUTES;
40290 default:
40291 return null;
40292 }
40293 }
40294
40295
40296
40297
40298
40299 public static _Fields findByThriftIdOrThrow(int fieldId) {
40300 _Fields fields = findByThriftId(fieldId);
40301 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40302 return fields;
40303 }
40304
40305
40306
40307
40308 public static _Fields findByName(String name) {
40309 return byName.get(name);
40310 }
40311
40312 private final short _thriftId;
40313 private final String _fieldName;
40314
40315 _Fields(short thriftId, String fieldName) {
40316 _thriftId = thriftId;
40317 _fieldName = fieldName;
40318 }
40319
40320 public short getThriftFieldId() {
40321 return _thriftId;
40322 }
40323
40324 public String getFieldName() {
40325 return _fieldName;
40326 }
40327 }
40328
40329
40330 private static final int __TIMESTAMP_ISSET_ID = 0;
40331 private byte __isset_bitfield = 0;
40332 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40333 static {
40334 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40335 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
40336 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
40337 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
40338 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
40339 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
40340 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
40341 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
40342 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
40343 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
40344 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
40345 metaDataMap = Collections.unmodifiableMap(tmpMap);
40346 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRowTs_args.class, metaDataMap);
40347 }
40348
40349 public deleteAllRowTs_args() {
40350 }
40351
40352 public deleteAllRowTs_args(
40353 ByteBuffer tableName,
40354 ByteBuffer row,
40355 long timestamp,
40356 Map<ByteBuffer,ByteBuffer> attributes)
40357 {
40358 this();
40359 this.tableName = tableName;
40360 this.row = row;
40361 this.timestamp = timestamp;
40362 setTimestampIsSet(true);
40363 this.attributes = attributes;
40364 }
40365
40366
40367
40368
40369 public deleteAllRowTs_args(deleteAllRowTs_args other) {
40370 __isset_bitfield = other.__isset_bitfield;
40371 if (other.isSetTableName()) {
40372 this.tableName = other.tableName;
40373 }
40374 if (other.isSetRow()) {
40375 this.row = other.row;
40376 }
40377 this.timestamp = other.timestamp;
40378 if (other.isSetAttributes()) {
40379 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
40380 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
40381
40382 ByteBuffer other_element_key = other_element.getKey();
40383 ByteBuffer other_element_value = other_element.getValue();
40384
40385 ByteBuffer __this__attributes_copy_key = other_element_key;
40386
40387 ByteBuffer __this__attributes_copy_value = other_element_value;
40388
40389 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
40390 }
40391 this.attributes = __this__attributes;
40392 }
40393 }
40394
40395 public deleteAllRowTs_args deepCopy() {
40396 return new deleteAllRowTs_args(this);
40397 }
40398
40399 @Override
40400 public void clear() {
40401 this.tableName = null;
40402 this.row = null;
40403 setTimestampIsSet(false);
40404 this.timestamp = 0;
40405 this.attributes = null;
40406 }
40407
40408
40409
40410
40411 public byte[] getTableName() {
40412 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
40413 return tableName == null ? null : tableName.array();
40414 }
40415
40416 public ByteBuffer bufferForTableName() {
40417 return tableName;
40418 }
40419
40420
40421
40422
40423 public deleteAllRowTs_args setTableName(byte[] tableName) {
40424 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
40425 return this;
40426 }
40427
40428 public deleteAllRowTs_args setTableName(ByteBuffer tableName) {
40429 this.tableName = tableName;
40430 return this;
40431 }
40432
40433 public void unsetTableName() {
40434 this.tableName = null;
40435 }
40436
40437
40438 public boolean isSetTableName() {
40439 return this.tableName != null;
40440 }
40441
40442 public void setTableNameIsSet(boolean value) {
40443 if (!value) {
40444 this.tableName = null;
40445 }
40446 }
40447
40448
40449
40450
40451 public byte[] getRow() {
40452 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
40453 return row == null ? null : row.array();
40454 }
40455
40456 public ByteBuffer bufferForRow() {
40457 return row;
40458 }
40459
40460
40461
40462
40463 public deleteAllRowTs_args setRow(byte[] row) {
40464 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
40465 return this;
40466 }
40467
40468 public deleteAllRowTs_args setRow(ByteBuffer row) {
40469 this.row = row;
40470 return this;
40471 }
40472
40473 public void unsetRow() {
40474 this.row = null;
40475 }
40476
40477
40478 public boolean isSetRow() {
40479 return this.row != null;
40480 }
40481
40482 public void setRowIsSet(boolean value) {
40483 if (!value) {
40484 this.row = null;
40485 }
40486 }
40487
40488
40489
40490
40491 public long getTimestamp() {
40492 return this.timestamp;
40493 }
40494
40495
40496
40497
40498 public deleteAllRowTs_args setTimestamp(long timestamp) {
40499 this.timestamp = timestamp;
40500 setTimestampIsSet(true);
40501 return this;
40502 }
40503
40504 public void unsetTimestamp() {
40505 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
40506 }
40507
40508
40509 public boolean isSetTimestamp() {
40510 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
40511 }
40512
40513 public void setTimestampIsSet(boolean value) {
40514 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
40515 }
40516
40517 public int getAttributesSize() {
40518 return (this.attributes == null) ? 0 : this.attributes.size();
40519 }
40520
40521 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
40522 if (this.attributes == null) {
40523 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
40524 }
40525 this.attributes.put(key, val);
40526 }
40527
40528
40529
40530
40531 public Map<ByteBuffer,ByteBuffer> getAttributes() {
40532 return this.attributes;
40533 }
40534
40535
40536
40537
40538 public deleteAllRowTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
40539 this.attributes = attributes;
40540 return this;
40541 }
40542
40543 public void unsetAttributes() {
40544 this.attributes = null;
40545 }
40546
40547
40548 public boolean isSetAttributes() {
40549 return this.attributes != null;
40550 }
40551
40552 public void setAttributesIsSet(boolean value) {
40553 if (!value) {
40554 this.attributes = null;
40555 }
40556 }
40557
40558 public void setFieldValue(_Fields field, Object value) {
40559 switch (field) {
40560 case TABLE_NAME:
40561 if (value == null) {
40562 unsetTableName();
40563 } else {
40564 setTableName((ByteBuffer)value);
40565 }
40566 break;
40567
40568 case ROW:
40569 if (value == null) {
40570 unsetRow();
40571 } else {
40572 setRow((ByteBuffer)value);
40573 }
40574 break;
40575
40576 case TIMESTAMP:
40577 if (value == null) {
40578 unsetTimestamp();
40579 } else {
40580 setTimestamp((Long)value);
40581 }
40582 break;
40583
40584 case ATTRIBUTES:
40585 if (value == null) {
40586 unsetAttributes();
40587 } else {
40588 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
40589 }
40590 break;
40591
40592 }
40593 }
40594
40595 public Object getFieldValue(_Fields field) {
40596 switch (field) {
40597 case TABLE_NAME:
40598 return getTableName();
40599
40600 case ROW:
40601 return getRow();
40602
40603 case TIMESTAMP:
40604 return Long.valueOf(getTimestamp());
40605
40606 case ATTRIBUTES:
40607 return getAttributes();
40608
40609 }
40610 throw new IllegalStateException();
40611 }
40612
40613
40614 public boolean isSet(_Fields field) {
40615 if (field == null) {
40616 throw new IllegalArgumentException();
40617 }
40618
40619 switch (field) {
40620 case TABLE_NAME:
40621 return isSetTableName();
40622 case ROW:
40623 return isSetRow();
40624 case TIMESTAMP:
40625 return isSetTimestamp();
40626 case ATTRIBUTES:
40627 return isSetAttributes();
40628 }
40629 throw new IllegalStateException();
40630 }
40631
40632 @Override
40633 public boolean equals(Object that) {
40634 if (that == null)
40635 return false;
40636 if (that instanceof deleteAllRowTs_args)
40637 return this.equals((deleteAllRowTs_args)that);
40638 return false;
40639 }
40640
40641 public boolean equals(deleteAllRowTs_args that) {
40642 if (that == null)
40643 return false;
40644
40645 boolean this_present_tableName = true && this.isSetTableName();
40646 boolean that_present_tableName = true && that.isSetTableName();
40647 if (this_present_tableName || that_present_tableName) {
40648 if (!(this_present_tableName && that_present_tableName))
40649 return false;
40650 if (!this.tableName.equals(that.tableName))
40651 return false;
40652 }
40653
40654 boolean this_present_row = true && this.isSetRow();
40655 boolean that_present_row = true && that.isSetRow();
40656 if (this_present_row || that_present_row) {
40657 if (!(this_present_row && that_present_row))
40658 return false;
40659 if (!this.row.equals(that.row))
40660 return false;
40661 }
40662
40663 boolean this_present_timestamp = true;
40664 boolean that_present_timestamp = true;
40665 if (this_present_timestamp || that_present_timestamp) {
40666 if (!(this_present_timestamp && that_present_timestamp))
40667 return false;
40668 if (this.timestamp != that.timestamp)
40669 return false;
40670 }
40671
40672 boolean this_present_attributes = true && this.isSetAttributes();
40673 boolean that_present_attributes = true && that.isSetAttributes();
40674 if (this_present_attributes || that_present_attributes) {
40675 if (!(this_present_attributes && that_present_attributes))
40676 return false;
40677 if (!this.attributes.equals(that.attributes))
40678 return false;
40679 }
40680
40681 return true;
40682 }
40683
40684 @Override
40685 public int hashCode() {
40686 HashCodeBuilder builder = new HashCodeBuilder();
40687
40688 boolean present_tableName = true && (isSetTableName());
40689 builder.append(present_tableName);
40690 if (present_tableName)
40691 builder.append(tableName);
40692
40693 boolean present_row = true && (isSetRow());
40694 builder.append(present_row);
40695 if (present_row)
40696 builder.append(row);
40697
40698 boolean present_timestamp = true;
40699 builder.append(present_timestamp);
40700 if (present_timestamp)
40701 builder.append(timestamp);
40702
40703 boolean present_attributes = true && (isSetAttributes());
40704 builder.append(present_attributes);
40705 if (present_attributes)
40706 builder.append(attributes);
40707
40708 return builder.toHashCode();
40709 }
40710
40711 public int compareTo(deleteAllRowTs_args other) {
40712 if (!getClass().equals(other.getClass())) {
40713 return getClass().getName().compareTo(other.getClass().getName());
40714 }
40715
40716 int lastComparison = 0;
40717 deleteAllRowTs_args typedOther = (deleteAllRowTs_args)other;
40718
40719 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
40720 if (lastComparison != 0) {
40721 return lastComparison;
40722 }
40723 if (isSetTableName()) {
40724 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
40725 if (lastComparison != 0) {
40726 return lastComparison;
40727 }
40728 }
40729 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
40730 if (lastComparison != 0) {
40731 return lastComparison;
40732 }
40733 if (isSetRow()) {
40734 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
40735 if (lastComparison != 0) {
40736 return lastComparison;
40737 }
40738 }
40739 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
40740 if (lastComparison != 0) {
40741 return lastComparison;
40742 }
40743 if (isSetTimestamp()) {
40744 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
40745 if (lastComparison != 0) {
40746 return lastComparison;
40747 }
40748 }
40749 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
40750 if (lastComparison != 0) {
40751 return lastComparison;
40752 }
40753 if (isSetAttributes()) {
40754 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
40755 if (lastComparison != 0) {
40756 return lastComparison;
40757 }
40758 }
40759 return 0;
40760 }
40761
40762 public _Fields fieldForId(int fieldId) {
40763 return _Fields.findByThriftId(fieldId);
40764 }
40765
40766 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40767 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
40768 }
40769
40770 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40771 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
40772 }
40773
40774 @Override
40775 public String toString() {
40776 StringBuilder sb = new StringBuilder("deleteAllRowTs_args(");
40777 boolean first = true;
40778
40779 sb.append("tableName:");
40780 if (this.tableName == null) {
40781 sb.append("null");
40782 } else {
40783 sb.append(this.tableName);
40784 }
40785 first = false;
40786 if (!first) sb.append(", ");
40787 sb.append("row:");
40788 if (this.row == null) {
40789 sb.append("null");
40790 } else {
40791 sb.append(this.row);
40792 }
40793 first = false;
40794 if (!first) sb.append(", ");
40795 sb.append("timestamp:");
40796 sb.append(this.timestamp);
40797 first = false;
40798 if (!first) sb.append(", ");
40799 sb.append("attributes:");
40800 if (this.attributes == null) {
40801 sb.append("null");
40802 } else {
40803 sb.append(this.attributes);
40804 }
40805 first = false;
40806 sb.append(")");
40807 return sb.toString();
40808 }
40809
40810 public void validate() throws org.apache.thrift.TException {
40811
40812
40813 }
40814
40815 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40816 try {
40817 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40818 } catch (org.apache.thrift.TException te) {
40819 throw new java.io.IOException(te);
40820 }
40821 }
40822
40823 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40824 try {
40825
40826 __isset_bitfield = 0;
40827 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40828 } catch (org.apache.thrift.TException te) {
40829 throw new java.io.IOException(te);
40830 }
40831 }
40832
40833 private static class deleteAllRowTs_argsStandardSchemeFactory implements SchemeFactory {
40834 public deleteAllRowTs_argsStandardScheme getScheme() {
40835 return new deleteAllRowTs_argsStandardScheme();
40836 }
40837 }
40838
40839 private static class deleteAllRowTs_argsStandardScheme extends StandardScheme<deleteAllRowTs_args> {
40840
40841 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRowTs_args struct) throws org.apache.thrift.TException {
40842 org.apache.thrift.protocol.TField schemeField;
40843 iprot.readStructBegin();
40844 while (true)
40845 {
40846 schemeField = iprot.readFieldBegin();
40847 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
40848 break;
40849 }
40850 switch (schemeField.id) {
40851 case 1:
40852 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40853 struct.tableName = iprot.readBinary();
40854 struct.setTableNameIsSet(true);
40855 } else {
40856 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40857 }
40858 break;
40859 case 2:
40860 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
40861 struct.row = iprot.readBinary();
40862 struct.setRowIsSet(true);
40863 } else {
40864 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40865 }
40866 break;
40867 case 3:
40868 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
40869 struct.timestamp = iprot.readI64();
40870 struct.setTimestampIsSet(true);
40871 } else {
40872 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40873 }
40874 break;
40875 case 4:
40876 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
40877 {
40878 org.apache.thrift.protocol.TMap _map456 = iprot.readMapBegin();
40879 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map456.size);
40880 for (int _i457 = 0; _i457 < _map456.size; ++_i457)
40881 {
40882 ByteBuffer _key458;
40883 ByteBuffer _val459;
40884 _key458 = iprot.readBinary();
40885 _val459 = iprot.readBinary();
40886 struct.attributes.put(_key458, _val459);
40887 }
40888 iprot.readMapEnd();
40889 }
40890 struct.setAttributesIsSet(true);
40891 } else {
40892 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40893 }
40894 break;
40895 default:
40896 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
40897 }
40898 iprot.readFieldEnd();
40899 }
40900 iprot.readStructEnd();
40901
40902
40903 struct.validate();
40904 }
40905
40906 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRowTs_args struct) throws org.apache.thrift.TException {
40907 struct.validate();
40908
40909 oprot.writeStructBegin(STRUCT_DESC);
40910 if (struct.tableName != null) {
40911 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
40912 oprot.writeBinary(struct.tableName);
40913 oprot.writeFieldEnd();
40914 }
40915 if (struct.row != null) {
40916 oprot.writeFieldBegin(ROW_FIELD_DESC);
40917 oprot.writeBinary(struct.row);
40918 oprot.writeFieldEnd();
40919 }
40920 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
40921 oprot.writeI64(struct.timestamp);
40922 oprot.writeFieldEnd();
40923 if (struct.attributes != null) {
40924 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
40925 {
40926 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
40927 for (Map.Entry<ByteBuffer, ByteBuffer> _iter460 : struct.attributes.entrySet())
40928 {
40929 oprot.writeBinary(_iter460.getKey());
40930 oprot.writeBinary(_iter460.getValue());
40931 }
40932 oprot.writeMapEnd();
40933 }
40934 oprot.writeFieldEnd();
40935 }
40936 oprot.writeFieldStop();
40937 oprot.writeStructEnd();
40938 }
40939
40940 }
40941
40942 private static class deleteAllRowTs_argsTupleSchemeFactory implements SchemeFactory {
40943 public deleteAllRowTs_argsTupleScheme getScheme() {
40944 return new deleteAllRowTs_argsTupleScheme();
40945 }
40946 }
40947
40948 private static class deleteAllRowTs_argsTupleScheme extends TupleScheme<deleteAllRowTs_args> {
40949
40950 @Override
40951 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_args struct) throws org.apache.thrift.TException {
40952 TTupleProtocol oprot = (TTupleProtocol) prot;
40953 BitSet optionals = new BitSet();
40954 if (struct.isSetTableName()) {
40955 optionals.set(0);
40956 }
40957 if (struct.isSetRow()) {
40958 optionals.set(1);
40959 }
40960 if (struct.isSetTimestamp()) {
40961 optionals.set(2);
40962 }
40963 if (struct.isSetAttributes()) {
40964 optionals.set(3);
40965 }
40966 oprot.writeBitSet(optionals, 4);
40967 if (struct.isSetTableName()) {
40968 oprot.writeBinary(struct.tableName);
40969 }
40970 if (struct.isSetRow()) {
40971 oprot.writeBinary(struct.row);
40972 }
40973 if (struct.isSetTimestamp()) {
40974 oprot.writeI64(struct.timestamp);
40975 }
40976 if (struct.isSetAttributes()) {
40977 {
40978 oprot.writeI32(struct.attributes.size());
40979 for (Map.Entry<ByteBuffer, ByteBuffer> _iter461 : struct.attributes.entrySet())
40980 {
40981 oprot.writeBinary(_iter461.getKey());
40982 oprot.writeBinary(_iter461.getValue());
40983 }
40984 }
40985 }
40986 }
40987
40988 @Override
40989 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_args struct) throws org.apache.thrift.TException {
40990 TTupleProtocol iprot = (TTupleProtocol) prot;
40991 BitSet incoming = iprot.readBitSet(4);
40992 if (incoming.get(0)) {
40993 struct.tableName = iprot.readBinary();
40994 struct.setTableNameIsSet(true);
40995 }
40996 if (incoming.get(1)) {
40997 struct.row = iprot.readBinary();
40998 struct.setRowIsSet(true);
40999 }
41000 if (incoming.get(2)) {
41001 struct.timestamp = iprot.readI64();
41002 struct.setTimestampIsSet(true);
41003 }
41004 if (incoming.get(3)) {
41005 {
41006 org.apache.thrift.protocol.TMap _map462 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
41007 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map462.size);
41008 for (int _i463 = 0; _i463 < _map462.size; ++_i463)
41009 {
41010 ByteBuffer _key464;
41011 ByteBuffer _val465;
41012 _key464 = iprot.readBinary();
41013 _val465 = iprot.readBinary();
41014 struct.attributes.put(_key464, _val465);
41015 }
41016 }
41017 struct.setAttributesIsSet(true);
41018 }
41019 }
41020 }
41021
41022 }
41023
41024 public static class deleteAllRowTs_result implements org.apache.thrift.TBase<deleteAllRowTs_result, deleteAllRowTs_result._Fields>, java.io.Serializable, Cloneable {
41025 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteAllRowTs_result");
41026
41027 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
41028
41029 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
41030 static {
41031 schemes.put(StandardScheme.class, new deleteAllRowTs_resultStandardSchemeFactory());
41032 schemes.put(TupleScheme.class, new deleteAllRowTs_resultTupleSchemeFactory());
41033 }
41034
41035 public IOError io;
41036
41037
41038 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41039 IO((short)1, "io");
41040
41041 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41042
41043 static {
41044 for (_Fields field : EnumSet.allOf(_Fields.class)) {
41045 byName.put(field.getFieldName(), field);
41046 }
41047 }
41048
41049
41050
41051
41052 public static _Fields findByThriftId(int fieldId) {
41053 switch(fieldId) {
41054 case 1:
41055 return IO;
41056 default:
41057 return null;
41058 }
41059 }
41060
41061
41062
41063
41064
41065 public static _Fields findByThriftIdOrThrow(int fieldId) {
41066 _Fields fields = findByThriftId(fieldId);
41067 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41068 return fields;
41069 }
41070
41071
41072
41073
41074 public static _Fields findByName(String name) {
41075 return byName.get(name);
41076 }
41077
41078 private final short _thriftId;
41079 private final String _fieldName;
41080
41081 _Fields(short thriftId, String fieldName) {
41082 _thriftId = thriftId;
41083 _fieldName = fieldName;
41084 }
41085
41086 public short getThriftFieldId() {
41087 return _thriftId;
41088 }
41089
41090 public String getFieldName() {
41091 return _fieldName;
41092 }
41093 }
41094
41095
41096 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41097 static {
41098 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41099 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
41100 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
41101 metaDataMap = Collections.unmodifiableMap(tmpMap);
41102 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteAllRowTs_result.class, metaDataMap);
41103 }
41104
41105 public deleteAllRowTs_result() {
41106 }
41107
41108 public deleteAllRowTs_result(
41109 IOError io)
41110 {
41111 this();
41112 this.io = io;
41113 }
41114
41115
41116
41117
41118 public deleteAllRowTs_result(deleteAllRowTs_result other) {
41119 if (other.isSetIo()) {
41120 this.io = new IOError(other.io);
41121 }
41122 }
41123
41124 public deleteAllRowTs_result deepCopy() {
41125 return new deleteAllRowTs_result(this);
41126 }
41127
41128 @Override
41129 public void clear() {
41130 this.io = null;
41131 }
41132
41133 public IOError getIo() {
41134 return this.io;
41135 }
41136
41137 public deleteAllRowTs_result setIo(IOError io) {
41138 this.io = io;
41139 return this;
41140 }
41141
41142 public void unsetIo() {
41143 this.io = null;
41144 }
41145
41146
41147 public boolean isSetIo() {
41148 return this.io != null;
41149 }
41150
41151 public void setIoIsSet(boolean value) {
41152 if (!value) {
41153 this.io = null;
41154 }
41155 }
41156
41157 public void setFieldValue(_Fields field, Object value) {
41158 switch (field) {
41159 case IO:
41160 if (value == null) {
41161 unsetIo();
41162 } else {
41163 setIo((IOError)value);
41164 }
41165 break;
41166
41167 }
41168 }
41169
41170 public Object getFieldValue(_Fields field) {
41171 switch (field) {
41172 case IO:
41173 return getIo();
41174
41175 }
41176 throw new IllegalStateException();
41177 }
41178
41179
41180 public boolean isSet(_Fields field) {
41181 if (field == null) {
41182 throw new IllegalArgumentException();
41183 }
41184
41185 switch (field) {
41186 case IO:
41187 return isSetIo();
41188 }
41189 throw new IllegalStateException();
41190 }
41191
41192 @Override
41193 public boolean equals(Object that) {
41194 if (that == null)
41195 return false;
41196 if (that instanceof deleteAllRowTs_result)
41197 return this.equals((deleteAllRowTs_result)that);
41198 return false;
41199 }
41200
41201 public boolean equals(deleteAllRowTs_result that) {
41202 if (that == null)
41203 return false;
41204
41205 boolean this_present_io = true && this.isSetIo();
41206 boolean that_present_io = true && that.isSetIo();
41207 if (this_present_io || that_present_io) {
41208 if (!(this_present_io && that_present_io))
41209 return false;
41210 if (!this.io.equals(that.io))
41211 return false;
41212 }
41213
41214 return true;
41215 }
41216
41217 @Override
41218 public int hashCode() {
41219 HashCodeBuilder builder = new HashCodeBuilder();
41220
41221 boolean present_io = true && (isSetIo());
41222 builder.append(present_io);
41223 if (present_io)
41224 builder.append(io);
41225
41226 return builder.toHashCode();
41227 }
41228
41229 public int compareTo(deleteAllRowTs_result other) {
41230 if (!getClass().equals(other.getClass())) {
41231 return getClass().getName().compareTo(other.getClass().getName());
41232 }
41233
41234 int lastComparison = 0;
41235 deleteAllRowTs_result typedOther = (deleteAllRowTs_result)other;
41236
41237 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
41238 if (lastComparison != 0) {
41239 return lastComparison;
41240 }
41241 if (isSetIo()) {
41242 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
41243 if (lastComparison != 0) {
41244 return lastComparison;
41245 }
41246 }
41247 return 0;
41248 }
41249
41250 public _Fields fieldForId(int fieldId) {
41251 return _Fields.findByThriftId(fieldId);
41252 }
41253
41254 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41255 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
41256 }
41257
41258 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41259 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
41260 }
41261
41262 @Override
41263 public String toString() {
41264 StringBuilder sb = new StringBuilder("deleteAllRowTs_result(");
41265 boolean first = true;
41266
41267 sb.append("io:");
41268 if (this.io == null) {
41269 sb.append("null");
41270 } else {
41271 sb.append(this.io);
41272 }
41273 first = false;
41274 sb.append(")");
41275 return sb.toString();
41276 }
41277
41278 public void validate() throws org.apache.thrift.TException {
41279
41280
41281 }
41282
41283 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41284 try {
41285 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41286 } catch (org.apache.thrift.TException te) {
41287 throw new java.io.IOException(te);
41288 }
41289 }
41290
41291 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41292 try {
41293 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41294 } catch (org.apache.thrift.TException te) {
41295 throw new java.io.IOException(te);
41296 }
41297 }
41298
41299 private static class deleteAllRowTs_resultStandardSchemeFactory implements SchemeFactory {
41300 public deleteAllRowTs_resultStandardScheme getScheme() {
41301 return new deleteAllRowTs_resultStandardScheme();
41302 }
41303 }
41304
41305 private static class deleteAllRowTs_resultStandardScheme extends StandardScheme<deleteAllRowTs_result> {
41306
41307 public void read(org.apache.thrift.protocol.TProtocol iprot, deleteAllRowTs_result struct) throws org.apache.thrift.TException {
41308 org.apache.thrift.protocol.TField schemeField;
41309 iprot.readStructBegin();
41310 while (true)
41311 {
41312 schemeField = iprot.readFieldBegin();
41313 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
41314 break;
41315 }
41316 switch (schemeField.id) {
41317 case 1:
41318 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
41319 struct.io = new IOError();
41320 struct.io.read(iprot);
41321 struct.setIoIsSet(true);
41322 } else {
41323 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41324 }
41325 break;
41326 default:
41327 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41328 }
41329 iprot.readFieldEnd();
41330 }
41331 iprot.readStructEnd();
41332
41333
41334 struct.validate();
41335 }
41336
41337 public void write(org.apache.thrift.protocol.TProtocol oprot, deleteAllRowTs_result struct) throws org.apache.thrift.TException {
41338 struct.validate();
41339
41340 oprot.writeStructBegin(STRUCT_DESC);
41341 if (struct.io != null) {
41342 oprot.writeFieldBegin(IO_FIELD_DESC);
41343 struct.io.write(oprot);
41344 oprot.writeFieldEnd();
41345 }
41346 oprot.writeFieldStop();
41347 oprot.writeStructEnd();
41348 }
41349
41350 }
41351
41352 private static class deleteAllRowTs_resultTupleSchemeFactory implements SchemeFactory {
41353 public deleteAllRowTs_resultTupleScheme getScheme() {
41354 return new deleteAllRowTs_resultTupleScheme();
41355 }
41356 }
41357
41358 private static class deleteAllRowTs_resultTupleScheme extends TupleScheme<deleteAllRowTs_result> {
41359
41360 @Override
41361 public void write(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_result struct) throws org.apache.thrift.TException {
41362 TTupleProtocol oprot = (TTupleProtocol) prot;
41363 BitSet optionals = new BitSet();
41364 if (struct.isSetIo()) {
41365 optionals.set(0);
41366 }
41367 oprot.writeBitSet(optionals, 1);
41368 if (struct.isSetIo()) {
41369 struct.io.write(oprot);
41370 }
41371 }
41372
41373 @Override
41374 public void read(org.apache.thrift.protocol.TProtocol prot, deleteAllRowTs_result struct) throws org.apache.thrift.TException {
41375 TTupleProtocol iprot = (TTupleProtocol) prot;
41376 BitSet incoming = iprot.readBitSet(1);
41377 if (incoming.get(0)) {
41378 struct.io = new IOError();
41379 struct.io.read(iprot);
41380 struct.setIoIsSet(true);
41381 }
41382 }
41383 }
41384
41385 }
41386
41387 public static class scannerOpenWithScan_args implements org.apache.thrift.TBase<scannerOpenWithScan_args, scannerOpenWithScan_args._Fields>, java.io.Serializable, Cloneable {
41388 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithScan_args");
41389
41390 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
41391 private static final org.apache.thrift.protocol.TField SCAN_FIELD_DESC = new org.apache.thrift.protocol.TField("scan", org.apache.thrift.protocol.TType.STRUCT, (short)2);
41392 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)3);
41393
41394 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
41395 static {
41396 schemes.put(StandardScheme.class, new scannerOpenWithScan_argsStandardSchemeFactory());
41397 schemes.put(TupleScheme.class, new scannerOpenWithScan_argsTupleSchemeFactory());
41398 }
41399
41400
41401
41402
41403 public ByteBuffer tableName;
41404
41405
41406
41407 public TScan scan;
41408
41409
41410
41411 public Map<ByteBuffer,ByteBuffer> attributes;
41412
41413
41414 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41415
41416
41417
41418 TABLE_NAME((short)1, "tableName"),
41419
41420
41421
41422 SCAN((short)2, "scan"),
41423
41424
41425
41426 ATTRIBUTES((short)3, "attributes");
41427
41428 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41429
41430 static {
41431 for (_Fields field : EnumSet.allOf(_Fields.class)) {
41432 byName.put(field.getFieldName(), field);
41433 }
41434 }
41435
41436
41437
41438
41439 public static _Fields findByThriftId(int fieldId) {
41440 switch(fieldId) {
41441 case 1:
41442 return TABLE_NAME;
41443 case 2:
41444 return SCAN;
41445 case 3:
41446 return ATTRIBUTES;
41447 default:
41448 return null;
41449 }
41450 }
41451
41452
41453
41454
41455
41456 public static _Fields findByThriftIdOrThrow(int fieldId) {
41457 _Fields fields = findByThriftId(fieldId);
41458 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41459 return fields;
41460 }
41461
41462
41463
41464
41465 public static _Fields findByName(String name) {
41466 return byName.get(name);
41467 }
41468
41469 private final short _thriftId;
41470 private final String _fieldName;
41471
41472 _Fields(short thriftId, String fieldName) {
41473 _thriftId = thriftId;
41474 _fieldName = fieldName;
41475 }
41476
41477 public short getThriftFieldId() {
41478 return _thriftId;
41479 }
41480
41481 public String getFieldName() {
41482 return _fieldName;
41483 }
41484 }
41485
41486
41487 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41488 static {
41489 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41490 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
41491 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
41492 tmpMap.put(_Fields.SCAN, new org.apache.thrift.meta_data.FieldMetaData("scan", org.apache.thrift.TFieldRequirementType.DEFAULT,
41493 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TScan.class)));
41494 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
41495 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
41496 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
41497 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
41498 metaDataMap = Collections.unmodifiableMap(tmpMap);
41499 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithScan_args.class, metaDataMap);
41500 }
41501
41502 public scannerOpenWithScan_args() {
41503 }
41504
41505 public scannerOpenWithScan_args(
41506 ByteBuffer tableName,
41507 TScan scan,
41508 Map<ByteBuffer,ByteBuffer> attributes)
41509 {
41510 this();
41511 this.tableName = tableName;
41512 this.scan = scan;
41513 this.attributes = attributes;
41514 }
41515
41516
41517
41518
41519 public scannerOpenWithScan_args(scannerOpenWithScan_args other) {
41520 if (other.isSetTableName()) {
41521 this.tableName = other.tableName;
41522 }
41523 if (other.isSetScan()) {
41524 this.scan = new TScan(other.scan);
41525 }
41526 if (other.isSetAttributes()) {
41527 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
41528 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
41529
41530 ByteBuffer other_element_key = other_element.getKey();
41531 ByteBuffer other_element_value = other_element.getValue();
41532
41533 ByteBuffer __this__attributes_copy_key = other_element_key;
41534
41535 ByteBuffer __this__attributes_copy_value = other_element_value;
41536
41537 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
41538 }
41539 this.attributes = __this__attributes;
41540 }
41541 }
41542
41543 public scannerOpenWithScan_args deepCopy() {
41544 return new scannerOpenWithScan_args(this);
41545 }
41546
41547 @Override
41548 public void clear() {
41549 this.tableName = null;
41550 this.scan = null;
41551 this.attributes = null;
41552 }
41553
41554
41555
41556
41557 public byte[] getTableName() {
41558 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
41559 return tableName == null ? null : tableName.array();
41560 }
41561
41562 public ByteBuffer bufferForTableName() {
41563 return tableName;
41564 }
41565
41566
41567
41568
41569 public scannerOpenWithScan_args setTableName(byte[] tableName) {
41570 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
41571 return this;
41572 }
41573
41574 public scannerOpenWithScan_args setTableName(ByteBuffer tableName) {
41575 this.tableName = tableName;
41576 return this;
41577 }
41578
41579 public void unsetTableName() {
41580 this.tableName = null;
41581 }
41582
41583
41584 public boolean isSetTableName() {
41585 return this.tableName != null;
41586 }
41587
41588 public void setTableNameIsSet(boolean value) {
41589 if (!value) {
41590 this.tableName = null;
41591 }
41592 }
41593
41594
41595
41596
41597 public TScan getScan() {
41598 return this.scan;
41599 }
41600
41601
41602
41603
41604 public scannerOpenWithScan_args setScan(TScan scan) {
41605 this.scan = scan;
41606 return this;
41607 }
41608
41609 public void unsetScan() {
41610 this.scan = null;
41611 }
41612
41613
41614 public boolean isSetScan() {
41615 return this.scan != null;
41616 }
41617
41618 public void setScanIsSet(boolean value) {
41619 if (!value) {
41620 this.scan = null;
41621 }
41622 }
41623
41624 public int getAttributesSize() {
41625 return (this.attributes == null) ? 0 : this.attributes.size();
41626 }
41627
41628 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
41629 if (this.attributes == null) {
41630 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
41631 }
41632 this.attributes.put(key, val);
41633 }
41634
41635
41636
41637
41638 public Map<ByteBuffer,ByteBuffer> getAttributes() {
41639 return this.attributes;
41640 }
41641
41642
41643
41644
41645 public scannerOpenWithScan_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
41646 this.attributes = attributes;
41647 return this;
41648 }
41649
41650 public void unsetAttributes() {
41651 this.attributes = null;
41652 }
41653
41654
41655 public boolean isSetAttributes() {
41656 return this.attributes != null;
41657 }
41658
41659 public void setAttributesIsSet(boolean value) {
41660 if (!value) {
41661 this.attributes = null;
41662 }
41663 }
41664
41665 public void setFieldValue(_Fields field, Object value) {
41666 switch (field) {
41667 case TABLE_NAME:
41668 if (value == null) {
41669 unsetTableName();
41670 } else {
41671 setTableName((ByteBuffer)value);
41672 }
41673 break;
41674
41675 case SCAN:
41676 if (value == null) {
41677 unsetScan();
41678 } else {
41679 setScan((TScan)value);
41680 }
41681 break;
41682
41683 case ATTRIBUTES:
41684 if (value == null) {
41685 unsetAttributes();
41686 } else {
41687 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
41688 }
41689 break;
41690
41691 }
41692 }
41693
41694 public Object getFieldValue(_Fields field) {
41695 switch (field) {
41696 case TABLE_NAME:
41697 return getTableName();
41698
41699 case SCAN:
41700 return getScan();
41701
41702 case ATTRIBUTES:
41703 return getAttributes();
41704
41705 }
41706 throw new IllegalStateException();
41707 }
41708
41709
41710 public boolean isSet(_Fields field) {
41711 if (field == null) {
41712 throw new IllegalArgumentException();
41713 }
41714
41715 switch (field) {
41716 case TABLE_NAME:
41717 return isSetTableName();
41718 case SCAN:
41719 return isSetScan();
41720 case ATTRIBUTES:
41721 return isSetAttributes();
41722 }
41723 throw new IllegalStateException();
41724 }
41725
41726 @Override
41727 public boolean equals(Object that) {
41728 if (that == null)
41729 return false;
41730 if (that instanceof scannerOpenWithScan_args)
41731 return this.equals((scannerOpenWithScan_args)that);
41732 return false;
41733 }
41734
41735 public boolean equals(scannerOpenWithScan_args that) {
41736 if (that == null)
41737 return false;
41738
41739 boolean this_present_tableName = true && this.isSetTableName();
41740 boolean that_present_tableName = true && that.isSetTableName();
41741 if (this_present_tableName || that_present_tableName) {
41742 if (!(this_present_tableName && that_present_tableName))
41743 return false;
41744 if (!this.tableName.equals(that.tableName))
41745 return false;
41746 }
41747
41748 boolean this_present_scan = true && this.isSetScan();
41749 boolean that_present_scan = true && that.isSetScan();
41750 if (this_present_scan || that_present_scan) {
41751 if (!(this_present_scan && that_present_scan))
41752 return false;
41753 if (!this.scan.equals(that.scan))
41754 return false;
41755 }
41756
41757 boolean this_present_attributes = true && this.isSetAttributes();
41758 boolean that_present_attributes = true && that.isSetAttributes();
41759 if (this_present_attributes || that_present_attributes) {
41760 if (!(this_present_attributes && that_present_attributes))
41761 return false;
41762 if (!this.attributes.equals(that.attributes))
41763 return false;
41764 }
41765
41766 return true;
41767 }
41768
41769 @Override
41770 public int hashCode() {
41771 HashCodeBuilder builder = new HashCodeBuilder();
41772
41773 boolean present_tableName = true && (isSetTableName());
41774 builder.append(present_tableName);
41775 if (present_tableName)
41776 builder.append(tableName);
41777
41778 boolean present_scan = true && (isSetScan());
41779 builder.append(present_scan);
41780 if (present_scan)
41781 builder.append(scan);
41782
41783 boolean present_attributes = true && (isSetAttributes());
41784 builder.append(present_attributes);
41785 if (present_attributes)
41786 builder.append(attributes);
41787
41788 return builder.toHashCode();
41789 }
41790
41791 public int compareTo(scannerOpenWithScan_args other) {
41792 if (!getClass().equals(other.getClass())) {
41793 return getClass().getName().compareTo(other.getClass().getName());
41794 }
41795
41796 int lastComparison = 0;
41797 scannerOpenWithScan_args typedOther = (scannerOpenWithScan_args)other;
41798
41799 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
41800 if (lastComparison != 0) {
41801 return lastComparison;
41802 }
41803 if (isSetTableName()) {
41804 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
41805 if (lastComparison != 0) {
41806 return lastComparison;
41807 }
41808 }
41809 lastComparison = Boolean.valueOf(isSetScan()).compareTo(typedOther.isSetScan());
41810 if (lastComparison != 0) {
41811 return lastComparison;
41812 }
41813 if (isSetScan()) {
41814 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scan, typedOther.scan);
41815 if (lastComparison != 0) {
41816 return lastComparison;
41817 }
41818 }
41819 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
41820 if (lastComparison != 0) {
41821 return lastComparison;
41822 }
41823 if (isSetAttributes()) {
41824 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
41825 if (lastComparison != 0) {
41826 return lastComparison;
41827 }
41828 }
41829 return 0;
41830 }
41831
41832 public _Fields fieldForId(int fieldId) {
41833 return _Fields.findByThriftId(fieldId);
41834 }
41835
41836 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41837 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
41838 }
41839
41840 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41841 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
41842 }
41843
41844 @Override
41845 public String toString() {
41846 StringBuilder sb = new StringBuilder("scannerOpenWithScan_args(");
41847 boolean first = true;
41848
41849 sb.append("tableName:");
41850 if (this.tableName == null) {
41851 sb.append("null");
41852 } else {
41853 sb.append(this.tableName);
41854 }
41855 first = false;
41856 if (!first) sb.append(", ");
41857 sb.append("scan:");
41858 if (this.scan == null) {
41859 sb.append("null");
41860 } else {
41861 sb.append(this.scan);
41862 }
41863 first = false;
41864 if (!first) sb.append(", ");
41865 sb.append("attributes:");
41866 if (this.attributes == null) {
41867 sb.append("null");
41868 } else {
41869 sb.append(this.attributes);
41870 }
41871 first = false;
41872 sb.append(")");
41873 return sb.toString();
41874 }
41875
41876 public void validate() throws org.apache.thrift.TException {
41877
41878
41879 if (scan != null) {
41880 scan.validate();
41881 }
41882 }
41883
41884 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41885 try {
41886 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41887 } catch (org.apache.thrift.TException te) {
41888 throw new java.io.IOException(te);
41889 }
41890 }
41891
41892 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41893 try {
41894 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41895 } catch (org.apache.thrift.TException te) {
41896 throw new java.io.IOException(te);
41897 }
41898 }
41899
41900 private static class scannerOpenWithScan_argsStandardSchemeFactory implements SchemeFactory {
41901 public scannerOpenWithScan_argsStandardScheme getScheme() {
41902 return new scannerOpenWithScan_argsStandardScheme();
41903 }
41904 }
41905
41906 private static class scannerOpenWithScan_argsStandardScheme extends StandardScheme<scannerOpenWithScan_args> {
41907
41908 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException {
41909 org.apache.thrift.protocol.TField schemeField;
41910 iprot.readStructBegin();
41911 while (true)
41912 {
41913 schemeField = iprot.readFieldBegin();
41914 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
41915 break;
41916 }
41917 switch (schemeField.id) {
41918 case 1:
41919 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
41920 struct.tableName = iprot.readBinary();
41921 struct.setTableNameIsSet(true);
41922 } else {
41923 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41924 }
41925 break;
41926 case 2:
41927 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
41928 struct.scan = new TScan();
41929 struct.scan.read(iprot);
41930 struct.setScanIsSet(true);
41931 } else {
41932 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41933 }
41934 break;
41935 case 3:
41936 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
41937 {
41938 org.apache.thrift.protocol.TMap _map466 = iprot.readMapBegin();
41939 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map466.size);
41940 for (int _i467 = 0; _i467 < _map466.size; ++_i467)
41941 {
41942 ByteBuffer _key468;
41943 ByteBuffer _val469;
41944 _key468 = iprot.readBinary();
41945 _val469 = iprot.readBinary();
41946 struct.attributes.put(_key468, _val469);
41947 }
41948 iprot.readMapEnd();
41949 }
41950 struct.setAttributesIsSet(true);
41951 } else {
41952 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41953 }
41954 break;
41955 default:
41956 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
41957 }
41958 iprot.readFieldEnd();
41959 }
41960 iprot.readStructEnd();
41961
41962
41963 struct.validate();
41964 }
41965
41966 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException {
41967 struct.validate();
41968
41969 oprot.writeStructBegin(STRUCT_DESC);
41970 if (struct.tableName != null) {
41971 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
41972 oprot.writeBinary(struct.tableName);
41973 oprot.writeFieldEnd();
41974 }
41975 if (struct.scan != null) {
41976 oprot.writeFieldBegin(SCAN_FIELD_DESC);
41977 struct.scan.write(oprot);
41978 oprot.writeFieldEnd();
41979 }
41980 if (struct.attributes != null) {
41981 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
41982 {
41983 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
41984 for (Map.Entry<ByteBuffer, ByteBuffer> _iter470 : struct.attributes.entrySet())
41985 {
41986 oprot.writeBinary(_iter470.getKey());
41987 oprot.writeBinary(_iter470.getValue());
41988 }
41989 oprot.writeMapEnd();
41990 }
41991 oprot.writeFieldEnd();
41992 }
41993 oprot.writeFieldStop();
41994 oprot.writeStructEnd();
41995 }
41996
41997 }
41998
41999 private static class scannerOpenWithScan_argsTupleSchemeFactory implements SchemeFactory {
42000 public scannerOpenWithScan_argsTupleScheme getScheme() {
42001 return new scannerOpenWithScan_argsTupleScheme();
42002 }
42003 }
42004
42005 private static class scannerOpenWithScan_argsTupleScheme extends TupleScheme<scannerOpenWithScan_args> {
42006
42007 @Override
42008 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException {
42009 TTupleProtocol oprot = (TTupleProtocol) prot;
42010 BitSet optionals = new BitSet();
42011 if (struct.isSetTableName()) {
42012 optionals.set(0);
42013 }
42014 if (struct.isSetScan()) {
42015 optionals.set(1);
42016 }
42017 if (struct.isSetAttributes()) {
42018 optionals.set(2);
42019 }
42020 oprot.writeBitSet(optionals, 3);
42021 if (struct.isSetTableName()) {
42022 oprot.writeBinary(struct.tableName);
42023 }
42024 if (struct.isSetScan()) {
42025 struct.scan.write(oprot);
42026 }
42027 if (struct.isSetAttributes()) {
42028 {
42029 oprot.writeI32(struct.attributes.size());
42030 for (Map.Entry<ByteBuffer, ByteBuffer> _iter471 : struct.attributes.entrySet())
42031 {
42032 oprot.writeBinary(_iter471.getKey());
42033 oprot.writeBinary(_iter471.getValue());
42034 }
42035 }
42036 }
42037 }
42038
42039 @Override
42040 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_args struct) throws org.apache.thrift.TException {
42041 TTupleProtocol iprot = (TTupleProtocol) prot;
42042 BitSet incoming = iprot.readBitSet(3);
42043 if (incoming.get(0)) {
42044 struct.tableName = iprot.readBinary();
42045 struct.setTableNameIsSet(true);
42046 }
42047 if (incoming.get(1)) {
42048 struct.scan = new TScan();
42049 struct.scan.read(iprot);
42050 struct.setScanIsSet(true);
42051 }
42052 if (incoming.get(2)) {
42053 {
42054 org.apache.thrift.protocol.TMap _map472 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
42055 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map472.size);
42056 for (int _i473 = 0; _i473 < _map472.size; ++_i473)
42057 {
42058 ByteBuffer _key474;
42059 ByteBuffer _val475;
42060 _key474 = iprot.readBinary();
42061 _val475 = iprot.readBinary();
42062 struct.attributes.put(_key474, _val475);
42063 }
42064 }
42065 struct.setAttributesIsSet(true);
42066 }
42067 }
42068 }
42069
42070 }
42071
42072 public static class scannerOpenWithScan_result implements org.apache.thrift.TBase<scannerOpenWithScan_result, scannerOpenWithScan_result._Fields>, java.io.Serializable, Cloneable {
42073 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithScan_result");
42074
42075 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
42076 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
42077
42078 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
42079 static {
42080 schemes.put(StandardScheme.class, new scannerOpenWithScan_resultStandardSchemeFactory());
42081 schemes.put(TupleScheme.class, new scannerOpenWithScan_resultTupleSchemeFactory());
42082 }
42083
42084 public int success;
42085 public IOError io;
42086
42087
42088 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42089 SUCCESS((short)0, "success"),
42090 IO((short)1, "io");
42091
42092 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42093
42094 static {
42095 for (_Fields field : EnumSet.allOf(_Fields.class)) {
42096 byName.put(field.getFieldName(), field);
42097 }
42098 }
42099
42100
42101
42102
42103 public static _Fields findByThriftId(int fieldId) {
42104 switch(fieldId) {
42105 case 0:
42106 return SUCCESS;
42107 case 1:
42108 return IO;
42109 default:
42110 return null;
42111 }
42112 }
42113
42114
42115
42116
42117
42118 public static _Fields findByThriftIdOrThrow(int fieldId) {
42119 _Fields fields = findByThriftId(fieldId);
42120 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42121 return fields;
42122 }
42123
42124
42125
42126
42127 public static _Fields findByName(String name) {
42128 return byName.get(name);
42129 }
42130
42131 private final short _thriftId;
42132 private final String _fieldName;
42133
42134 _Fields(short thriftId, String fieldName) {
42135 _thriftId = thriftId;
42136 _fieldName = fieldName;
42137 }
42138
42139 public short getThriftFieldId() {
42140 return _thriftId;
42141 }
42142
42143 public String getFieldName() {
42144 return _fieldName;
42145 }
42146 }
42147
42148
42149 private static final int __SUCCESS_ISSET_ID = 0;
42150 private byte __isset_bitfield = 0;
42151 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42152 static {
42153 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42154 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
42155 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID")));
42156 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
42157 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
42158 metaDataMap = Collections.unmodifiableMap(tmpMap);
42159 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithScan_result.class, metaDataMap);
42160 }
42161
42162 public scannerOpenWithScan_result() {
42163 }
42164
42165 public scannerOpenWithScan_result(
42166 int success,
42167 IOError io)
42168 {
42169 this();
42170 this.success = success;
42171 setSuccessIsSet(true);
42172 this.io = io;
42173 }
42174
42175
42176
42177
42178 public scannerOpenWithScan_result(scannerOpenWithScan_result other) {
42179 __isset_bitfield = other.__isset_bitfield;
42180 this.success = other.success;
42181 if (other.isSetIo()) {
42182 this.io = new IOError(other.io);
42183 }
42184 }
42185
42186 public scannerOpenWithScan_result deepCopy() {
42187 return new scannerOpenWithScan_result(this);
42188 }
42189
42190 @Override
42191 public void clear() {
42192 setSuccessIsSet(false);
42193 this.success = 0;
42194 this.io = null;
42195 }
42196
42197 public int getSuccess() {
42198 return this.success;
42199 }
42200
42201 public scannerOpenWithScan_result setSuccess(int success) {
42202 this.success = success;
42203 setSuccessIsSet(true);
42204 return this;
42205 }
42206
42207 public void unsetSuccess() {
42208 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
42209 }
42210
42211
42212 public boolean isSetSuccess() {
42213 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
42214 }
42215
42216 public void setSuccessIsSet(boolean value) {
42217 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
42218 }
42219
42220 public IOError getIo() {
42221 return this.io;
42222 }
42223
42224 public scannerOpenWithScan_result setIo(IOError io) {
42225 this.io = io;
42226 return this;
42227 }
42228
42229 public void unsetIo() {
42230 this.io = null;
42231 }
42232
42233
42234 public boolean isSetIo() {
42235 return this.io != null;
42236 }
42237
42238 public void setIoIsSet(boolean value) {
42239 if (!value) {
42240 this.io = null;
42241 }
42242 }
42243
42244 public void setFieldValue(_Fields field, Object value) {
42245 switch (field) {
42246 case SUCCESS:
42247 if (value == null) {
42248 unsetSuccess();
42249 } else {
42250 setSuccess((Integer)value);
42251 }
42252 break;
42253
42254 case IO:
42255 if (value == null) {
42256 unsetIo();
42257 } else {
42258 setIo((IOError)value);
42259 }
42260 break;
42261
42262 }
42263 }
42264
42265 public Object getFieldValue(_Fields field) {
42266 switch (field) {
42267 case SUCCESS:
42268 return Integer.valueOf(getSuccess());
42269
42270 case IO:
42271 return getIo();
42272
42273 }
42274 throw new IllegalStateException();
42275 }
42276
42277
42278 public boolean isSet(_Fields field) {
42279 if (field == null) {
42280 throw new IllegalArgumentException();
42281 }
42282
42283 switch (field) {
42284 case SUCCESS:
42285 return isSetSuccess();
42286 case IO:
42287 return isSetIo();
42288 }
42289 throw new IllegalStateException();
42290 }
42291
42292 @Override
42293 public boolean equals(Object that) {
42294 if (that == null)
42295 return false;
42296 if (that instanceof scannerOpenWithScan_result)
42297 return this.equals((scannerOpenWithScan_result)that);
42298 return false;
42299 }
42300
42301 public boolean equals(scannerOpenWithScan_result that) {
42302 if (that == null)
42303 return false;
42304
42305 boolean this_present_success = true;
42306 boolean that_present_success = true;
42307 if (this_present_success || that_present_success) {
42308 if (!(this_present_success && that_present_success))
42309 return false;
42310 if (this.success != that.success)
42311 return false;
42312 }
42313
42314 boolean this_present_io = true && this.isSetIo();
42315 boolean that_present_io = true && that.isSetIo();
42316 if (this_present_io || that_present_io) {
42317 if (!(this_present_io && that_present_io))
42318 return false;
42319 if (!this.io.equals(that.io))
42320 return false;
42321 }
42322
42323 return true;
42324 }
42325
42326 @Override
42327 public int hashCode() {
42328 HashCodeBuilder builder = new HashCodeBuilder();
42329
42330 boolean present_success = true;
42331 builder.append(present_success);
42332 if (present_success)
42333 builder.append(success);
42334
42335 boolean present_io = true && (isSetIo());
42336 builder.append(present_io);
42337 if (present_io)
42338 builder.append(io);
42339
42340 return builder.toHashCode();
42341 }
42342
42343 public int compareTo(scannerOpenWithScan_result other) {
42344 if (!getClass().equals(other.getClass())) {
42345 return getClass().getName().compareTo(other.getClass().getName());
42346 }
42347
42348 int lastComparison = 0;
42349 scannerOpenWithScan_result typedOther = (scannerOpenWithScan_result)other;
42350
42351 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
42352 if (lastComparison != 0) {
42353 return lastComparison;
42354 }
42355 if (isSetSuccess()) {
42356 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42357 if (lastComparison != 0) {
42358 return lastComparison;
42359 }
42360 }
42361 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
42362 if (lastComparison != 0) {
42363 return lastComparison;
42364 }
42365 if (isSetIo()) {
42366 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
42367 if (lastComparison != 0) {
42368 return lastComparison;
42369 }
42370 }
42371 return 0;
42372 }
42373
42374 public _Fields fieldForId(int fieldId) {
42375 return _Fields.findByThriftId(fieldId);
42376 }
42377
42378 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42379 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
42380 }
42381
42382 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42383 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
42384 }
42385
42386 @Override
42387 public String toString() {
42388 StringBuilder sb = new StringBuilder("scannerOpenWithScan_result(");
42389 boolean first = true;
42390
42391 sb.append("success:");
42392 sb.append(this.success);
42393 first = false;
42394 if (!first) sb.append(", ");
42395 sb.append("io:");
42396 if (this.io == null) {
42397 sb.append("null");
42398 } else {
42399 sb.append(this.io);
42400 }
42401 first = false;
42402 sb.append(")");
42403 return sb.toString();
42404 }
42405
42406 public void validate() throws org.apache.thrift.TException {
42407
42408
42409 }
42410
42411 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42412 try {
42413 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42414 } catch (org.apache.thrift.TException te) {
42415 throw new java.io.IOException(te);
42416 }
42417 }
42418
42419 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42420 try {
42421
42422 __isset_bitfield = 0;
42423 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42424 } catch (org.apache.thrift.TException te) {
42425 throw new java.io.IOException(te);
42426 }
42427 }
42428
42429 private static class scannerOpenWithScan_resultStandardSchemeFactory implements SchemeFactory {
42430 public scannerOpenWithScan_resultStandardScheme getScheme() {
42431 return new scannerOpenWithScan_resultStandardScheme();
42432 }
42433 }
42434
42435 private static class scannerOpenWithScan_resultStandardScheme extends StandardScheme<scannerOpenWithScan_result> {
42436
42437 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException {
42438 org.apache.thrift.protocol.TField schemeField;
42439 iprot.readStructBegin();
42440 while (true)
42441 {
42442 schemeField = iprot.readFieldBegin();
42443 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
42444 break;
42445 }
42446 switch (schemeField.id) {
42447 case 0:
42448 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
42449 struct.success = iprot.readI32();
42450 struct.setSuccessIsSet(true);
42451 } else {
42452 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42453 }
42454 break;
42455 case 1:
42456 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
42457 struct.io = new IOError();
42458 struct.io.read(iprot);
42459 struct.setIoIsSet(true);
42460 } else {
42461 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42462 }
42463 break;
42464 default:
42465 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
42466 }
42467 iprot.readFieldEnd();
42468 }
42469 iprot.readStructEnd();
42470
42471
42472 struct.validate();
42473 }
42474
42475 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException {
42476 struct.validate();
42477
42478 oprot.writeStructBegin(STRUCT_DESC);
42479 if (struct.isSetSuccess()) {
42480 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42481 oprot.writeI32(struct.success);
42482 oprot.writeFieldEnd();
42483 }
42484 if (struct.io != null) {
42485 oprot.writeFieldBegin(IO_FIELD_DESC);
42486 struct.io.write(oprot);
42487 oprot.writeFieldEnd();
42488 }
42489 oprot.writeFieldStop();
42490 oprot.writeStructEnd();
42491 }
42492
42493 }
42494
42495 private static class scannerOpenWithScan_resultTupleSchemeFactory implements SchemeFactory {
42496 public scannerOpenWithScan_resultTupleScheme getScheme() {
42497 return new scannerOpenWithScan_resultTupleScheme();
42498 }
42499 }
42500
42501 private static class scannerOpenWithScan_resultTupleScheme extends TupleScheme<scannerOpenWithScan_result> {
42502
42503 @Override
42504 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException {
42505 TTupleProtocol oprot = (TTupleProtocol) prot;
42506 BitSet optionals = new BitSet();
42507 if (struct.isSetSuccess()) {
42508 optionals.set(0);
42509 }
42510 if (struct.isSetIo()) {
42511 optionals.set(1);
42512 }
42513 oprot.writeBitSet(optionals, 2);
42514 if (struct.isSetSuccess()) {
42515 oprot.writeI32(struct.success);
42516 }
42517 if (struct.isSetIo()) {
42518 struct.io.write(oprot);
42519 }
42520 }
42521
42522 @Override
42523 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithScan_result struct) throws org.apache.thrift.TException {
42524 TTupleProtocol iprot = (TTupleProtocol) prot;
42525 BitSet incoming = iprot.readBitSet(2);
42526 if (incoming.get(0)) {
42527 struct.success = iprot.readI32();
42528 struct.setSuccessIsSet(true);
42529 }
42530 if (incoming.get(1)) {
42531 struct.io = new IOError();
42532 struct.io.read(iprot);
42533 struct.setIoIsSet(true);
42534 }
42535 }
42536 }
42537
42538 }
42539
42540 public static class scannerOpen_args implements org.apache.thrift.TBase<scannerOpen_args, scannerOpen_args._Fields>, java.io.Serializable, Cloneable {
42541 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpen_args");
42542
42543 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
42544 private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2);
42545 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
42546 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
42547
42548 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
42549 static {
42550 schemes.put(StandardScheme.class, new scannerOpen_argsStandardSchemeFactory());
42551 schemes.put(TupleScheme.class, new scannerOpen_argsTupleSchemeFactory());
42552 }
42553
42554
42555
42556
42557 public ByteBuffer tableName;
42558
42559
42560
42561
42562 public ByteBuffer startRow;
42563
42564
42565
42566
42567
42568 public List<ByteBuffer> columns;
42569
42570
42571
42572 public Map<ByteBuffer,ByteBuffer> attributes;
42573
42574
42575 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42576
42577
42578
42579 TABLE_NAME((short)1, "tableName"),
42580
42581
42582
42583
42584 START_ROW((short)2, "startRow"),
42585
42586
42587
42588
42589
42590 COLUMNS((short)3, "columns"),
42591
42592
42593
42594 ATTRIBUTES((short)4, "attributes");
42595
42596 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42597
42598 static {
42599 for (_Fields field : EnumSet.allOf(_Fields.class)) {
42600 byName.put(field.getFieldName(), field);
42601 }
42602 }
42603
42604
42605
42606
42607 public static _Fields findByThriftId(int fieldId) {
42608 switch(fieldId) {
42609 case 1:
42610 return TABLE_NAME;
42611 case 2:
42612 return START_ROW;
42613 case 3:
42614 return COLUMNS;
42615 case 4:
42616 return ATTRIBUTES;
42617 default:
42618 return null;
42619 }
42620 }
42621
42622
42623
42624
42625
42626 public static _Fields findByThriftIdOrThrow(int fieldId) {
42627 _Fields fields = findByThriftId(fieldId);
42628 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42629 return fields;
42630 }
42631
42632
42633
42634
42635 public static _Fields findByName(String name) {
42636 return byName.get(name);
42637 }
42638
42639 private final short _thriftId;
42640 private final String _fieldName;
42641
42642 _Fields(short thriftId, String fieldName) {
42643 _thriftId = thriftId;
42644 _fieldName = fieldName;
42645 }
42646
42647 public short getThriftFieldId() {
42648 return _thriftId;
42649 }
42650
42651 public String getFieldName() {
42652 return _fieldName;
42653 }
42654 }
42655
42656
42657 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42658 static {
42659 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42660 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
42661 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
42662 tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT,
42663 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
42664 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT,
42665 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
42666 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
42667 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
42668 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
42669 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
42670 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
42671 metaDataMap = Collections.unmodifiableMap(tmpMap);
42672 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpen_args.class, metaDataMap);
42673 }
42674
42675 public scannerOpen_args() {
42676 }
42677
42678 public scannerOpen_args(
42679 ByteBuffer tableName,
42680 ByteBuffer startRow,
42681 List<ByteBuffer> columns,
42682 Map<ByteBuffer,ByteBuffer> attributes)
42683 {
42684 this();
42685 this.tableName = tableName;
42686 this.startRow = startRow;
42687 this.columns = columns;
42688 this.attributes = attributes;
42689 }
42690
42691
42692
42693
42694 public scannerOpen_args(scannerOpen_args other) {
42695 if (other.isSetTableName()) {
42696 this.tableName = other.tableName;
42697 }
42698 if (other.isSetStartRow()) {
42699 this.startRow = other.startRow;
42700 }
42701 if (other.isSetColumns()) {
42702 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
42703 for (ByteBuffer other_element : other.columns) {
42704 __this__columns.add(other_element);
42705 }
42706 this.columns = __this__columns;
42707 }
42708 if (other.isSetAttributes()) {
42709 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
42710 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
42711
42712 ByteBuffer other_element_key = other_element.getKey();
42713 ByteBuffer other_element_value = other_element.getValue();
42714
42715 ByteBuffer __this__attributes_copy_key = other_element_key;
42716
42717 ByteBuffer __this__attributes_copy_value = other_element_value;
42718
42719 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
42720 }
42721 this.attributes = __this__attributes;
42722 }
42723 }
42724
42725 public scannerOpen_args deepCopy() {
42726 return new scannerOpen_args(this);
42727 }
42728
42729 @Override
42730 public void clear() {
42731 this.tableName = null;
42732 this.startRow = null;
42733 this.columns = null;
42734 this.attributes = null;
42735 }
42736
42737
42738
42739
42740 public byte[] getTableName() {
42741 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
42742 return tableName == null ? null : tableName.array();
42743 }
42744
42745 public ByteBuffer bufferForTableName() {
42746 return tableName;
42747 }
42748
42749
42750
42751
42752 public scannerOpen_args setTableName(byte[] tableName) {
42753 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
42754 return this;
42755 }
42756
42757 public scannerOpen_args setTableName(ByteBuffer tableName) {
42758 this.tableName = tableName;
42759 return this;
42760 }
42761
42762 public void unsetTableName() {
42763 this.tableName = null;
42764 }
42765
42766
42767 public boolean isSetTableName() {
42768 return this.tableName != null;
42769 }
42770
42771 public void setTableNameIsSet(boolean value) {
42772 if (!value) {
42773 this.tableName = null;
42774 }
42775 }
42776
42777
42778
42779
42780
42781 public byte[] getStartRow() {
42782 setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow));
42783 return startRow == null ? null : startRow.array();
42784 }
42785
42786 public ByteBuffer bufferForStartRow() {
42787 return startRow;
42788 }
42789
42790
42791
42792
42793
42794 public scannerOpen_args setStartRow(byte[] startRow) {
42795 setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow));
42796 return this;
42797 }
42798
42799 public scannerOpen_args setStartRow(ByteBuffer startRow) {
42800 this.startRow = startRow;
42801 return this;
42802 }
42803
42804 public void unsetStartRow() {
42805 this.startRow = null;
42806 }
42807
42808
42809 public boolean isSetStartRow() {
42810 return this.startRow != null;
42811 }
42812
42813 public void setStartRowIsSet(boolean value) {
42814 if (!value) {
42815 this.startRow = null;
42816 }
42817 }
42818
42819 public int getColumnsSize() {
42820 return (this.columns == null) ? 0 : this.columns.size();
42821 }
42822
42823 public java.util.Iterator<ByteBuffer> getColumnsIterator() {
42824 return (this.columns == null) ? null : this.columns.iterator();
42825 }
42826
42827 public void addToColumns(ByteBuffer elem) {
42828 if (this.columns == null) {
42829 this.columns = new ArrayList<ByteBuffer>();
42830 }
42831 this.columns.add(elem);
42832 }
42833
42834
42835
42836
42837
42838
42839 public List<ByteBuffer> getColumns() {
42840 return this.columns;
42841 }
42842
42843
42844
42845
42846
42847
42848 public scannerOpen_args setColumns(List<ByteBuffer> columns) {
42849 this.columns = columns;
42850 return this;
42851 }
42852
42853 public void unsetColumns() {
42854 this.columns = null;
42855 }
42856
42857
42858 public boolean isSetColumns() {
42859 return this.columns != null;
42860 }
42861
42862 public void setColumnsIsSet(boolean value) {
42863 if (!value) {
42864 this.columns = null;
42865 }
42866 }
42867
42868 public int getAttributesSize() {
42869 return (this.attributes == null) ? 0 : this.attributes.size();
42870 }
42871
42872 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
42873 if (this.attributes == null) {
42874 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
42875 }
42876 this.attributes.put(key, val);
42877 }
42878
42879
42880
42881
42882 public Map<ByteBuffer,ByteBuffer> getAttributes() {
42883 return this.attributes;
42884 }
42885
42886
42887
42888
42889 public scannerOpen_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
42890 this.attributes = attributes;
42891 return this;
42892 }
42893
42894 public void unsetAttributes() {
42895 this.attributes = null;
42896 }
42897
42898
42899 public boolean isSetAttributes() {
42900 return this.attributes != null;
42901 }
42902
42903 public void setAttributesIsSet(boolean value) {
42904 if (!value) {
42905 this.attributes = null;
42906 }
42907 }
42908
42909 public void setFieldValue(_Fields field, Object value) {
42910 switch (field) {
42911 case TABLE_NAME:
42912 if (value == null) {
42913 unsetTableName();
42914 } else {
42915 setTableName((ByteBuffer)value);
42916 }
42917 break;
42918
42919 case START_ROW:
42920 if (value == null) {
42921 unsetStartRow();
42922 } else {
42923 setStartRow((ByteBuffer)value);
42924 }
42925 break;
42926
42927 case COLUMNS:
42928 if (value == null) {
42929 unsetColumns();
42930 } else {
42931 setColumns((List<ByteBuffer>)value);
42932 }
42933 break;
42934
42935 case ATTRIBUTES:
42936 if (value == null) {
42937 unsetAttributes();
42938 } else {
42939 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
42940 }
42941 break;
42942
42943 }
42944 }
42945
42946 public Object getFieldValue(_Fields field) {
42947 switch (field) {
42948 case TABLE_NAME:
42949 return getTableName();
42950
42951 case START_ROW:
42952 return getStartRow();
42953
42954 case COLUMNS:
42955 return getColumns();
42956
42957 case ATTRIBUTES:
42958 return getAttributes();
42959
42960 }
42961 throw new IllegalStateException();
42962 }
42963
42964
42965 public boolean isSet(_Fields field) {
42966 if (field == null) {
42967 throw new IllegalArgumentException();
42968 }
42969
42970 switch (field) {
42971 case TABLE_NAME:
42972 return isSetTableName();
42973 case START_ROW:
42974 return isSetStartRow();
42975 case COLUMNS:
42976 return isSetColumns();
42977 case ATTRIBUTES:
42978 return isSetAttributes();
42979 }
42980 throw new IllegalStateException();
42981 }
42982
42983 @Override
42984 public boolean equals(Object that) {
42985 if (that == null)
42986 return false;
42987 if (that instanceof scannerOpen_args)
42988 return this.equals((scannerOpen_args)that);
42989 return false;
42990 }
42991
42992 public boolean equals(scannerOpen_args that) {
42993 if (that == null)
42994 return false;
42995
42996 boolean this_present_tableName = true && this.isSetTableName();
42997 boolean that_present_tableName = true && that.isSetTableName();
42998 if (this_present_tableName || that_present_tableName) {
42999 if (!(this_present_tableName && that_present_tableName))
43000 return false;
43001 if (!this.tableName.equals(that.tableName))
43002 return false;
43003 }
43004
43005 boolean this_present_startRow = true && this.isSetStartRow();
43006 boolean that_present_startRow = true && that.isSetStartRow();
43007 if (this_present_startRow || that_present_startRow) {
43008 if (!(this_present_startRow && that_present_startRow))
43009 return false;
43010 if (!this.startRow.equals(that.startRow))
43011 return false;
43012 }
43013
43014 boolean this_present_columns = true && this.isSetColumns();
43015 boolean that_present_columns = true && that.isSetColumns();
43016 if (this_present_columns || that_present_columns) {
43017 if (!(this_present_columns && that_present_columns))
43018 return false;
43019 if (!this.columns.equals(that.columns))
43020 return false;
43021 }
43022
43023 boolean this_present_attributes = true && this.isSetAttributes();
43024 boolean that_present_attributes = true && that.isSetAttributes();
43025 if (this_present_attributes || that_present_attributes) {
43026 if (!(this_present_attributes && that_present_attributes))
43027 return false;
43028 if (!this.attributes.equals(that.attributes))
43029 return false;
43030 }
43031
43032 return true;
43033 }
43034
43035 @Override
43036 public int hashCode() {
43037 HashCodeBuilder builder = new HashCodeBuilder();
43038
43039 boolean present_tableName = true && (isSetTableName());
43040 builder.append(present_tableName);
43041 if (present_tableName)
43042 builder.append(tableName);
43043
43044 boolean present_startRow = true && (isSetStartRow());
43045 builder.append(present_startRow);
43046 if (present_startRow)
43047 builder.append(startRow);
43048
43049 boolean present_columns = true && (isSetColumns());
43050 builder.append(present_columns);
43051 if (present_columns)
43052 builder.append(columns);
43053
43054 boolean present_attributes = true && (isSetAttributes());
43055 builder.append(present_attributes);
43056 if (present_attributes)
43057 builder.append(attributes);
43058
43059 return builder.toHashCode();
43060 }
43061
43062 public int compareTo(scannerOpen_args other) {
43063 if (!getClass().equals(other.getClass())) {
43064 return getClass().getName().compareTo(other.getClass().getName());
43065 }
43066
43067 int lastComparison = 0;
43068 scannerOpen_args typedOther = (scannerOpen_args)other;
43069
43070 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
43071 if (lastComparison != 0) {
43072 return lastComparison;
43073 }
43074 if (isSetTableName()) {
43075 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
43076 if (lastComparison != 0) {
43077 return lastComparison;
43078 }
43079 }
43080 lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow());
43081 if (lastComparison != 0) {
43082 return lastComparison;
43083 }
43084 if (isSetStartRow()) {
43085 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow);
43086 if (lastComparison != 0) {
43087 return lastComparison;
43088 }
43089 }
43090 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
43091 if (lastComparison != 0) {
43092 return lastComparison;
43093 }
43094 if (isSetColumns()) {
43095 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
43096 if (lastComparison != 0) {
43097 return lastComparison;
43098 }
43099 }
43100 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
43101 if (lastComparison != 0) {
43102 return lastComparison;
43103 }
43104 if (isSetAttributes()) {
43105 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
43106 if (lastComparison != 0) {
43107 return lastComparison;
43108 }
43109 }
43110 return 0;
43111 }
43112
43113 public _Fields fieldForId(int fieldId) {
43114 return _Fields.findByThriftId(fieldId);
43115 }
43116
43117 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43118 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
43119 }
43120
43121 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43122 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
43123 }
43124
43125 @Override
43126 public String toString() {
43127 StringBuilder sb = new StringBuilder("scannerOpen_args(");
43128 boolean first = true;
43129
43130 sb.append("tableName:");
43131 if (this.tableName == null) {
43132 sb.append("null");
43133 } else {
43134 sb.append(this.tableName);
43135 }
43136 first = false;
43137 if (!first) sb.append(", ");
43138 sb.append("startRow:");
43139 if (this.startRow == null) {
43140 sb.append("null");
43141 } else {
43142 sb.append(this.startRow);
43143 }
43144 first = false;
43145 if (!first) sb.append(", ");
43146 sb.append("columns:");
43147 if (this.columns == null) {
43148 sb.append("null");
43149 } else {
43150 sb.append(this.columns);
43151 }
43152 first = false;
43153 if (!first) sb.append(", ");
43154 sb.append("attributes:");
43155 if (this.attributes == null) {
43156 sb.append("null");
43157 } else {
43158 sb.append(this.attributes);
43159 }
43160 first = false;
43161 sb.append(")");
43162 return sb.toString();
43163 }
43164
43165 public void validate() throws org.apache.thrift.TException {
43166
43167
43168 }
43169
43170 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43171 try {
43172 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43173 } catch (org.apache.thrift.TException te) {
43174 throw new java.io.IOException(te);
43175 }
43176 }
43177
43178 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43179 try {
43180 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43181 } catch (org.apache.thrift.TException te) {
43182 throw new java.io.IOException(te);
43183 }
43184 }
43185
43186 private static class scannerOpen_argsStandardSchemeFactory implements SchemeFactory {
43187 public scannerOpen_argsStandardScheme getScheme() {
43188 return new scannerOpen_argsStandardScheme();
43189 }
43190 }
43191
43192 private static class scannerOpen_argsStandardScheme extends StandardScheme<scannerOpen_args> {
43193
43194 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpen_args struct) throws org.apache.thrift.TException {
43195 org.apache.thrift.protocol.TField schemeField;
43196 iprot.readStructBegin();
43197 while (true)
43198 {
43199 schemeField = iprot.readFieldBegin();
43200 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
43201 break;
43202 }
43203 switch (schemeField.id) {
43204 case 1:
43205 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
43206 struct.tableName = iprot.readBinary();
43207 struct.setTableNameIsSet(true);
43208 } else {
43209 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43210 }
43211 break;
43212 case 2:
43213 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
43214 struct.startRow = iprot.readBinary();
43215 struct.setStartRowIsSet(true);
43216 } else {
43217 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43218 }
43219 break;
43220 case 3:
43221 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
43222 {
43223 org.apache.thrift.protocol.TList _list476 = iprot.readListBegin();
43224 struct.columns = new ArrayList<ByteBuffer>(_list476.size);
43225 for (int _i477 = 0; _i477 < _list476.size; ++_i477)
43226 {
43227 ByteBuffer _elem478;
43228 _elem478 = iprot.readBinary();
43229 struct.columns.add(_elem478);
43230 }
43231 iprot.readListEnd();
43232 }
43233 struct.setColumnsIsSet(true);
43234 } else {
43235 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43236 }
43237 break;
43238 case 4:
43239 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
43240 {
43241 org.apache.thrift.protocol.TMap _map479 = iprot.readMapBegin();
43242 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map479.size);
43243 for (int _i480 = 0; _i480 < _map479.size; ++_i480)
43244 {
43245 ByteBuffer _key481;
43246 ByteBuffer _val482;
43247 _key481 = iprot.readBinary();
43248 _val482 = iprot.readBinary();
43249 struct.attributes.put(_key481, _val482);
43250 }
43251 iprot.readMapEnd();
43252 }
43253 struct.setAttributesIsSet(true);
43254 } else {
43255 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43256 }
43257 break;
43258 default:
43259 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43260 }
43261 iprot.readFieldEnd();
43262 }
43263 iprot.readStructEnd();
43264
43265
43266 struct.validate();
43267 }
43268
43269 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpen_args struct) throws org.apache.thrift.TException {
43270 struct.validate();
43271
43272 oprot.writeStructBegin(STRUCT_DESC);
43273 if (struct.tableName != null) {
43274 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
43275 oprot.writeBinary(struct.tableName);
43276 oprot.writeFieldEnd();
43277 }
43278 if (struct.startRow != null) {
43279 oprot.writeFieldBegin(START_ROW_FIELD_DESC);
43280 oprot.writeBinary(struct.startRow);
43281 oprot.writeFieldEnd();
43282 }
43283 if (struct.columns != null) {
43284 oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
43285 {
43286 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
43287 for (ByteBuffer _iter483 : struct.columns)
43288 {
43289 oprot.writeBinary(_iter483);
43290 }
43291 oprot.writeListEnd();
43292 }
43293 oprot.writeFieldEnd();
43294 }
43295 if (struct.attributes != null) {
43296 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
43297 {
43298 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
43299 for (Map.Entry<ByteBuffer, ByteBuffer> _iter484 : struct.attributes.entrySet())
43300 {
43301 oprot.writeBinary(_iter484.getKey());
43302 oprot.writeBinary(_iter484.getValue());
43303 }
43304 oprot.writeMapEnd();
43305 }
43306 oprot.writeFieldEnd();
43307 }
43308 oprot.writeFieldStop();
43309 oprot.writeStructEnd();
43310 }
43311
43312 }
43313
43314 private static class scannerOpen_argsTupleSchemeFactory implements SchemeFactory {
43315 public scannerOpen_argsTupleScheme getScheme() {
43316 return new scannerOpen_argsTupleScheme();
43317 }
43318 }
43319
43320 private static class scannerOpen_argsTupleScheme extends TupleScheme<scannerOpen_args> {
43321
43322 @Override
43323 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpen_args struct) throws org.apache.thrift.TException {
43324 TTupleProtocol oprot = (TTupleProtocol) prot;
43325 BitSet optionals = new BitSet();
43326 if (struct.isSetTableName()) {
43327 optionals.set(0);
43328 }
43329 if (struct.isSetStartRow()) {
43330 optionals.set(1);
43331 }
43332 if (struct.isSetColumns()) {
43333 optionals.set(2);
43334 }
43335 if (struct.isSetAttributes()) {
43336 optionals.set(3);
43337 }
43338 oprot.writeBitSet(optionals, 4);
43339 if (struct.isSetTableName()) {
43340 oprot.writeBinary(struct.tableName);
43341 }
43342 if (struct.isSetStartRow()) {
43343 oprot.writeBinary(struct.startRow);
43344 }
43345 if (struct.isSetColumns()) {
43346 {
43347 oprot.writeI32(struct.columns.size());
43348 for (ByteBuffer _iter485 : struct.columns)
43349 {
43350 oprot.writeBinary(_iter485);
43351 }
43352 }
43353 }
43354 if (struct.isSetAttributes()) {
43355 {
43356 oprot.writeI32(struct.attributes.size());
43357 for (Map.Entry<ByteBuffer, ByteBuffer> _iter486 : struct.attributes.entrySet())
43358 {
43359 oprot.writeBinary(_iter486.getKey());
43360 oprot.writeBinary(_iter486.getValue());
43361 }
43362 }
43363 }
43364 }
43365
43366 @Override
43367 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpen_args struct) throws org.apache.thrift.TException {
43368 TTupleProtocol iprot = (TTupleProtocol) prot;
43369 BitSet incoming = iprot.readBitSet(4);
43370 if (incoming.get(0)) {
43371 struct.tableName = iprot.readBinary();
43372 struct.setTableNameIsSet(true);
43373 }
43374 if (incoming.get(1)) {
43375 struct.startRow = iprot.readBinary();
43376 struct.setStartRowIsSet(true);
43377 }
43378 if (incoming.get(2)) {
43379 {
43380 org.apache.thrift.protocol.TList _list487 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
43381 struct.columns = new ArrayList<ByteBuffer>(_list487.size);
43382 for (int _i488 = 0; _i488 < _list487.size; ++_i488)
43383 {
43384 ByteBuffer _elem489;
43385 _elem489 = iprot.readBinary();
43386 struct.columns.add(_elem489);
43387 }
43388 }
43389 struct.setColumnsIsSet(true);
43390 }
43391 if (incoming.get(3)) {
43392 {
43393 org.apache.thrift.protocol.TMap _map490 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
43394 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map490.size);
43395 for (int _i491 = 0; _i491 < _map490.size; ++_i491)
43396 {
43397 ByteBuffer _key492;
43398 ByteBuffer _val493;
43399 _key492 = iprot.readBinary();
43400 _val493 = iprot.readBinary();
43401 struct.attributes.put(_key492, _val493);
43402 }
43403 }
43404 struct.setAttributesIsSet(true);
43405 }
43406 }
43407 }
43408
43409 }
43410
43411 public static class scannerOpen_result implements org.apache.thrift.TBase<scannerOpen_result, scannerOpen_result._Fields>, java.io.Serializable, Cloneable {
43412 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpen_result");
43413
43414 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
43415 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
43416
43417 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
43418 static {
43419 schemes.put(StandardScheme.class, new scannerOpen_resultStandardSchemeFactory());
43420 schemes.put(TupleScheme.class, new scannerOpen_resultTupleSchemeFactory());
43421 }
43422
43423 public int success;
43424 public IOError io;
43425
43426
43427 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43428 SUCCESS((short)0, "success"),
43429 IO((short)1, "io");
43430
43431 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43432
43433 static {
43434 for (_Fields field : EnumSet.allOf(_Fields.class)) {
43435 byName.put(field.getFieldName(), field);
43436 }
43437 }
43438
43439
43440
43441
43442 public static _Fields findByThriftId(int fieldId) {
43443 switch(fieldId) {
43444 case 0:
43445 return SUCCESS;
43446 case 1:
43447 return IO;
43448 default:
43449 return null;
43450 }
43451 }
43452
43453
43454
43455
43456
43457 public static _Fields findByThriftIdOrThrow(int fieldId) {
43458 _Fields fields = findByThriftId(fieldId);
43459 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43460 return fields;
43461 }
43462
43463
43464
43465
43466 public static _Fields findByName(String name) {
43467 return byName.get(name);
43468 }
43469
43470 private final short _thriftId;
43471 private final String _fieldName;
43472
43473 _Fields(short thriftId, String fieldName) {
43474 _thriftId = thriftId;
43475 _fieldName = fieldName;
43476 }
43477
43478 public short getThriftFieldId() {
43479 return _thriftId;
43480 }
43481
43482 public String getFieldName() {
43483 return _fieldName;
43484 }
43485 }
43486
43487
43488 private static final int __SUCCESS_ISSET_ID = 0;
43489 private byte __isset_bitfield = 0;
43490 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43491 static {
43492 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43493 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
43494 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID")));
43495 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
43496 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
43497 metaDataMap = Collections.unmodifiableMap(tmpMap);
43498 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpen_result.class, metaDataMap);
43499 }
43500
43501 public scannerOpen_result() {
43502 }
43503
43504 public scannerOpen_result(
43505 int success,
43506 IOError io)
43507 {
43508 this();
43509 this.success = success;
43510 setSuccessIsSet(true);
43511 this.io = io;
43512 }
43513
43514
43515
43516
43517 public scannerOpen_result(scannerOpen_result other) {
43518 __isset_bitfield = other.__isset_bitfield;
43519 this.success = other.success;
43520 if (other.isSetIo()) {
43521 this.io = new IOError(other.io);
43522 }
43523 }
43524
43525 public scannerOpen_result deepCopy() {
43526 return new scannerOpen_result(this);
43527 }
43528
43529 @Override
43530 public void clear() {
43531 setSuccessIsSet(false);
43532 this.success = 0;
43533 this.io = null;
43534 }
43535
43536 public int getSuccess() {
43537 return this.success;
43538 }
43539
43540 public scannerOpen_result setSuccess(int success) {
43541 this.success = success;
43542 setSuccessIsSet(true);
43543 return this;
43544 }
43545
43546 public void unsetSuccess() {
43547 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
43548 }
43549
43550
43551 public boolean isSetSuccess() {
43552 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
43553 }
43554
43555 public void setSuccessIsSet(boolean value) {
43556 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
43557 }
43558
43559 public IOError getIo() {
43560 return this.io;
43561 }
43562
43563 public scannerOpen_result setIo(IOError io) {
43564 this.io = io;
43565 return this;
43566 }
43567
43568 public void unsetIo() {
43569 this.io = null;
43570 }
43571
43572
43573 public boolean isSetIo() {
43574 return this.io != null;
43575 }
43576
43577 public void setIoIsSet(boolean value) {
43578 if (!value) {
43579 this.io = null;
43580 }
43581 }
43582
43583 public void setFieldValue(_Fields field, Object value) {
43584 switch (field) {
43585 case SUCCESS:
43586 if (value == null) {
43587 unsetSuccess();
43588 } else {
43589 setSuccess((Integer)value);
43590 }
43591 break;
43592
43593 case IO:
43594 if (value == null) {
43595 unsetIo();
43596 } else {
43597 setIo((IOError)value);
43598 }
43599 break;
43600
43601 }
43602 }
43603
43604 public Object getFieldValue(_Fields field) {
43605 switch (field) {
43606 case SUCCESS:
43607 return Integer.valueOf(getSuccess());
43608
43609 case IO:
43610 return getIo();
43611
43612 }
43613 throw new IllegalStateException();
43614 }
43615
43616
43617 public boolean isSet(_Fields field) {
43618 if (field == null) {
43619 throw new IllegalArgumentException();
43620 }
43621
43622 switch (field) {
43623 case SUCCESS:
43624 return isSetSuccess();
43625 case IO:
43626 return isSetIo();
43627 }
43628 throw new IllegalStateException();
43629 }
43630
43631 @Override
43632 public boolean equals(Object that) {
43633 if (that == null)
43634 return false;
43635 if (that instanceof scannerOpen_result)
43636 return this.equals((scannerOpen_result)that);
43637 return false;
43638 }
43639
43640 public boolean equals(scannerOpen_result that) {
43641 if (that == null)
43642 return false;
43643
43644 boolean this_present_success = true;
43645 boolean that_present_success = true;
43646 if (this_present_success || that_present_success) {
43647 if (!(this_present_success && that_present_success))
43648 return false;
43649 if (this.success != that.success)
43650 return false;
43651 }
43652
43653 boolean this_present_io = true && this.isSetIo();
43654 boolean that_present_io = true && that.isSetIo();
43655 if (this_present_io || that_present_io) {
43656 if (!(this_present_io && that_present_io))
43657 return false;
43658 if (!this.io.equals(that.io))
43659 return false;
43660 }
43661
43662 return true;
43663 }
43664
43665 @Override
43666 public int hashCode() {
43667 HashCodeBuilder builder = new HashCodeBuilder();
43668
43669 boolean present_success = true;
43670 builder.append(present_success);
43671 if (present_success)
43672 builder.append(success);
43673
43674 boolean present_io = true && (isSetIo());
43675 builder.append(present_io);
43676 if (present_io)
43677 builder.append(io);
43678
43679 return builder.toHashCode();
43680 }
43681
43682 public int compareTo(scannerOpen_result other) {
43683 if (!getClass().equals(other.getClass())) {
43684 return getClass().getName().compareTo(other.getClass().getName());
43685 }
43686
43687 int lastComparison = 0;
43688 scannerOpen_result typedOther = (scannerOpen_result)other;
43689
43690 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
43691 if (lastComparison != 0) {
43692 return lastComparison;
43693 }
43694 if (isSetSuccess()) {
43695 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
43696 if (lastComparison != 0) {
43697 return lastComparison;
43698 }
43699 }
43700 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
43701 if (lastComparison != 0) {
43702 return lastComparison;
43703 }
43704 if (isSetIo()) {
43705 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
43706 if (lastComparison != 0) {
43707 return lastComparison;
43708 }
43709 }
43710 return 0;
43711 }
43712
43713 public _Fields fieldForId(int fieldId) {
43714 return _Fields.findByThriftId(fieldId);
43715 }
43716
43717 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43718 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
43719 }
43720
43721 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43722 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
43723 }
43724
43725 @Override
43726 public String toString() {
43727 StringBuilder sb = new StringBuilder("scannerOpen_result(");
43728 boolean first = true;
43729
43730 sb.append("success:");
43731 sb.append(this.success);
43732 first = false;
43733 if (!first) sb.append(", ");
43734 sb.append("io:");
43735 if (this.io == null) {
43736 sb.append("null");
43737 } else {
43738 sb.append(this.io);
43739 }
43740 first = false;
43741 sb.append(")");
43742 return sb.toString();
43743 }
43744
43745 public void validate() throws org.apache.thrift.TException {
43746
43747
43748 }
43749
43750 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43751 try {
43752 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43753 } catch (org.apache.thrift.TException te) {
43754 throw new java.io.IOException(te);
43755 }
43756 }
43757
43758 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43759 try {
43760
43761 __isset_bitfield = 0;
43762 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43763 } catch (org.apache.thrift.TException te) {
43764 throw new java.io.IOException(te);
43765 }
43766 }
43767
43768 private static class scannerOpen_resultStandardSchemeFactory implements SchemeFactory {
43769 public scannerOpen_resultStandardScheme getScheme() {
43770 return new scannerOpen_resultStandardScheme();
43771 }
43772 }
43773
43774 private static class scannerOpen_resultStandardScheme extends StandardScheme<scannerOpen_result> {
43775
43776 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpen_result struct) throws org.apache.thrift.TException {
43777 org.apache.thrift.protocol.TField schemeField;
43778 iprot.readStructBegin();
43779 while (true)
43780 {
43781 schemeField = iprot.readFieldBegin();
43782 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
43783 break;
43784 }
43785 switch (schemeField.id) {
43786 case 0:
43787 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
43788 struct.success = iprot.readI32();
43789 struct.setSuccessIsSet(true);
43790 } else {
43791 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43792 }
43793 break;
43794 case 1:
43795 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
43796 struct.io = new IOError();
43797 struct.io.read(iprot);
43798 struct.setIoIsSet(true);
43799 } else {
43800 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43801 }
43802 break;
43803 default:
43804 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
43805 }
43806 iprot.readFieldEnd();
43807 }
43808 iprot.readStructEnd();
43809
43810
43811 struct.validate();
43812 }
43813
43814 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpen_result struct) throws org.apache.thrift.TException {
43815 struct.validate();
43816
43817 oprot.writeStructBegin(STRUCT_DESC);
43818 if (struct.isSetSuccess()) {
43819 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43820 oprot.writeI32(struct.success);
43821 oprot.writeFieldEnd();
43822 }
43823 if (struct.io != null) {
43824 oprot.writeFieldBegin(IO_FIELD_DESC);
43825 struct.io.write(oprot);
43826 oprot.writeFieldEnd();
43827 }
43828 oprot.writeFieldStop();
43829 oprot.writeStructEnd();
43830 }
43831
43832 }
43833
43834 private static class scannerOpen_resultTupleSchemeFactory implements SchemeFactory {
43835 public scannerOpen_resultTupleScheme getScheme() {
43836 return new scannerOpen_resultTupleScheme();
43837 }
43838 }
43839
43840 private static class scannerOpen_resultTupleScheme extends TupleScheme<scannerOpen_result> {
43841
43842 @Override
43843 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpen_result struct) throws org.apache.thrift.TException {
43844 TTupleProtocol oprot = (TTupleProtocol) prot;
43845 BitSet optionals = new BitSet();
43846 if (struct.isSetSuccess()) {
43847 optionals.set(0);
43848 }
43849 if (struct.isSetIo()) {
43850 optionals.set(1);
43851 }
43852 oprot.writeBitSet(optionals, 2);
43853 if (struct.isSetSuccess()) {
43854 oprot.writeI32(struct.success);
43855 }
43856 if (struct.isSetIo()) {
43857 struct.io.write(oprot);
43858 }
43859 }
43860
43861 @Override
43862 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpen_result struct) throws org.apache.thrift.TException {
43863 TTupleProtocol iprot = (TTupleProtocol) prot;
43864 BitSet incoming = iprot.readBitSet(2);
43865 if (incoming.get(0)) {
43866 struct.success = iprot.readI32();
43867 struct.setSuccessIsSet(true);
43868 }
43869 if (incoming.get(1)) {
43870 struct.io = new IOError();
43871 struct.io.read(iprot);
43872 struct.setIoIsSet(true);
43873 }
43874 }
43875 }
43876
43877 }
43878
43879 public static class scannerOpenWithStop_args implements org.apache.thrift.TBase<scannerOpenWithStop_args, scannerOpenWithStop_args._Fields>, java.io.Serializable, Cloneable {
43880 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStop_args");
43881
43882 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
43883 private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2);
43884 private static final org.apache.thrift.protocol.TField STOP_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("stopRow", org.apache.thrift.protocol.TType.STRING, (short)3);
43885 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)4);
43886 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
43887
43888 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
43889 static {
43890 schemes.put(StandardScheme.class, new scannerOpenWithStop_argsStandardSchemeFactory());
43891 schemes.put(TupleScheme.class, new scannerOpenWithStop_argsTupleSchemeFactory());
43892 }
43893
43894
43895
43896
43897 public ByteBuffer tableName;
43898
43899
43900
43901
43902 public ByteBuffer startRow;
43903
43904
43905
43906
43907 public ByteBuffer stopRow;
43908
43909
43910
43911
43912
43913 public List<ByteBuffer> columns;
43914
43915
43916
43917 public Map<ByteBuffer,ByteBuffer> attributes;
43918
43919
43920 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43921
43922
43923
43924 TABLE_NAME((short)1, "tableName"),
43925
43926
43927
43928
43929 START_ROW((short)2, "startRow"),
43930
43931
43932
43933
43934 STOP_ROW((short)3, "stopRow"),
43935
43936
43937
43938
43939
43940 COLUMNS((short)4, "columns"),
43941
43942
43943
43944 ATTRIBUTES((short)5, "attributes");
43945
43946 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43947
43948 static {
43949 for (_Fields field : EnumSet.allOf(_Fields.class)) {
43950 byName.put(field.getFieldName(), field);
43951 }
43952 }
43953
43954
43955
43956
43957 public static _Fields findByThriftId(int fieldId) {
43958 switch(fieldId) {
43959 case 1:
43960 return TABLE_NAME;
43961 case 2:
43962 return START_ROW;
43963 case 3:
43964 return STOP_ROW;
43965 case 4:
43966 return COLUMNS;
43967 case 5:
43968 return ATTRIBUTES;
43969 default:
43970 return null;
43971 }
43972 }
43973
43974
43975
43976
43977
43978 public static _Fields findByThriftIdOrThrow(int fieldId) {
43979 _Fields fields = findByThriftId(fieldId);
43980 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43981 return fields;
43982 }
43983
43984
43985
43986
43987 public static _Fields findByName(String name) {
43988 return byName.get(name);
43989 }
43990
43991 private final short _thriftId;
43992 private final String _fieldName;
43993
43994 _Fields(short thriftId, String fieldName) {
43995 _thriftId = thriftId;
43996 _fieldName = fieldName;
43997 }
43998
43999 public short getThriftFieldId() {
44000 return _thriftId;
44001 }
44002
44003 public String getFieldName() {
44004 return _fieldName;
44005 }
44006 }
44007
44008
44009 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44010 static {
44011 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44012 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
44013 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
44014 tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT,
44015 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
44016 tmpMap.put(_Fields.STOP_ROW, new org.apache.thrift.meta_data.FieldMetaData("stopRow", org.apache.thrift.TFieldRequirementType.DEFAULT,
44017 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
44018 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT,
44019 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
44020 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
44021 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
44022 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
44023 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
44024 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
44025 metaDataMap = Collections.unmodifiableMap(tmpMap);
44026 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStop_args.class, metaDataMap);
44027 }
44028
44029 public scannerOpenWithStop_args() {
44030 }
44031
44032 public scannerOpenWithStop_args(
44033 ByteBuffer tableName,
44034 ByteBuffer startRow,
44035 ByteBuffer stopRow,
44036 List<ByteBuffer> columns,
44037 Map<ByteBuffer,ByteBuffer> attributes)
44038 {
44039 this();
44040 this.tableName = tableName;
44041 this.startRow = startRow;
44042 this.stopRow = stopRow;
44043 this.columns = columns;
44044 this.attributes = attributes;
44045 }
44046
44047
44048
44049
44050 public scannerOpenWithStop_args(scannerOpenWithStop_args other) {
44051 if (other.isSetTableName()) {
44052 this.tableName = other.tableName;
44053 }
44054 if (other.isSetStartRow()) {
44055 this.startRow = other.startRow;
44056 }
44057 if (other.isSetStopRow()) {
44058 this.stopRow = other.stopRow;
44059 }
44060 if (other.isSetColumns()) {
44061 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
44062 for (ByteBuffer other_element : other.columns) {
44063 __this__columns.add(other_element);
44064 }
44065 this.columns = __this__columns;
44066 }
44067 if (other.isSetAttributes()) {
44068 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
44069 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
44070
44071 ByteBuffer other_element_key = other_element.getKey();
44072 ByteBuffer other_element_value = other_element.getValue();
44073
44074 ByteBuffer __this__attributes_copy_key = other_element_key;
44075
44076 ByteBuffer __this__attributes_copy_value = other_element_value;
44077
44078 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
44079 }
44080 this.attributes = __this__attributes;
44081 }
44082 }
44083
44084 public scannerOpenWithStop_args deepCopy() {
44085 return new scannerOpenWithStop_args(this);
44086 }
44087
44088 @Override
44089 public void clear() {
44090 this.tableName = null;
44091 this.startRow = null;
44092 this.stopRow = null;
44093 this.columns = null;
44094 this.attributes = null;
44095 }
44096
44097
44098
44099
44100 public byte[] getTableName() {
44101 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
44102 return tableName == null ? null : tableName.array();
44103 }
44104
44105 public ByteBuffer bufferForTableName() {
44106 return tableName;
44107 }
44108
44109
44110
44111
44112 public scannerOpenWithStop_args setTableName(byte[] tableName) {
44113 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
44114 return this;
44115 }
44116
44117 public scannerOpenWithStop_args setTableName(ByteBuffer tableName) {
44118 this.tableName = tableName;
44119 return this;
44120 }
44121
44122 public void unsetTableName() {
44123 this.tableName = null;
44124 }
44125
44126
44127 public boolean isSetTableName() {
44128 return this.tableName != null;
44129 }
44130
44131 public void setTableNameIsSet(boolean value) {
44132 if (!value) {
44133 this.tableName = null;
44134 }
44135 }
44136
44137
44138
44139
44140
44141 public byte[] getStartRow() {
44142 setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow));
44143 return startRow == null ? null : startRow.array();
44144 }
44145
44146 public ByteBuffer bufferForStartRow() {
44147 return startRow;
44148 }
44149
44150
44151
44152
44153
44154 public scannerOpenWithStop_args setStartRow(byte[] startRow) {
44155 setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow));
44156 return this;
44157 }
44158
44159 public scannerOpenWithStop_args setStartRow(ByteBuffer startRow) {
44160 this.startRow = startRow;
44161 return this;
44162 }
44163
44164 public void unsetStartRow() {
44165 this.startRow = null;
44166 }
44167
44168
44169 public boolean isSetStartRow() {
44170 return this.startRow != null;
44171 }
44172
44173 public void setStartRowIsSet(boolean value) {
44174 if (!value) {
44175 this.startRow = null;
44176 }
44177 }
44178
44179
44180
44181
44182
44183 public byte[] getStopRow() {
44184 setStopRow(org.apache.thrift.TBaseHelper.rightSize(stopRow));
44185 return stopRow == null ? null : stopRow.array();
44186 }
44187
44188 public ByteBuffer bufferForStopRow() {
44189 return stopRow;
44190 }
44191
44192
44193
44194
44195
44196 public scannerOpenWithStop_args setStopRow(byte[] stopRow) {
44197 setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow));
44198 return this;
44199 }
44200
44201 public scannerOpenWithStop_args setStopRow(ByteBuffer stopRow) {
44202 this.stopRow = stopRow;
44203 return this;
44204 }
44205
44206 public void unsetStopRow() {
44207 this.stopRow = null;
44208 }
44209
44210
44211 public boolean isSetStopRow() {
44212 return this.stopRow != null;
44213 }
44214
44215 public void setStopRowIsSet(boolean value) {
44216 if (!value) {
44217 this.stopRow = null;
44218 }
44219 }
44220
44221 public int getColumnsSize() {
44222 return (this.columns == null) ? 0 : this.columns.size();
44223 }
44224
44225 public java.util.Iterator<ByteBuffer> getColumnsIterator() {
44226 return (this.columns == null) ? null : this.columns.iterator();
44227 }
44228
44229 public void addToColumns(ByteBuffer elem) {
44230 if (this.columns == null) {
44231 this.columns = new ArrayList<ByteBuffer>();
44232 }
44233 this.columns.add(elem);
44234 }
44235
44236
44237
44238
44239
44240
44241 public List<ByteBuffer> getColumns() {
44242 return this.columns;
44243 }
44244
44245
44246
44247
44248
44249
44250 public scannerOpenWithStop_args setColumns(List<ByteBuffer> columns) {
44251 this.columns = columns;
44252 return this;
44253 }
44254
44255 public void unsetColumns() {
44256 this.columns = null;
44257 }
44258
44259
44260 public boolean isSetColumns() {
44261 return this.columns != null;
44262 }
44263
44264 public void setColumnsIsSet(boolean value) {
44265 if (!value) {
44266 this.columns = null;
44267 }
44268 }
44269
44270 public int getAttributesSize() {
44271 return (this.attributes == null) ? 0 : this.attributes.size();
44272 }
44273
44274 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
44275 if (this.attributes == null) {
44276 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
44277 }
44278 this.attributes.put(key, val);
44279 }
44280
44281
44282
44283
44284 public Map<ByteBuffer,ByteBuffer> getAttributes() {
44285 return this.attributes;
44286 }
44287
44288
44289
44290
44291 public scannerOpenWithStop_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
44292 this.attributes = attributes;
44293 return this;
44294 }
44295
44296 public void unsetAttributes() {
44297 this.attributes = null;
44298 }
44299
44300
44301 public boolean isSetAttributes() {
44302 return this.attributes != null;
44303 }
44304
44305 public void setAttributesIsSet(boolean value) {
44306 if (!value) {
44307 this.attributes = null;
44308 }
44309 }
44310
44311 public void setFieldValue(_Fields field, Object value) {
44312 switch (field) {
44313 case TABLE_NAME:
44314 if (value == null) {
44315 unsetTableName();
44316 } else {
44317 setTableName((ByteBuffer)value);
44318 }
44319 break;
44320
44321 case START_ROW:
44322 if (value == null) {
44323 unsetStartRow();
44324 } else {
44325 setStartRow((ByteBuffer)value);
44326 }
44327 break;
44328
44329 case STOP_ROW:
44330 if (value == null) {
44331 unsetStopRow();
44332 } else {
44333 setStopRow((ByteBuffer)value);
44334 }
44335 break;
44336
44337 case COLUMNS:
44338 if (value == null) {
44339 unsetColumns();
44340 } else {
44341 setColumns((List<ByteBuffer>)value);
44342 }
44343 break;
44344
44345 case ATTRIBUTES:
44346 if (value == null) {
44347 unsetAttributes();
44348 } else {
44349 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
44350 }
44351 break;
44352
44353 }
44354 }
44355
44356 public Object getFieldValue(_Fields field) {
44357 switch (field) {
44358 case TABLE_NAME:
44359 return getTableName();
44360
44361 case START_ROW:
44362 return getStartRow();
44363
44364 case STOP_ROW:
44365 return getStopRow();
44366
44367 case COLUMNS:
44368 return getColumns();
44369
44370 case ATTRIBUTES:
44371 return getAttributes();
44372
44373 }
44374 throw new IllegalStateException();
44375 }
44376
44377
44378 public boolean isSet(_Fields field) {
44379 if (field == null) {
44380 throw new IllegalArgumentException();
44381 }
44382
44383 switch (field) {
44384 case TABLE_NAME:
44385 return isSetTableName();
44386 case START_ROW:
44387 return isSetStartRow();
44388 case STOP_ROW:
44389 return isSetStopRow();
44390 case COLUMNS:
44391 return isSetColumns();
44392 case ATTRIBUTES:
44393 return isSetAttributes();
44394 }
44395 throw new IllegalStateException();
44396 }
44397
44398 @Override
44399 public boolean equals(Object that) {
44400 if (that == null)
44401 return false;
44402 if (that instanceof scannerOpenWithStop_args)
44403 return this.equals((scannerOpenWithStop_args)that);
44404 return false;
44405 }
44406
44407 public boolean equals(scannerOpenWithStop_args that) {
44408 if (that == null)
44409 return false;
44410
44411 boolean this_present_tableName = true && this.isSetTableName();
44412 boolean that_present_tableName = true && that.isSetTableName();
44413 if (this_present_tableName || that_present_tableName) {
44414 if (!(this_present_tableName && that_present_tableName))
44415 return false;
44416 if (!this.tableName.equals(that.tableName))
44417 return false;
44418 }
44419
44420 boolean this_present_startRow = true && this.isSetStartRow();
44421 boolean that_present_startRow = true && that.isSetStartRow();
44422 if (this_present_startRow || that_present_startRow) {
44423 if (!(this_present_startRow && that_present_startRow))
44424 return false;
44425 if (!this.startRow.equals(that.startRow))
44426 return false;
44427 }
44428
44429 boolean this_present_stopRow = true && this.isSetStopRow();
44430 boolean that_present_stopRow = true && that.isSetStopRow();
44431 if (this_present_stopRow || that_present_stopRow) {
44432 if (!(this_present_stopRow && that_present_stopRow))
44433 return false;
44434 if (!this.stopRow.equals(that.stopRow))
44435 return false;
44436 }
44437
44438 boolean this_present_columns = true && this.isSetColumns();
44439 boolean that_present_columns = true && that.isSetColumns();
44440 if (this_present_columns || that_present_columns) {
44441 if (!(this_present_columns && that_present_columns))
44442 return false;
44443 if (!this.columns.equals(that.columns))
44444 return false;
44445 }
44446
44447 boolean this_present_attributes = true && this.isSetAttributes();
44448 boolean that_present_attributes = true && that.isSetAttributes();
44449 if (this_present_attributes || that_present_attributes) {
44450 if (!(this_present_attributes && that_present_attributes))
44451 return false;
44452 if (!this.attributes.equals(that.attributes))
44453 return false;
44454 }
44455
44456 return true;
44457 }
44458
44459 @Override
44460 public int hashCode() {
44461 HashCodeBuilder builder = new HashCodeBuilder();
44462
44463 boolean present_tableName = true && (isSetTableName());
44464 builder.append(present_tableName);
44465 if (present_tableName)
44466 builder.append(tableName);
44467
44468 boolean present_startRow = true && (isSetStartRow());
44469 builder.append(present_startRow);
44470 if (present_startRow)
44471 builder.append(startRow);
44472
44473 boolean present_stopRow = true && (isSetStopRow());
44474 builder.append(present_stopRow);
44475 if (present_stopRow)
44476 builder.append(stopRow);
44477
44478 boolean present_columns = true && (isSetColumns());
44479 builder.append(present_columns);
44480 if (present_columns)
44481 builder.append(columns);
44482
44483 boolean present_attributes = true && (isSetAttributes());
44484 builder.append(present_attributes);
44485 if (present_attributes)
44486 builder.append(attributes);
44487
44488 return builder.toHashCode();
44489 }
44490
44491 public int compareTo(scannerOpenWithStop_args other) {
44492 if (!getClass().equals(other.getClass())) {
44493 return getClass().getName().compareTo(other.getClass().getName());
44494 }
44495
44496 int lastComparison = 0;
44497 scannerOpenWithStop_args typedOther = (scannerOpenWithStop_args)other;
44498
44499 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
44500 if (lastComparison != 0) {
44501 return lastComparison;
44502 }
44503 if (isSetTableName()) {
44504 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
44505 if (lastComparison != 0) {
44506 return lastComparison;
44507 }
44508 }
44509 lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow());
44510 if (lastComparison != 0) {
44511 return lastComparison;
44512 }
44513 if (isSetStartRow()) {
44514 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow);
44515 if (lastComparison != 0) {
44516 return lastComparison;
44517 }
44518 }
44519 lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(typedOther.isSetStopRow());
44520 if (lastComparison != 0) {
44521 return lastComparison;
44522 }
44523 if (isSetStopRow()) {
44524 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow);
44525 if (lastComparison != 0) {
44526 return lastComparison;
44527 }
44528 }
44529 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
44530 if (lastComparison != 0) {
44531 return lastComparison;
44532 }
44533 if (isSetColumns()) {
44534 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
44535 if (lastComparison != 0) {
44536 return lastComparison;
44537 }
44538 }
44539 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
44540 if (lastComparison != 0) {
44541 return lastComparison;
44542 }
44543 if (isSetAttributes()) {
44544 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
44545 if (lastComparison != 0) {
44546 return lastComparison;
44547 }
44548 }
44549 return 0;
44550 }
44551
44552 public _Fields fieldForId(int fieldId) {
44553 return _Fields.findByThriftId(fieldId);
44554 }
44555
44556 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44557 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
44558 }
44559
44560 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44561 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
44562 }
44563
44564 @Override
44565 public String toString() {
44566 StringBuilder sb = new StringBuilder("scannerOpenWithStop_args(");
44567 boolean first = true;
44568
44569 sb.append("tableName:");
44570 if (this.tableName == null) {
44571 sb.append("null");
44572 } else {
44573 sb.append(this.tableName);
44574 }
44575 first = false;
44576 if (!first) sb.append(", ");
44577 sb.append("startRow:");
44578 if (this.startRow == null) {
44579 sb.append("null");
44580 } else {
44581 sb.append(this.startRow);
44582 }
44583 first = false;
44584 if (!first) sb.append(", ");
44585 sb.append("stopRow:");
44586 if (this.stopRow == null) {
44587 sb.append("null");
44588 } else {
44589 sb.append(this.stopRow);
44590 }
44591 first = false;
44592 if (!first) sb.append(", ");
44593 sb.append("columns:");
44594 if (this.columns == null) {
44595 sb.append("null");
44596 } else {
44597 sb.append(this.columns);
44598 }
44599 first = false;
44600 if (!first) sb.append(", ");
44601 sb.append("attributes:");
44602 if (this.attributes == null) {
44603 sb.append("null");
44604 } else {
44605 sb.append(this.attributes);
44606 }
44607 first = false;
44608 sb.append(")");
44609 return sb.toString();
44610 }
44611
44612 public void validate() throws org.apache.thrift.TException {
44613
44614
44615 }
44616
44617 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44618 try {
44619 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44620 } catch (org.apache.thrift.TException te) {
44621 throw new java.io.IOException(te);
44622 }
44623 }
44624
44625 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44626 try {
44627 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44628 } catch (org.apache.thrift.TException te) {
44629 throw new java.io.IOException(te);
44630 }
44631 }
44632
44633 private static class scannerOpenWithStop_argsStandardSchemeFactory implements SchemeFactory {
44634 public scannerOpenWithStop_argsStandardScheme getScheme() {
44635 return new scannerOpenWithStop_argsStandardScheme();
44636 }
44637 }
44638
44639 private static class scannerOpenWithStop_argsStandardScheme extends StandardScheme<scannerOpenWithStop_args> {
44640
44641 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException {
44642 org.apache.thrift.protocol.TField schemeField;
44643 iprot.readStructBegin();
44644 while (true)
44645 {
44646 schemeField = iprot.readFieldBegin();
44647 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
44648 break;
44649 }
44650 switch (schemeField.id) {
44651 case 1:
44652 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
44653 struct.tableName = iprot.readBinary();
44654 struct.setTableNameIsSet(true);
44655 } else {
44656 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44657 }
44658 break;
44659 case 2:
44660 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
44661 struct.startRow = iprot.readBinary();
44662 struct.setStartRowIsSet(true);
44663 } else {
44664 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44665 }
44666 break;
44667 case 3:
44668 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
44669 struct.stopRow = iprot.readBinary();
44670 struct.setStopRowIsSet(true);
44671 } else {
44672 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44673 }
44674 break;
44675 case 4:
44676 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
44677 {
44678 org.apache.thrift.protocol.TList _list494 = iprot.readListBegin();
44679 struct.columns = new ArrayList<ByteBuffer>(_list494.size);
44680 for (int _i495 = 0; _i495 < _list494.size; ++_i495)
44681 {
44682 ByteBuffer _elem496;
44683 _elem496 = iprot.readBinary();
44684 struct.columns.add(_elem496);
44685 }
44686 iprot.readListEnd();
44687 }
44688 struct.setColumnsIsSet(true);
44689 } else {
44690 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44691 }
44692 break;
44693 case 5:
44694 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
44695 {
44696 org.apache.thrift.protocol.TMap _map497 = iprot.readMapBegin();
44697 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map497.size);
44698 for (int _i498 = 0; _i498 < _map497.size; ++_i498)
44699 {
44700 ByteBuffer _key499;
44701 ByteBuffer _val500;
44702 _key499 = iprot.readBinary();
44703 _val500 = iprot.readBinary();
44704 struct.attributes.put(_key499, _val500);
44705 }
44706 iprot.readMapEnd();
44707 }
44708 struct.setAttributesIsSet(true);
44709 } else {
44710 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44711 }
44712 break;
44713 default:
44714 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
44715 }
44716 iprot.readFieldEnd();
44717 }
44718 iprot.readStructEnd();
44719
44720
44721 struct.validate();
44722 }
44723
44724 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException {
44725 struct.validate();
44726
44727 oprot.writeStructBegin(STRUCT_DESC);
44728 if (struct.tableName != null) {
44729 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
44730 oprot.writeBinary(struct.tableName);
44731 oprot.writeFieldEnd();
44732 }
44733 if (struct.startRow != null) {
44734 oprot.writeFieldBegin(START_ROW_FIELD_DESC);
44735 oprot.writeBinary(struct.startRow);
44736 oprot.writeFieldEnd();
44737 }
44738 if (struct.stopRow != null) {
44739 oprot.writeFieldBegin(STOP_ROW_FIELD_DESC);
44740 oprot.writeBinary(struct.stopRow);
44741 oprot.writeFieldEnd();
44742 }
44743 if (struct.columns != null) {
44744 oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
44745 {
44746 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
44747 for (ByteBuffer _iter501 : struct.columns)
44748 {
44749 oprot.writeBinary(_iter501);
44750 }
44751 oprot.writeListEnd();
44752 }
44753 oprot.writeFieldEnd();
44754 }
44755 if (struct.attributes != null) {
44756 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
44757 {
44758 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
44759 for (Map.Entry<ByteBuffer, ByteBuffer> _iter502 : struct.attributes.entrySet())
44760 {
44761 oprot.writeBinary(_iter502.getKey());
44762 oprot.writeBinary(_iter502.getValue());
44763 }
44764 oprot.writeMapEnd();
44765 }
44766 oprot.writeFieldEnd();
44767 }
44768 oprot.writeFieldStop();
44769 oprot.writeStructEnd();
44770 }
44771
44772 }
44773
44774 private static class scannerOpenWithStop_argsTupleSchemeFactory implements SchemeFactory {
44775 public scannerOpenWithStop_argsTupleScheme getScheme() {
44776 return new scannerOpenWithStop_argsTupleScheme();
44777 }
44778 }
44779
44780 private static class scannerOpenWithStop_argsTupleScheme extends TupleScheme<scannerOpenWithStop_args> {
44781
44782 @Override
44783 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException {
44784 TTupleProtocol oprot = (TTupleProtocol) prot;
44785 BitSet optionals = new BitSet();
44786 if (struct.isSetTableName()) {
44787 optionals.set(0);
44788 }
44789 if (struct.isSetStartRow()) {
44790 optionals.set(1);
44791 }
44792 if (struct.isSetStopRow()) {
44793 optionals.set(2);
44794 }
44795 if (struct.isSetColumns()) {
44796 optionals.set(3);
44797 }
44798 if (struct.isSetAttributes()) {
44799 optionals.set(4);
44800 }
44801 oprot.writeBitSet(optionals, 5);
44802 if (struct.isSetTableName()) {
44803 oprot.writeBinary(struct.tableName);
44804 }
44805 if (struct.isSetStartRow()) {
44806 oprot.writeBinary(struct.startRow);
44807 }
44808 if (struct.isSetStopRow()) {
44809 oprot.writeBinary(struct.stopRow);
44810 }
44811 if (struct.isSetColumns()) {
44812 {
44813 oprot.writeI32(struct.columns.size());
44814 for (ByteBuffer _iter503 : struct.columns)
44815 {
44816 oprot.writeBinary(_iter503);
44817 }
44818 }
44819 }
44820 if (struct.isSetAttributes()) {
44821 {
44822 oprot.writeI32(struct.attributes.size());
44823 for (Map.Entry<ByteBuffer, ByteBuffer> _iter504 : struct.attributes.entrySet())
44824 {
44825 oprot.writeBinary(_iter504.getKey());
44826 oprot.writeBinary(_iter504.getValue());
44827 }
44828 }
44829 }
44830 }
44831
44832 @Override
44833 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_args struct) throws org.apache.thrift.TException {
44834 TTupleProtocol iprot = (TTupleProtocol) prot;
44835 BitSet incoming = iprot.readBitSet(5);
44836 if (incoming.get(0)) {
44837 struct.tableName = iprot.readBinary();
44838 struct.setTableNameIsSet(true);
44839 }
44840 if (incoming.get(1)) {
44841 struct.startRow = iprot.readBinary();
44842 struct.setStartRowIsSet(true);
44843 }
44844 if (incoming.get(2)) {
44845 struct.stopRow = iprot.readBinary();
44846 struct.setStopRowIsSet(true);
44847 }
44848 if (incoming.get(3)) {
44849 {
44850 org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
44851 struct.columns = new ArrayList<ByteBuffer>(_list505.size);
44852 for (int _i506 = 0; _i506 < _list505.size; ++_i506)
44853 {
44854 ByteBuffer _elem507;
44855 _elem507 = iprot.readBinary();
44856 struct.columns.add(_elem507);
44857 }
44858 }
44859 struct.setColumnsIsSet(true);
44860 }
44861 if (incoming.get(4)) {
44862 {
44863 org.apache.thrift.protocol.TMap _map508 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
44864 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map508.size);
44865 for (int _i509 = 0; _i509 < _map508.size; ++_i509)
44866 {
44867 ByteBuffer _key510;
44868 ByteBuffer _val511;
44869 _key510 = iprot.readBinary();
44870 _val511 = iprot.readBinary();
44871 struct.attributes.put(_key510, _val511);
44872 }
44873 }
44874 struct.setAttributesIsSet(true);
44875 }
44876 }
44877 }
44878
44879 }
44880
44881 public static class scannerOpenWithStop_result implements org.apache.thrift.TBase<scannerOpenWithStop_result, scannerOpenWithStop_result._Fields>, java.io.Serializable, Cloneable {
44882 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStop_result");
44883
44884 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
44885 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
44886
44887 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
44888 static {
44889 schemes.put(StandardScheme.class, new scannerOpenWithStop_resultStandardSchemeFactory());
44890 schemes.put(TupleScheme.class, new scannerOpenWithStop_resultTupleSchemeFactory());
44891 }
44892
44893 public int success;
44894 public IOError io;
44895
44896
44897 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44898 SUCCESS((short)0, "success"),
44899 IO((short)1, "io");
44900
44901 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44902
44903 static {
44904 for (_Fields field : EnumSet.allOf(_Fields.class)) {
44905 byName.put(field.getFieldName(), field);
44906 }
44907 }
44908
44909
44910
44911
44912 public static _Fields findByThriftId(int fieldId) {
44913 switch(fieldId) {
44914 case 0:
44915 return SUCCESS;
44916 case 1:
44917 return IO;
44918 default:
44919 return null;
44920 }
44921 }
44922
44923
44924
44925
44926
44927 public static _Fields findByThriftIdOrThrow(int fieldId) {
44928 _Fields fields = findByThriftId(fieldId);
44929 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44930 return fields;
44931 }
44932
44933
44934
44935
44936 public static _Fields findByName(String name) {
44937 return byName.get(name);
44938 }
44939
44940 private final short _thriftId;
44941 private final String _fieldName;
44942
44943 _Fields(short thriftId, String fieldName) {
44944 _thriftId = thriftId;
44945 _fieldName = fieldName;
44946 }
44947
44948 public short getThriftFieldId() {
44949 return _thriftId;
44950 }
44951
44952 public String getFieldName() {
44953 return _fieldName;
44954 }
44955 }
44956
44957
44958 private static final int __SUCCESS_ISSET_ID = 0;
44959 private byte __isset_bitfield = 0;
44960 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44961 static {
44962 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44963 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
44964 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID")));
44965 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
44966 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
44967 metaDataMap = Collections.unmodifiableMap(tmpMap);
44968 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStop_result.class, metaDataMap);
44969 }
44970
44971 public scannerOpenWithStop_result() {
44972 }
44973
44974 public scannerOpenWithStop_result(
44975 int success,
44976 IOError io)
44977 {
44978 this();
44979 this.success = success;
44980 setSuccessIsSet(true);
44981 this.io = io;
44982 }
44983
44984
44985
44986
44987 public scannerOpenWithStop_result(scannerOpenWithStop_result other) {
44988 __isset_bitfield = other.__isset_bitfield;
44989 this.success = other.success;
44990 if (other.isSetIo()) {
44991 this.io = new IOError(other.io);
44992 }
44993 }
44994
44995 public scannerOpenWithStop_result deepCopy() {
44996 return new scannerOpenWithStop_result(this);
44997 }
44998
44999 @Override
45000 public void clear() {
45001 setSuccessIsSet(false);
45002 this.success = 0;
45003 this.io = null;
45004 }
45005
45006 public int getSuccess() {
45007 return this.success;
45008 }
45009
45010 public scannerOpenWithStop_result setSuccess(int success) {
45011 this.success = success;
45012 setSuccessIsSet(true);
45013 return this;
45014 }
45015
45016 public void unsetSuccess() {
45017 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
45018 }
45019
45020
45021 public boolean isSetSuccess() {
45022 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
45023 }
45024
45025 public void setSuccessIsSet(boolean value) {
45026 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
45027 }
45028
45029 public IOError getIo() {
45030 return this.io;
45031 }
45032
45033 public scannerOpenWithStop_result setIo(IOError io) {
45034 this.io = io;
45035 return this;
45036 }
45037
45038 public void unsetIo() {
45039 this.io = null;
45040 }
45041
45042
45043 public boolean isSetIo() {
45044 return this.io != null;
45045 }
45046
45047 public void setIoIsSet(boolean value) {
45048 if (!value) {
45049 this.io = null;
45050 }
45051 }
45052
45053 public void setFieldValue(_Fields field, Object value) {
45054 switch (field) {
45055 case SUCCESS:
45056 if (value == null) {
45057 unsetSuccess();
45058 } else {
45059 setSuccess((Integer)value);
45060 }
45061 break;
45062
45063 case IO:
45064 if (value == null) {
45065 unsetIo();
45066 } else {
45067 setIo((IOError)value);
45068 }
45069 break;
45070
45071 }
45072 }
45073
45074 public Object getFieldValue(_Fields field) {
45075 switch (field) {
45076 case SUCCESS:
45077 return Integer.valueOf(getSuccess());
45078
45079 case IO:
45080 return getIo();
45081
45082 }
45083 throw new IllegalStateException();
45084 }
45085
45086
45087 public boolean isSet(_Fields field) {
45088 if (field == null) {
45089 throw new IllegalArgumentException();
45090 }
45091
45092 switch (field) {
45093 case SUCCESS:
45094 return isSetSuccess();
45095 case IO:
45096 return isSetIo();
45097 }
45098 throw new IllegalStateException();
45099 }
45100
45101 @Override
45102 public boolean equals(Object that) {
45103 if (that == null)
45104 return false;
45105 if (that instanceof scannerOpenWithStop_result)
45106 return this.equals((scannerOpenWithStop_result)that);
45107 return false;
45108 }
45109
45110 public boolean equals(scannerOpenWithStop_result that) {
45111 if (that == null)
45112 return false;
45113
45114 boolean this_present_success = true;
45115 boolean that_present_success = true;
45116 if (this_present_success || that_present_success) {
45117 if (!(this_present_success && that_present_success))
45118 return false;
45119 if (this.success != that.success)
45120 return false;
45121 }
45122
45123 boolean this_present_io = true && this.isSetIo();
45124 boolean that_present_io = true && that.isSetIo();
45125 if (this_present_io || that_present_io) {
45126 if (!(this_present_io && that_present_io))
45127 return false;
45128 if (!this.io.equals(that.io))
45129 return false;
45130 }
45131
45132 return true;
45133 }
45134
45135 @Override
45136 public int hashCode() {
45137 HashCodeBuilder builder = new HashCodeBuilder();
45138
45139 boolean present_success = true;
45140 builder.append(present_success);
45141 if (present_success)
45142 builder.append(success);
45143
45144 boolean present_io = true && (isSetIo());
45145 builder.append(present_io);
45146 if (present_io)
45147 builder.append(io);
45148
45149 return builder.toHashCode();
45150 }
45151
45152 public int compareTo(scannerOpenWithStop_result other) {
45153 if (!getClass().equals(other.getClass())) {
45154 return getClass().getName().compareTo(other.getClass().getName());
45155 }
45156
45157 int lastComparison = 0;
45158 scannerOpenWithStop_result typedOther = (scannerOpenWithStop_result)other;
45159
45160 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
45161 if (lastComparison != 0) {
45162 return lastComparison;
45163 }
45164 if (isSetSuccess()) {
45165 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
45166 if (lastComparison != 0) {
45167 return lastComparison;
45168 }
45169 }
45170 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
45171 if (lastComparison != 0) {
45172 return lastComparison;
45173 }
45174 if (isSetIo()) {
45175 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
45176 if (lastComparison != 0) {
45177 return lastComparison;
45178 }
45179 }
45180 return 0;
45181 }
45182
45183 public _Fields fieldForId(int fieldId) {
45184 return _Fields.findByThriftId(fieldId);
45185 }
45186
45187 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45188 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
45189 }
45190
45191 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45192 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
45193 }
45194
45195 @Override
45196 public String toString() {
45197 StringBuilder sb = new StringBuilder("scannerOpenWithStop_result(");
45198 boolean first = true;
45199
45200 sb.append("success:");
45201 sb.append(this.success);
45202 first = false;
45203 if (!first) sb.append(", ");
45204 sb.append("io:");
45205 if (this.io == null) {
45206 sb.append("null");
45207 } else {
45208 sb.append(this.io);
45209 }
45210 first = false;
45211 sb.append(")");
45212 return sb.toString();
45213 }
45214
45215 public void validate() throws org.apache.thrift.TException {
45216
45217
45218 }
45219
45220 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45221 try {
45222 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45223 } catch (org.apache.thrift.TException te) {
45224 throw new java.io.IOException(te);
45225 }
45226 }
45227
45228 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45229 try {
45230
45231 __isset_bitfield = 0;
45232 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45233 } catch (org.apache.thrift.TException te) {
45234 throw new java.io.IOException(te);
45235 }
45236 }
45237
45238 private static class scannerOpenWithStop_resultStandardSchemeFactory implements SchemeFactory {
45239 public scannerOpenWithStop_resultStandardScheme getScheme() {
45240 return new scannerOpenWithStop_resultStandardScheme();
45241 }
45242 }
45243
45244 private static class scannerOpenWithStop_resultStandardScheme extends StandardScheme<scannerOpenWithStop_result> {
45245
45246 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException {
45247 org.apache.thrift.protocol.TField schemeField;
45248 iprot.readStructBegin();
45249 while (true)
45250 {
45251 schemeField = iprot.readFieldBegin();
45252 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
45253 break;
45254 }
45255 switch (schemeField.id) {
45256 case 0:
45257 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
45258 struct.success = iprot.readI32();
45259 struct.setSuccessIsSet(true);
45260 } else {
45261 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45262 }
45263 break;
45264 case 1:
45265 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
45266 struct.io = new IOError();
45267 struct.io.read(iprot);
45268 struct.setIoIsSet(true);
45269 } else {
45270 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45271 }
45272 break;
45273 default:
45274 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
45275 }
45276 iprot.readFieldEnd();
45277 }
45278 iprot.readStructEnd();
45279
45280
45281 struct.validate();
45282 }
45283
45284 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException {
45285 struct.validate();
45286
45287 oprot.writeStructBegin(STRUCT_DESC);
45288 if (struct.isSetSuccess()) {
45289 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45290 oprot.writeI32(struct.success);
45291 oprot.writeFieldEnd();
45292 }
45293 if (struct.io != null) {
45294 oprot.writeFieldBegin(IO_FIELD_DESC);
45295 struct.io.write(oprot);
45296 oprot.writeFieldEnd();
45297 }
45298 oprot.writeFieldStop();
45299 oprot.writeStructEnd();
45300 }
45301
45302 }
45303
45304 private static class scannerOpenWithStop_resultTupleSchemeFactory implements SchemeFactory {
45305 public scannerOpenWithStop_resultTupleScheme getScheme() {
45306 return new scannerOpenWithStop_resultTupleScheme();
45307 }
45308 }
45309
45310 private static class scannerOpenWithStop_resultTupleScheme extends TupleScheme<scannerOpenWithStop_result> {
45311
45312 @Override
45313 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException {
45314 TTupleProtocol oprot = (TTupleProtocol) prot;
45315 BitSet optionals = new BitSet();
45316 if (struct.isSetSuccess()) {
45317 optionals.set(0);
45318 }
45319 if (struct.isSetIo()) {
45320 optionals.set(1);
45321 }
45322 oprot.writeBitSet(optionals, 2);
45323 if (struct.isSetSuccess()) {
45324 oprot.writeI32(struct.success);
45325 }
45326 if (struct.isSetIo()) {
45327 struct.io.write(oprot);
45328 }
45329 }
45330
45331 @Override
45332 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStop_result struct) throws org.apache.thrift.TException {
45333 TTupleProtocol iprot = (TTupleProtocol) prot;
45334 BitSet incoming = iprot.readBitSet(2);
45335 if (incoming.get(0)) {
45336 struct.success = iprot.readI32();
45337 struct.setSuccessIsSet(true);
45338 }
45339 if (incoming.get(1)) {
45340 struct.io = new IOError();
45341 struct.io.read(iprot);
45342 struct.setIoIsSet(true);
45343 }
45344 }
45345 }
45346
45347 }
45348
45349 public static class scannerOpenWithPrefix_args implements org.apache.thrift.TBase<scannerOpenWithPrefix_args, scannerOpenWithPrefix_args._Fields>, java.io.Serializable, Cloneable {
45350 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithPrefix_args");
45351
45352 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
45353 private static final org.apache.thrift.protocol.TField START_AND_PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("startAndPrefix", org.apache.thrift.protocol.TType.STRING, (short)2);
45354 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
45355 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)4);
45356
45357 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
45358 static {
45359 schemes.put(StandardScheme.class, new scannerOpenWithPrefix_argsStandardSchemeFactory());
45360 schemes.put(TupleScheme.class, new scannerOpenWithPrefix_argsTupleSchemeFactory());
45361 }
45362
45363
45364
45365
45366 public ByteBuffer tableName;
45367
45368
45369
45370 public ByteBuffer startAndPrefix;
45371
45372
45373
45374 public List<ByteBuffer> columns;
45375
45376
45377
45378 public Map<ByteBuffer,ByteBuffer> attributes;
45379
45380
45381 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45382
45383
45384
45385 TABLE_NAME((short)1, "tableName"),
45386
45387
45388
45389 START_AND_PREFIX((short)2, "startAndPrefix"),
45390
45391
45392
45393 COLUMNS((short)3, "columns"),
45394
45395
45396
45397 ATTRIBUTES((short)4, "attributes");
45398
45399 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45400
45401 static {
45402 for (_Fields field : EnumSet.allOf(_Fields.class)) {
45403 byName.put(field.getFieldName(), field);
45404 }
45405 }
45406
45407
45408
45409
45410 public static _Fields findByThriftId(int fieldId) {
45411 switch(fieldId) {
45412 case 1:
45413 return TABLE_NAME;
45414 case 2:
45415 return START_AND_PREFIX;
45416 case 3:
45417 return COLUMNS;
45418 case 4:
45419 return ATTRIBUTES;
45420 default:
45421 return null;
45422 }
45423 }
45424
45425
45426
45427
45428
45429 public static _Fields findByThriftIdOrThrow(int fieldId) {
45430 _Fields fields = findByThriftId(fieldId);
45431 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45432 return fields;
45433 }
45434
45435
45436
45437
45438 public static _Fields findByName(String name) {
45439 return byName.get(name);
45440 }
45441
45442 private final short _thriftId;
45443 private final String _fieldName;
45444
45445 _Fields(short thriftId, String fieldName) {
45446 _thriftId = thriftId;
45447 _fieldName = fieldName;
45448 }
45449
45450 public short getThriftFieldId() {
45451 return _thriftId;
45452 }
45453
45454 public String getFieldName() {
45455 return _fieldName;
45456 }
45457 }
45458
45459
45460 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45461 static {
45462 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45463 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
45464 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
45465 tmpMap.put(_Fields.START_AND_PREFIX, new org.apache.thrift.meta_data.FieldMetaData("startAndPrefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
45466 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
45467 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT,
45468 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
45469 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
45470 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
45471 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
45472 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
45473 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
45474 metaDataMap = Collections.unmodifiableMap(tmpMap);
45475 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithPrefix_args.class, metaDataMap);
45476 }
45477
45478 public scannerOpenWithPrefix_args() {
45479 }
45480
45481 public scannerOpenWithPrefix_args(
45482 ByteBuffer tableName,
45483 ByteBuffer startAndPrefix,
45484 List<ByteBuffer> columns,
45485 Map<ByteBuffer,ByteBuffer> attributes)
45486 {
45487 this();
45488 this.tableName = tableName;
45489 this.startAndPrefix = startAndPrefix;
45490 this.columns = columns;
45491 this.attributes = attributes;
45492 }
45493
45494
45495
45496
45497 public scannerOpenWithPrefix_args(scannerOpenWithPrefix_args other) {
45498 if (other.isSetTableName()) {
45499 this.tableName = other.tableName;
45500 }
45501 if (other.isSetStartAndPrefix()) {
45502 this.startAndPrefix = other.startAndPrefix;
45503 }
45504 if (other.isSetColumns()) {
45505 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
45506 for (ByteBuffer other_element : other.columns) {
45507 __this__columns.add(other_element);
45508 }
45509 this.columns = __this__columns;
45510 }
45511 if (other.isSetAttributes()) {
45512 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
45513 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
45514
45515 ByteBuffer other_element_key = other_element.getKey();
45516 ByteBuffer other_element_value = other_element.getValue();
45517
45518 ByteBuffer __this__attributes_copy_key = other_element_key;
45519
45520 ByteBuffer __this__attributes_copy_value = other_element_value;
45521
45522 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
45523 }
45524 this.attributes = __this__attributes;
45525 }
45526 }
45527
45528 public scannerOpenWithPrefix_args deepCopy() {
45529 return new scannerOpenWithPrefix_args(this);
45530 }
45531
45532 @Override
45533 public void clear() {
45534 this.tableName = null;
45535 this.startAndPrefix = null;
45536 this.columns = null;
45537 this.attributes = null;
45538 }
45539
45540
45541
45542
45543 public byte[] getTableName() {
45544 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
45545 return tableName == null ? null : tableName.array();
45546 }
45547
45548 public ByteBuffer bufferForTableName() {
45549 return tableName;
45550 }
45551
45552
45553
45554
45555 public scannerOpenWithPrefix_args setTableName(byte[] tableName) {
45556 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
45557 return this;
45558 }
45559
45560 public scannerOpenWithPrefix_args setTableName(ByteBuffer tableName) {
45561 this.tableName = tableName;
45562 return this;
45563 }
45564
45565 public void unsetTableName() {
45566 this.tableName = null;
45567 }
45568
45569
45570 public boolean isSetTableName() {
45571 return this.tableName != null;
45572 }
45573
45574 public void setTableNameIsSet(boolean value) {
45575 if (!value) {
45576 this.tableName = null;
45577 }
45578 }
45579
45580
45581
45582
45583 public byte[] getStartAndPrefix() {
45584 setStartAndPrefix(org.apache.thrift.TBaseHelper.rightSize(startAndPrefix));
45585 return startAndPrefix == null ? null : startAndPrefix.array();
45586 }
45587
45588 public ByteBuffer bufferForStartAndPrefix() {
45589 return startAndPrefix;
45590 }
45591
45592
45593
45594
45595 public scannerOpenWithPrefix_args setStartAndPrefix(byte[] startAndPrefix) {
45596 setStartAndPrefix(startAndPrefix == null ? (ByteBuffer)null : ByteBuffer.wrap(startAndPrefix));
45597 return this;
45598 }
45599
45600 public scannerOpenWithPrefix_args setStartAndPrefix(ByteBuffer startAndPrefix) {
45601 this.startAndPrefix = startAndPrefix;
45602 return this;
45603 }
45604
45605 public void unsetStartAndPrefix() {
45606 this.startAndPrefix = null;
45607 }
45608
45609
45610 public boolean isSetStartAndPrefix() {
45611 return this.startAndPrefix != null;
45612 }
45613
45614 public void setStartAndPrefixIsSet(boolean value) {
45615 if (!value) {
45616 this.startAndPrefix = null;
45617 }
45618 }
45619
45620 public int getColumnsSize() {
45621 return (this.columns == null) ? 0 : this.columns.size();
45622 }
45623
45624 public java.util.Iterator<ByteBuffer> getColumnsIterator() {
45625 return (this.columns == null) ? null : this.columns.iterator();
45626 }
45627
45628 public void addToColumns(ByteBuffer elem) {
45629 if (this.columns == null) {
45630 this.columns = new ArrayList<ByteBuffer>();
45631 }
45632 this.columns.add(elem);
45633 }
45634
45635
45636
45637
45638 public List<ByteBuffer> getColumns() {
45639 return this.columns;
45640 }
45641
45642
45643
45644
45645 public scannerOpenWithPrefix_args setColumns(List<ByteBuffer> columns) {
45646 this.columns = columns;
45647 return this;
45648 }
45649
45650 public void unsetColumns() {
45651 this.columns = null;
45652 }
45653
45654
45655 public boolean isSetColumns() {
45656 return this.columns != null;
45657 }
45658
45659 public void setColumnsIsSet(boolean value) {
45660 if (!value) {
45661 this.columns = null;
45662 }
45663 }
45664
45665 public int getAttributesSize() {
45666 return (this.attributes == null) ? 0 : this.attributes.size();
45667 }
45668
45669 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
45670 if (this.attributes == null) {
45671 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
45672 }
45673 this.attributes.put(key, val);
45674 }
45675
45676
45677
45678
45679 public Map<ByteBuffer,ByteBuffer> getAttributes() {
45680 return this.attributes;
45681 }
45682
45683
45684
45685
45686 public scannerOpenWithPrefix_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
45687 this.attributes = attributes;
45688 return this;
45689 }
45690
45691 public void unsetAttributes() {
45692 this.attributes = null;
45693 }
45694
45695
45696 public boolean isSetAttributes() {
45697 return this.attributes != null;
45698 }
45699
45700 public void setAttributesIsSet(boolean value) {
45701 if (!value) {
45702 this.attributes = null;
45703 }
45704 }
45705
45706 public void setFieldValue(_Fields field, Object value) {
45707 switch (field) {
45708 case TABLE_NAME:
45709 if (value == null) {
45710 unsetTableName();
45711 } else {
45712 setTableName((ByteBuffer)value);
45713 }
45714 break;
45715
45716 case START_AND_PREFIX:
45717 if (value == null) {
45718 unsetStartAndPrefix();
45719 } else {
45720 setStartAndPrefix((ByteBuffer)value);
45721 }
45722 break;
45723
45724 case COLUMNS:
45725 if (value == null) {
45726 unsetColumns();
45727 } else {
45728 setColumns((List<ByteBuffer>)value);
45729 }
45730 break;
45731
45732 case ATTRIBUTES:
45733 if (value == null) {
45734 unsetAttributes();
45735 } else {
45736 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
45737 }
45738 break;
45739
45740 }
45741 }
45742
45743 public Object getFieldValue(_Fields field) {
45744 switch (field) {
45745 case TABLE_NAME:
45746 return getTableName();
45747
45748 case START_AND_PREFIX:
45749 return getStartAndPrefix();
45750
45751 case COLUMNS:
45752 return getColumns();
45753
45754 case ATTRIBUTES:
45755 return getAttributes();
45756
45757 }
45758 throw new IllegalStateException();
45759 }
45760
45761
45762 public boolean isSet(_Fields field) {
45763 if (field == null) {
45764 throw new IllegalArgumentException();
45765 }
45766
45767 switch (field) {
45768 case TABLE_NAME:
45769 return isSetTableName();
45770 case START_AND_PREFIX:
45771 return isSetStartAndPrefix();
45772 case COLUMNS:
45773 return isSetColumns();
45774 case ATTRIBUTES:
45775 return isSetAttributes();
45776 }
45777 throw new IllegalStateException();
45778 }
45779
45780 @Override
45781 public boolean equals(Object that) {
45782 if (that == null)
45783 return false;
45784 if (that instanceof scannerOpenWithPrefix_args)
45785 return this.equals((scannerOpenWithPrefix_args)that);
45786 return false;
45787 }
45788
45789 public boolean equals(scannerOpenWithPrefix_args that) {
45790 if (that == null)
45791 return false;
45792
45793 boolean this_present_tableName = true && this.isSetTableName();
45794 boolean that_present_tableName = true && that.isSetTableName();
45795 if (this_present_tableName || that_present_tableName) {
45796 if (!(this_present_tableName && that_present_tableName))
45797 return false;
45798 if (!this.tableName.equals(that.tableName))
45799 return false;
45800 }
45801
45802 boolean this_present_startAndPrefix = true && this.isSetStartAndPrefix();
45803 boolean that_present_startAndPrefix = true && that.isSetStartAndPrefix();
45804 if (this_present_startAndPrefix || that_present_startAndPrefix) {
45805 if (!(this_present_startAndPrefix && that_present_startAndPrefix))
45806 return false;
45807 if (!this.startAndPrefix.equals(that.startAndPrefix))
45808 return false;
45809 }
45810
45811 boolean this_present_columns = true && this.isSetColumns();
45812 boolean that_present_columns = true && that.isSetColumns();
45813 if (this_present_columns || that_present_columns) {
45814 if (!(this_present_columns && that_present_columns))
45815 return false;
45816 if (!this.columns.equals(that.columns))
45817 return false;
45818 }
45819
45820 boolean this_present_attributes = true && this.isSetAttributes();
45821 boolean that_present_attributes = true && that.isSetAttributes();
45822 if (this_present_attributes || that_present_attributes) {
45823 if (!(this_present_attributes && that_present_attributes))
45824 return false;
45825 if (!this.attributes.equals(that.attributes))
45826 return false;
45827 }
45828
45829 return true;
45830 }
45831
45832 @Override
45833 public int hashCode() {
45834 HashCodeBuilder builder = new HashCodeBuilder();
45835
45836 boolean present_tableName = true && (isSetTableName());
45837 builder.append(present_tableName);
45838 if (present_tableName)
45839 builder.append(tableName);
45840
45841 boolean present_startAndPrefix = true && (isSetStartAndPrefix());
45842 builder.append(present_startAndPrefix);
45843 if (present_startAndPrefix)
45844 builder.append(startAndPrefix);
45845
45846 boolean present_columns = true && (isSetColumns());
45847 builder.append(present_columns);
45848 if (present_columns)
45849 builder.append(columns);
45850
45851 boolean present_attributes = true && (isSetAttributes());
45852 builder.append(present_attributes);
45853 if (present_attributes)
45854 builder.append(attributes);
45855
45856 return builder.toHashCode();
45857 }
45858
45859 public int compareTo(scannerOpenWithPrefix_args other) {
45860 if (!getClass().equals(other.getClass())) {
45861 return getClass().getName().compareTo(other.getClass().getName());
45862 }
45863
45864 int lastComparison = 0;
45865 scannerOpenWithPrefix_args typedOther = (scannerOpenWithPrefix_args)other;
45866
45867 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
45868 if (lastComparison != 0) {
45869 return lastComparison;
45870 }
45871 if (isSetTableName()) {
45872 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
45873 if (lastComparison != 0) {
45874 return lastComparison;
45875 }
45876 }
45877 lastComparison = Boolean.valueOf(isSetStartAndPrefix()).compareTo(typedOther.isSetStartAndPrefix());
45878 if (lastComparison != 0) {
45879 return lastComparison;
45880 }
45881 if (isSetStartAndPrefix()) {
45882 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startAndPrefix, typedOther.startAndPrefix);
45883 if (lastComparison != 0) {
45884 return lastComparison;
45885 }
45886 }
45887 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
45888 if (lastComparison != 0) {
45889 return lastComparison;
45890 }
45891 if (isSetColumns()) {
45892 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
45893 if (lastComparison != 0) {
45894 return lastComparison;
45895 }
45896 }
45897 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
45898 if (lastComparison != 0) {
45899 return lastComparison;
45900 }
45901 if (isSetAttributes()) {
45902 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
45903 if (lastComparison != 0) {
45904 return lastComparison;
45905 }
45906 }
45907 return 0;
45908 }
45909
45910 public _Fields fieldForId(int fieldId) {
45911 return _Fields.findByThriftId(fieldId);
45912 }
45913
45914 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45915 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
45916 }
45917
45918 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45919 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
45920 }
45921
45922 @Override
45923 public String toString() {
45924 StringBuilder sb = new StringBuilder("scannerOpenWithPrefix_args(");
45925 boolean first = true;
45926
45927 sb.append("tableName:");
45928 if (this.tableName == null) {
45929 sb.append("null");
45930 } else {
45931 sb.append(this.tableName);
45932 }
45933 first = false;
45934 if (!first) sb.append(", ");
45935 sb.append("startAndPrefix:");
45936 if (this.startAndPrefix == null) {
45937 sb.append("null");
45938 } else {
45939 sb.append(this.startAndPrefix);
45940 }
45941 first = false;
45942 if (!first) sb.append(", ");
45943 sb.append("columns:");
45944 if (this.columns == null) {
45945 sb.append("null");
45946 } else {
45947 sb.append(this.columns);
45948 }
45949 first = false;
45950 if (!first) sb.append(", ");
45951 sb.append("attributes:");
45952 if (this.attributes == null) {
45953 sb.append("null");
45954 } else {
45955 sb.append(this.attributes);
45956 }
45957 first = false;
45958 sb.append(")");
45959 return sb.toString();
45960 }
45961
45962 public void validate() throws org.apache.thrift.TException {
45963
45964
45965 }
45966
45967 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45968 try {
45969 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45970 } catch (org.apache.thrift.TException te) {
45971 throw new java.io.IOException(te);
45972 }
45973 }
45974
45975 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45976 try {
45977 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45978 } catch (org.apache.thrift.TException te) {
45979 throw new java.io.IOException(te);
45980 }
45981 }
45982
45983 private static class scannerOpenWithPrefix_argsStandardSchemeFactory implements SchemeFactory {
45984 public scannerOpenWithPrefix_argsStandardScheme getScheme() {
45985 return new scannerOpenWithPrefix_argsStandardScheme();
45986 }
45987 }
45988
45989 private static class scannerOpenWithPrefix_argsStandardScheme extends StandardScheme<scannerOpenWithPrefix_args> {
45990
45991 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException {
45992 org.apache.thrift.protocol.TField schemeField;
45993 iprot.readStructBegin();
45994 while (true)
45995 {
45996 schemeField = iprot.readFieldBegin();
45997 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
45998 break;
45999 }
46000 switch (schemeField.id) {
46001 case 1:
46002 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
46003 struct.tableName = iprot.readBinary();
46004 struct.setTableNameIsSet(true);
46005 } else {
46006 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46007 }
46008 break;
46009 case 2:
46010 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
46011 struct.startAndPrefix = iprot.readBinary();
46012 struct.setStartAndPrefixIsSet(true);
46013 } else {
46014 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46015 }
46016 break;
46017 case 3:
46018 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
46019 {
46020 org.apache.thrift.protocol.TList _list512 = iprot.readListBegin();
46021 struct.columns = new ArrayList<ByteBuffer>(_list512.size);
46022 for (int _i513 = 0; _i513 < _list512.size; ++_i513)
46023 {
46024 ByteBuffer _elem514;
46025 _elem514 = iprot.readBinary();
46026 struct.columns.add(_elem514);
46027 }
46028 iprot.readListEnd();
46029 }
46030 struct.setColumnsIsSet(true);
46031 } else {
46032 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46033 }
46034 break;
46035 case 4:
46036 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
46037 {
46038 org.apache.thrift.protocol.TMap _map515 = iprot.readMapBegin();
46039 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map515.size);
46040 for (int _i516 = 0; _i516 < _map515.size; ++_i516)
46041 {
46042 ByteBuffer _key517;
46043 ByteBuffer _val518;
46044 _key517 = iprot.readBinary();
46045 _val518 = iprot.readBinary();
46046 struct.attributes.put(_key517, _val518);
46047 }
46048 iprot.readMapEnd();
46049 }
46050 struct.setAttributesIsSet(true);
46051 } else {
46052 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46053 }
46054 break;
46055 default:
46056 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46057 }
46058 iprot.readFieldEnd();
46059 }
46060 iprot.readStructEnd();
46061
46062
46063 struct.validate();
46064 }
46065
46066 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException {
46067 struct.validate();
46068
46069 oprot.writeStructBegin(STRUCT_DESC);
46070 if (struct.tableName != null) {
46071 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
46072 oprot.writeBinary(struct.tableName);
46073 oprot.writeFieldEnd();
46074 }
46075 if (struct.startAndPrefix != null) {
46076 oprot.writeFieldBegin(START_AND_PREFIX_FIELD_DESC);
46077 oprot.writeBinary(struct.startAndPrefix);
46078 oprot.writeFieldEnd();
46079 }
46080 if (struct.columns != null) {
46081 oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
46082 {
46083 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
46084 for (ByteBuffer _iter519 : struct.columns)
46085 {
46086 oprot.writeBinary(_iter519);
46087 }
46088 oprot.writeListEnd();
46089 }
46090 oprot.writeFieldEnd();
46091 }
46092 if (struct.attributes != null) {
46093 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
46094 {
46095 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
46096 for (Map.Entry<ByteBuffer, ByteBuffer> _iter520 : struct.attributes.entrySet())
46097 {
46098 oprot.writeBinary(_iter520.getKey());
46099 oprot.writeBinary(_iter520.getValue());
46100 }
46101 oprot.writeMapEnd();
46102 }
46103 oprot.writeFieldEnd();
46104 }
46105 oprot.writeFieldStop();
46106 oprot.writeStructEnd();
46107 }
46108
46109 }
46110
46111 private static class scannerOpenWithPrefix_argsTupleSchemeFactory implements SchemeFactory {
46112 public scannerOpenWithPrefix_argsTupleScheme getScheme() {
46113 return new scannerOpenWithPrefix_argsTupleScheme();
46114 }
46115 }
46116
46117 private static class scannerOpenWithPrefix_argsTupleScheme extends TupleScheme<scannerOpenWithPrefix_args> {
46118
46119 @Override
46120 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException {
46121 TTupleProtocol oprot = (TTupleProtocol) prot;
46122 BitSet optionals = new BitSet();
46123 if (struct.isSetTableName()) {
46124 optionals.set(0);
46125 }
46126 if (struct.isSetStartAndPrefix()) {
46127 optionals.set(1);
46128 }
46129 if (struct.isSetColumns()) {
46130 optionals.set(2);
46131 }
46132 if (struct.isSetAttributes()) {
46133 optionals.set(3);
46134 }
46135 oprot.writeBitSet(optionals, 4);
46136 if (struct.isSetTableName()) {
46137 oprot.writeBinary(struct.tableName);
46138 }
46139 if (struct.isSetStartAndPrefix()) {
46140 oprot.writeBinary(struct.startAndPrefix);
46141 }
46142 if (struct.isSetColumns()) {
46143 {
46144 oprot.writeI32(struct.columns.size());
46145 for (ByteBuffer _iter521 : struct.columns)
46146 {
46147 oprot.writeBinary(_iter521);
46148 }
46149 }
46150 }
46151 if (struct.isSetAttributes()) {
46152 {
46153 oprot.writeI32(struct.attributes.size());
46154 for (Map.Entry<ByteBuffer, ByteBuffer> _iter522 : struct.attributes.entrySet())
46155 {
46156 oprot.writeBinary(_iter522.getKey());
46157 oprot.writeBinary(_iter522.getValue());
46158 }
46159 }
46160 }
46161 }
46162
46163 @Override
46164 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_args struct) throws org.apache.thrift.TException {
46165 TTupleProtocol iprot = (TTupleProtocol) prot;
46166 BitSet incoming = iprot.readBitSet(4);
46167 if (incoming.get(0)) {
46168 struct.tableName = iprot.readBinary();
46169 struct.setTableNameIsSet(true);
46170 }
46171 if (incoming.get(1)) {
46172 struct.startAndPrefix = iprot.readBinary();
46173 struct.setStartAndPrefixIsSet(true);
46174 }
46175 if (incoming.get(2)) {
46176 {
46177 org.apache.thrift.protocol.TList _list523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
46178 struct.columns = new ArrayList<ByteBuffer>(_list523.size);
46179 for (int _i524 = 0; _i524 < _list523.size; ++_i524)
46180 {
46181 ByteBuffer _elem525;
46182 _elem525 = iprot.readBinary();
46183 struct.columns.add(_elem525);
46184 }
46185 }
46186 struct.setColumnsIsSet(true);
46187 }
46188 if (incoming.get(3)) {
46189 {
46190 org.apache.thrift.protocol.TMap _map526 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
46191 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map526.size);
46192 for (int _i527 = 0; _i527 < _map526.size; ++_i527)
46193 {
46194 ByteBuffer _key528;
46195 ByteBuffer _val529;
46196 _key528 = iprot.readBinary();
46197 _val529 = iprot.readBinary();
46198 struct.attributes.put(_key528, _val529);
46199 }
46200 }
46201 struct.setAttributesIsSet(true);
46202 }
46203 }
46204 }
46205
46206 }
46207
46208 public static class scannerOpenWithPrefix_result implements org.apache.thrift.TBase<scannerOpenWithPrefix_result, scannerOpenWithPrefix_result._Fields>, java.io.Serializable, Cloneable {
46209 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithPrefix_result");
46210
46211 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
46212 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
46213
46214 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
46215 static {
46216 schemes.put(StandardScheme.class, new scannerOpenWithPrefix_resultStandardSchemeFactory());
46217 schemes.put(TupleScheme.class, new scannerOpenWithPrefix_resultTupleSchemeFactory());
46218 }
46219
46220 public int success;
46221 public IOError io;
46222
46223
46224 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46225 SUCCESS((short)0, "success"),
46226 IO((short)1, "io");
46227
46228 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46229
46230 static {
46231 for (_Fields field : EnumSet.allOf(_Fields.class)) {
46232 byName.put(field.getFieldName(), field);
46233 }
46234 }
46235
46236
46237
46238
46239 public static _Fields findByThriftId(int fieldId) {
46240 switch(fieldId) {
46241 case 0:
46242 return SUCCESS;
46243 case 1:
46244 return IO;
46245 default:
46246 return null;
46247 }
46248 }
46249
46250
46251
46252
46253
46254 public static _Fields findByThriftIdOrThrow(int fieldId) {
46255 _Fields fields = findByThriftId(fieldId);
46256 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46257 return fields;
46258 }
46259
46260
46261
46262
46263 public static _Fields findByName(String name) {
46264 return byName.get(name);
46265 }
46266
46267 private final short _thriftId;
46268 private final String _fieldName;
46269
46270 _Fields(short thriftId, String fieldName) {
46271 _thriftId = thriftId;
46272 _fieldName = fieldName;
46273 }
46274
46275 public short getThriftFieldId() {
46276 return _thriftId;
46277 }
46278
46279 public String getFieldName() {
46280 return _fieldName;
46281 }
46282 }
46283
46284
46285 private static final int __SUCCESS_ISSET_ID = 0;
46286 private byte __isset_bitfield = 0;
46287 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46288 static {
46289 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46290 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
46291 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID")));
46292 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
46293 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
46294 metaDataMap = Collections.unmodifiableMap(tmpMap);
46295 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithPrefix_result.class, metaDataMap);
46296 }
46297
46298 public scannerOpenWithPrefix_result() {
46299 }
46300
46301 public scannerOpenWithPrefix_result(
46302 int success,
46303 IOError io)
46304 {
46305 this();
46306 this.success = success;
46307 setSuccessIsSet(true);
46308 this.io = io;
46309 }
46310
46311
46312
46313
46314 public scannerOpenWithPrefix_result(scannerOpenWithPrefix_result other) {
46315 __isset_bitfield = other.__isset_bitfield;
46316 this.success = other.success;
46317 if (other.isSetIo()) {
46318 this.io = new IOError(other.io);
46319 }
46320 }
46321
46322 public scannerOpenWithPrefix_result deepCopy() {
46323 return new scannerOpenWithPrefix_result(this);
46324 }
46325
46326 @Override
46327 public void clear() {
46328 setSuccessIsSet(false);
46329 this.success = 0;
46330 this.io = null;
46331 }
46332
46333 public int getSuccess() {
46334 return this.success;
46335 }
46336
46337 public scannerOpenWithPrefix_result setSuccess(int success) {
46338 this.success = success;
46339 setSuccessIsSet(true);
46340 return this;
46341 }
46342
46343 public void unsetSuccess() {
46344 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
46345 }
46346
46347
46348 public boolean isSetSuccess() {
46349 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
46350 }
46351
46352 public void setSuccessIsSet(boolean value) {
46353 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
46354 }
46355
46356 public IOError getIo() {
46357 return this.io;
46358 }
46359
46360 public scannerOpenWithPrefix_result setIo(IOError io) {
46361 this.io = io;
46362 return this;
46363 }
46364
46365 public void unsetIo() {
46366 this.io = null;
46367 }
46368
46369
46370 public boolean isSetIo() {
46371 return this.io != null;
46372 }
46373
46374 public void setIoIsSet(boolean value) {
46375 if (!value) {
46376 this.io = null;
46377 }
46378 }
46379
46380 public void setFieldValue(_Fields field, Object value) {
46381 switch (field) {
46382 case SUCCESS:
46383 if (value == null) {
46384 unsetSuccess();
46385 } else {
46386 setSuccess((Integer)value);
46387 }
46388 break;
46389
46390 case IO:
46391 if (value == null) {
46392 unsetIo();
46393 } else {
46394 setIo((IOError)value);
46395 }
46396 break;
46397
46398 }
46399 }
46400
46401 public Object getFieldValue(_Fields field) {
46402 switch (field) {
46403 case SUCCESS:
46404 return Integer.valueOf(getSuccess());
46405
46406 case IO:
46407 return getIo();
46408
46409 }
46410 throw new IllegalStateException();
46411 }
46412
46413
46414 public boolean isSet(_Fields field) {
46415 if (field == null) {
46416 throw new IllegalArgumentException();
46417 }
46418
46419 switch (field) {
46420 case SUCCESS:
46421 return isSetSuccess();
46422 case IO:
46423 return isSetIo();
46424 }
46425 throw new IllegalStateException();
46426 }
46427
46428 @Override
46429 public boolean equals(Object that) {
46430 if (that == null)
46431 return false;
46432 if (that instanceof scannerOpenWithPrefix_result)
46433 return this.equals((scannerOpenWithPrefix_result)that);
46434 return false;
46435 }
46436
46437 public boolean equals(scannerOpenWithPrefix_result that) {
46438 if (that == null)
46439 return false;
46440
46441 boolean this_present_success = true;
46442 boolean that_present_success = true;
46443 if (this_present_success || that_present_success) {
46444 if (!(this_present_success && that_present_success))
46445 return false;
46446 if (this.success != that.success)
46447 return false;
46448 }
46449
46450 boolean this_present_io = true && this.isSetIo();
46451 boolean that_present_io = true && that.isSetIo();
46452 if (this_present_io || that_present_io) {
46453 if (!(this_present_io && that_present_io))
46454 return false;
46455 if (!this.io.equals(that.io))
46456 return false;
46457 }
46458
46459 return true;
46460 }
46461
46462 @Override
46463 public int hashCode() {
46464 HashCodeBuilder builder = new HashCodeBuilder();
46465
46466 boolean present_success = true;
46467 builder.append(present_success);
46468 if (present_success)
46469 builder.append(success);
46470
46471 boolean present_io = true && (isSetIo());
46472 builder.append(present_io);
46473 if (present_io)
46474 builder.append(io);
46475
46476 return builder.toHashCode();
46477 }
46478
46479 public int compareTo(scannerOpenWithPrefix_result other) {
46480 if (!getClass().equals(other.getClass())) {
46481 return getClass().getName().compareTo(other.getClass().getName());
46482 }
46483
46484 int lastComparison = 0;
46485 scannerOpenWithPrefix_result typedOther = (scannerOpenWithPrefix_result)other;
46486
46487 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
46488 if (lastComparison != 0) {
46489 return lastComparison;
46490 }
46491 if (isSetSuccess()) {
46492 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46493 if (lastComparison != 0) {
46494 return lastComparison;
46495 }
46496 }
46497 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
46498 if (lastComparison != 0) {
46499 return lastComparison;
46500 }
46501 if (isSetIo()) {
46502 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
46503 if (lastComparison != 0) {
46504 return lastComparison;
46505 }
46506 }
46507 return 0;
46508 }
46509
46510 public _Fields fieldForId(int fieldId) {
46511 return _Fields.findByThriftId(fieldId);
46512 }
46513
46514 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46515 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
46516 }
46517
46518 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46519 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
46520 }
46521
46522 @Override
46523 public String toString() {
46524 StringBuilder sb = new StringBuilder("scannerOpenWithPrefix_result(");
46525 boolean first = true;
46526
46527 sb.append("success:");
46528 sb.append(this.success);
46529 first = false;
46530 if (!first) sb.append(", ");
46531 sb.append("io:");
46532 if (this.io == null) {
46533 sb.append("null");
46534 } else {
46535 sb.append(this.io);
46536 }
46537 first = false;
46538 sb.append(")");
46539 return sb.toString();
46540 }
46541
46542 public void validate() throws org.apache.thrift.TException {
46543
46544
46545 }
46546
46547 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46548 try {
46549 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46550 } catch (org.apache.thrift.TException te) {
46551 throw new java.io.IOException(te);
46552 }
46553 }
46554
46555 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46556 try {
46557
46558 __isset_bitfield = 0;
46559 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46560 } catch (org.apache.thrift.TException te) {
46561 throw new java.io.IOException(te);
46562 }
46563 }
46564
46565 private static class scannerOpenWithPrefix_resultStandardSchemeFactory implements SchemeFactory {
46566 public scannerOpenWithPrefix_resultStandardScheme getScheme() {
46567 return new scannerOpenWithPrefix_resultStandardScheme();
46568 }
46569 }
46570
46571 private static class scannerOpenWithPrefix_resultStandardScheme extends StandardScheme<scannerOpenWithPrefix_result> {
46572
46573 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException {
46574 org.apache.thrift.protocol.TField schemeField;
46575 iprot.readStructBegin();
46576 while (true)
46577 {
46578 schemeField = iprot.readFieldBegin();
46579 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
46580 break;
46581 }
46582 switch (schemeField.id) {
46583 case 0:
46584 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
46585 struct.success = iprot.readI32();
46586 struct.setSuccessIsSet(true);
46587 } else {
46588 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46589 }
46590 break;
46591 case 1:
46592 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
46593 struct.io = new IOError();
46594 struct.io.read(iprot);
46595 struct.setIoIsSet(true);
46596 } else {
46597 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46598 }
46599 break;
46600 default:
46601 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
46602 }
46603 iprot.readFieldEnd();
46604 }
46605 iprot.readStructEnd();
46606
46607
46608 struct.validate();
46609 }
46610
46611 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException {
46612 struct.validate();
46613
46614 oprot.writeStructBegin(STRUCT_DESC);
46615 if (struct.isSetSuccess()) {
46616 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46617 oprot.writeI32(struct.success);
46618 oprot.writeFieldEnd();
46619 }
46620 if (struct.io != null) {
46621 oprot.writeFieldBegin(IO_FIELD_DESC);
46622 struct.io.write(oprot);
46623 oprot.writeFieldEnd();
46624 }
46625 oprot.writeFieldStop();
46626 oprot.writeStructEnd();
46627 }
46628
46629 }
46630
46631 private static class scannerOpenWithPrefix_resultTupleSchemeFactory implements SchemeFactory {
46632 public scannerOpenWithPrefix_resultTupleScheme getScheme() {
46633 return new scannerOpenWithPrefix_resultTupleScheme();
46634 }
46635 }
46636
46637 private static class scannerOpenWithPrefix_resultTupleScheme extends TupleScheme<scannerOpenWithPrefix_result> {
46638
46639 @Override
46640 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException {
46641 TTupleProtocol oprot = (TTupleProtocol) prot;
46642 BitSet optionals = new BitSet();
46643 if (struct.isSetSuccess()) {
46644 optionals.set(0);
46645 }
46646 if (struct.isSetIo()) {
46647 optionals.set(1);
46648 }
46649 oprot.writeBitSet(optionals, 2);
46650 if (struct.isSetSuccess()) {
46651 oprot.writeI32(struct.success);
46652 }
46653 if (struct.isSetIo()) {
46654 struct.io.write(oprot);
46655 }
46656 }
46657
46658 @Override
46659 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithPrefix_result struct) throws org.apache.thrift.TException {
46660 TTupleProtocol iprot = (TTupleProtocol) prot;
46661 BitSet incoming = iprot.readBitSet(2);
46662 if (incoming.get(0)) {
46663 struct.success = iprot.readI32();
46664 struct.setSuccessIsSet(true);
46665 }
46666 if (incoming.get(1)) {
46667 struct.io = new IOError();
46668 struct.io.read(iprot);
46669 struct.setIoIsSet(true);
46670 }
46671 }
46672 }
46673
46674 }
46675
46676 public static class scannerOpenTs_args implements org.apache.thrift.TBase<scannerOpenTs_args, scannerOpenTs_args._Fields>, java.io.Serializable, Cloneable {
46677 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenTs_args");
46678
46679 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
46680 private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2);
46681 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)3);
46682 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);
46683 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)5);
46684
46685 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
46686 static {
46687 schemes.put(StandardScheme.class, new scannerOpenTs_argsStandardSchemeFactory());
46688 schemes.put(TupleScheme.class, new scannerOpenTs_argsTupleSchemeFactory());
46689 }
46690
46691
46692
46693
46694 public ByteBuffer tableName;
46695
46696
46697
46698
46699 public ByteBuffer startRow;
46700
46701
46702
46703
46704
46705 public List<ByteBuffer> columns;
46706
46707
46708
46709 public long timestamp;
46710
46711
46712
46713 public Map<ByteBuffer,ByteBuffer> attributes;
46714
46715
46716 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46717
46718
46719
46720 TABLE_NAME((short)1, "tableName"),
46721
46722
46723
46724
46725 START_ROW((short)2, "startRow"),
46726
46727
46728
46729
46730
46731 COLUMNS((short)3, "columns"),
46732
46733
46734
46735 TIMESTAMP((short)4, "timestamp"),
46736
46737
46738
46739 ATTRIBUTES((short)5, "attributes");
46740
46741 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46742
46743 static {
46744 for (_Fields field : EnumSet.allOf(_Fields.class)) {
46745 byName.put(field.getFieldName(), field);
46746 }
46747 }
46748
46749
46750
46751
46752 public static _Fields findByThriftId(int fieldId) {
46753 switch(fieldId) {
46754 case 1:
46755 return TABLE_NAME;
46756 case 2:
46757 return START_ROW;
46758 case 3:
46759 return COLUMNS;
46760 case 4:
46761 return TIMESTAMP;
46762 case 5:
46763 return ATTRIBUTES;
46764 default:
46765 return null;
46766 }
46767 }
46768
46769
46770
46771
46772
46773 public static _Fields findByThriftIdOrThrow(int fieldId) {
46774 _Fields fields = findByThriftId(fieldId);
46775 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46776 return fields;
46777 }
46778
46779
46780
46781
46782 public static _Fields findByName(String name) {
46783 return byName.get(name);
46784 }
46785
46786 private final short _thriftId;
46787 private final String _fieldName;
46788
46789 _Fields(short thriftId, String fieldName) {
46790 _thriftId = thriftId;
46791 _fieldName = fieldName;
46792 }
46793
46794 public short getThriftFieldId() {
46795 return _thriftId;
46796 }
46797
46798 public String getFieldName() {
46799 return _fieldName;
46800 }
46801 }
46802
46803
46804 private static final int __TIMESTAMP_ISSET_ID = 0;
46805 private byte __isset_bitfield = 0;
46806 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46807 static {
46808 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46809 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
46810 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
46811 tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT,
46812 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
46813 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT,
46814 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
46815 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
46816 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
46817 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46818 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
46819 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
46820 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
46821 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
46822 metaDataMap = Collections.unmodifiableMap(tmpMap);
46823 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenTs_args.class, metaDataMap);
46824 }
46825
46826 public scannerOpenTs_args() {
46827 }
46828
46829 public scannerOpenTs_args(
46830 ByteBuffer tableName,
46831 ByteBuffer startRow,
46832 List<ByteBuffer> columns,
46833 long timestamp,
46834 Map<ByteBuffer,ByteBuffer> attributes)
46835 {
46836 this();
46837 this.tableName = tableName;
46838 this.startRow = startRow;
46839 this.columns = columns;
46840 this.timestamp = timestamp;
46841 setTimestampIsSet(true);
46842 this.attributes = attributes;
46843 }
46844
46845
46846
46847
46848 public scannerOpenTs_args(scannerOpenTs_args other) {
46849 __isset_bitfield = other.__isset_bitfield;
46850 if (other.isSetTableName()) {
46851 this.tableName = other.tableName;
46852 }
46853 if (other.isSetStartRow()) {
46854 this.startRow = other.startRow;
46855 }
46856 if (other.isSetColumns()) {
46857 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
46858 for (ByteBuffer other_element : other.columns) {
46859 __this__columns.add(other_element);
46860 }
46861 this.columns = __this__columns;
46862 }
46863 this.timestamp = other.timestamp;
46864 if (other.isSetAttributes()) {
46865 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
46866 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
46867
46868 ByteBuffer other_element_key = other_element.getKey();
46869 ByteBuffer other_element_value = other_element.getValue();
46870
46871 ByteBuffer __this__attributes_copy_key = other_element_key;
46872
46873 ByteBuffer __this__attributes_copy_value = other_element_value;
46874
46875 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
46876 }
46877 this.attributes = __this__attributes;
46878 }
46879 }
46880
46881 public scannerOpenTs_args deepCopy() {
46882 return new scannerOpenTs_args(this);
46883 }
46884
46885 @Override
46886 public void clear() {
46887 this.tableName = null;
46888 this.startRow = null;
46889 this.columns = null;
46890 setTimestampIsSet(false);
46891 this.timestamp = 0;
46892 this.attributes = null;
46893 }
46894
46895
46896
46897
46898 public byte[] getTableName() {
46899 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
46900 return tableName == null ? null : tableName.array();
46901 }
46902
46903 public ByteBuffer bufferForTableName() {
46904 return tableName;
46905 }
46906
46907
46908
46909
46910 public scannerOpenTs_args setTableName(byte[] tableName) {
46911 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
46912 return this;
46913 }
46914
46915 public scannerOpenTs_args setTableName(ByteBuffer tableName) {
46916 this.tableName = tableName;
46917 return this;
46918 }
46919
46920 public void unsetTableName() {
46921 this.tableName = null;
46922 }
46923
46924
46925 public boolean isSetTableName() {
46926 return this.tableName != null;
46927 }
46928
46929 public void setTableNameIsSet(boolean value) {
46930 if (!value) {
46931 this.tableName = null;
46932 }
46933 }
46934
46935
46936
46937
46938
46939 public byte[] getStartRow() {
46940 setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow));
46941 return startRow == null ? null : startRow.array();
46942 }
46943
46944 public ByteBuffer bufferForStartRow() {
46945 return startRow;
46946 }
46947
46948
46949
46950
46951
46952 public scannerOpenTs_args setStartRow(byte[] startRow) {
46953 setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow));
46954 return this;
46955 }
46956
46957 public scannerOpenTs_args setStartRow(ByteBuffer startRow) {
46958 this.startRow = startRow;
46959 return this;
46960 }
46961
46962 public void unsetStartRow() {
46963 this.startRow = null;
46964 }
46965
46966
46967 public boolean isSetStartRow() {
46968 return this.startRow != null;
46969 }
46970
46971 public void setStartRowIsSet(boolean value) {
46972 if (!value) {
46973 this.startRow = null;
46974 }
46975 }
46976
46977 public int getColumnsSize() {
46978 return (this.columns == null) ? 0 : this.columns.size();
46979 }
46980
46981 public java.util.Iterator<ByteBuffer> getColumnsIterator() {
46982 return (this.columns == null) ? null : this.columns.iterator();
46983 }
46984
46985 public void addToColumns(ByteBuffer elem) {
46986 if (this.columns == null) {
46987 this.columns = new ArrayList<ByteBuffer>();
46988 }
46989 this.columns.add(elem);
46990 }
46991
46992
46993
46994
46995
46996
46997 public List<ByteBuffer> getColumns() {
46998 return this.columns;
46999 }
47000
47001
47002
47003
47004
47005
47006 public scannerOpenTs_args setColumns(List<ByteBuffer> columns) {
47007 this.columns = columns;
47008 return this;
47009 }
47010
47011 public void unsetColumns() {
47012 this.columns = null;
47013 }
47014
47015
47016 public boolean isSetColumns() {
47017 return this.columns != null;
47018 }
47019
47020 public void setColumnsIsSet(boolean value) {
47021 if (!value) {
47022 this.columns = null;
47023 }
47024 }
47025
47026
47027
47028
47029 public long getTimestamp() {
47030 return this.timestamp;
47031 }
47032
47033
47034
47035
47036 public scannerOpenTs_args setTimestamp(long timestamp) {
47037 this.timestamp = timestamp;
47038 setTimestampIsSet(true);
47039 return this;
47040 }
47041
47042 public void unsetTimestamp() {
47043 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
47044 }
47045
47046
47047 public boolean isSetTimestamp() {
47048 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
47049 }
47050
47051 public void setTimestampIsSet(boolean value) {
47052 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
47053 }
47054
47055 public int getAttributesSize() {
47056 return (this.attributes == null) ? 0 : this.attributes.size();
47057 }
47058
47059 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
47060 if (this.attributes == null) {
47061 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
47062 }
47063 this.attributes.put(key, val);
47064 }
47065
47066
47067
47068
47069 public Map<ByteBuffer,ByteBuffer> getAttributes() {
47070 return this.attributes;
47071 }
47072
47073
47074
47075
47076 public scannerOpenTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
47077 this.attributes = attributes;
47078 return this;
47079 }
47080
47081 public void unsetAttributes() {
47082 this.attributes = null;
47083 }
47084
47085
47086 public boolean isSetAttributes() {
47087 return this.attributes != null;
47088 }
47089
47090 public void setAttributesIsSet(boolean value) {
47091 if (!value) {
47092 this.attributes = null;
47093 }
47094 }
47095
47096 public void setFieldValue(_Fields field, Object value) {
47097 switch (field) {
47098 case TABLE_NAME:
47099 if (value == null) {
47100 unsetTableName();
47101 } else {
47102 setTableName((ByteBuffer)value);
47103 }
47104 break;
47105
47106 case START_ROW:
47107 if (value == null) {
47108 unsetStartRow();
47109 } else {
47110 setStartRow((ByteBuffer)value);
47111 }
47112 break;
47113
47114 case COLUMNS:
47115 if (value == null) {
47116 unsetColumns();
47117 } else {
47118 setColumns((List<ByteBuffer>)value);
47119 }
47120 break;
47121
47122 case TIMESTAMP:
47123 if (value == null) {
47124 unsetTimestamp();
47125 } else {
47126 setTimestamp((Long)value);
47127 }
47128 break;
47129
47130 case ATTRIBUTES:
47131 if (value == null) {
47132 unsetAttributes();
47133 } else {
47134 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
47135 }
47136 break;
47137
47138 }
47139 }
47140
47141 public Object getFieldValue(_Fields field) {
47142 switch (field) {
47143 case TABLE_NAME:
47144 return getTableName();
47145
47146 case START_ROW:
47147 return getStartRow();
47148
47149 case COLUMNS:
47150 return getColumns();
47151
47152 case TIMESTAMP:
47153 return Long.valueOf(getTimestamp());
47154
47155 case ATTRIBUTES:
47156 return getAttributes();
47157
47158 }
47159 throw new IllegalStateException();
47160 }
47161
47162
47163 public boolean isSet(_Fields field) {
47164 if (field == null) {
47165 throw new IllegalArgumentException();
47166 }
47167
47168 switch (field) {
47169 case TABLE_NAME:
47170 return isSetTableName();
47171 case START_ROW:
47172 return isSetStartRow();
47173 case COLUMNS:
47174 return isSetColumns();
47175 case TIMESTAMP:
47176 return isSetTimestamp();
47177 case ATTRIBUTES:
47178 return isSetAttributes();
47179 }
47180 throw new IllegalStateException();
47181 }
47182
47183 @Override
47184 public boolean equals(Object that) {
47185 if (that == null)
47186 return false;
47187 if (that instanceof scannerOpenTs_args)
47188 return this.equals((scannerOpenTs_args)that);
47189 return false;
47190 }
47191
47192 public boolean equals(scannerOpenTs_args that) {
47193 if (that == null)
47194 return false;
47195
47196 boolean this_present_tableName = true && this.isSetTableName();
47197 boolean that_present_tableName = true && that.isSetTableName();
47198 if (this_present_tableName || that_present_tableName) {
47199 if (!(this_present_tableName && that_present_tableName))
47200 return false;
47201 if (!this.tableName.equals(that.tableName))
47202 return false;
47203 }
47204
47205 boolean this_present_startRow = true && this.isSetStartRow();
47206 boolean that_present_startRow = true && that.isSetStartRow();
47207 if (this_present_startRow || that_present_startRow) {
47208 if (!(this_present_startRow && that_present_startRow))
47209 return false;
47210 if (!this.startRow.equals(that.startRow))
47211 return false;
47212 }
47213
47214 boolean this_present_columns = true && this.isSetColumns();
47215 boolean that_present_columns = true && that.isSetColumns();
47216 if (this_present_columns || that_present_columns) {
47217 if (!(this_present_columns && that_present_columns))
47218 return false;
47219 if (!this.columns.equals(that.columns))
47220 return false;
47221 }
47222
47223 boolean this_present_timestamp = true;
47224 boolean that_present_timestamp = true;
47225 if (this_present_timestamp || that_present_timestamp) {
47226 if (!(this_present_timestamp && that_present_timestamp))
47227 return false;
47228 if (this.timestamp != that.timestamp)
47229 return false;
47230 }
47231
47232 boolean this_present_attributes = true && this.isSetAttributes();
47233 boolean that_present_attributes = true && that.isSetAttributes();
47234 if (this_present_attributes || that_present_attributes) {
47235 if (!(this_present_attributes && that_present_attributes))
47236 return false;
47237 if (!this.attributes.equals(that.attributes))
47238 return false;
47239 }
47240
47241 return true;
47242 }
47243
47244 @Override
47245 public int hashCode() {
47246 HashCodeBuilder builder = new HashCodeBuilder();
47247
47248 boolean present_tableName = true && (isSetTableName());
47249 builder.append(present_tableName);
47250 if (present_tableName)
47251 builder.append(tableName);
47252
47253 boolean present_startRow = true && (isSetStartRow());
47254 builder.append(present_startRow);
47255 if (present_startRow)
47256 builder.append(startRow);
47257
47258 boolean present_columns = true && (isSetColumns());
47259 builder.append(present_columns);
47260 if (present_columns)
47261 builder.append(columns);
47262
47263 boolean present_timestamp = true;
47264 builder.append(present_timestamp);
47265 if (present_timestamp)
47266 builder.append(timestamp);
47267
47268 boolean present_attributes = true && (isSetAttributes());
47269 builder.append(present_attributes);
47270 if (present_attributes)
47271 builder.append(attributes);
47272
47273 return builder.toHashCode();
47274 }
47275
47276 public int compareTo(scannerOpenTs_args other) {
47277 if (!getClass().equals(other.getClass())) {
47278 return getClass().getName().compareTo(other.getClass().getName());
47279 }
47280
47281 int lastComparison = 0;
47282 scannerOpenTs_args typedOther = (scannerOpenTs_args)other;
47283
47284 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
47285 if (lastComparison != 0) {
47286 return lastComparison;
47287 }
47288 if (isSetTableName()) {
47289 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
47290 if (lastComparison != 0) {
47291 return lastComparison;
47292 }
47293 }
47294 lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow());
47295 if (lastComparison != 0) {
47296 return lastComparison;
47297 }
47298 if (isSetStartRow()) {
47299 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow);
47300 if (lastComparison != 0) {
47301 return lastComparison;
47302 }
47303 }
47304 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
47305 if (lastComparison != 0) {
47306 return lastComparison;
47307 }
47308 if (isSetColumns()) {
47309 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
47310 if (lastComparison != 0) {
47311 return lastComparison;
47312 }
47313 }
47314 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
47315 if (lastComparison != 0) {
47316 return lastComparison;
47317 }
47318 if (isSetTimestamp()) {
47319 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
47320 if (lastComparison != 0) {
47321 return lastComparison;
47322 }
47323 }
47324 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
47325 if (lastComparison != 0) {
47326 return lastComparison;
47327 }
47328 if (isSetAttributes()) {
47329 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
47330 if (lastComparison != 0) {
47331 return lastComparison;
47332 }
47333 }
47334 return 0;
47335 }
47336
47337 public _Fields fieldForId(int fieldId) {
47338 return _Fields.findByThriftId(fieldId);
47339 }
47340
47341 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47342 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
47343 }
47344
47345 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47346 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
47347 }
47348
47349 @Override
47350 public String toString() {
47351 StringBuilder sb = new StringBuilder("scannerOpenTs_args(");
47352 boolean first = true;
47353
47354 sb.append("tableName:");
47355 if (this.tableName == null) {
47356 sb.append("null");
47357 } else {
47358 sb.append(this.tableName);
47359 }
47360 first = false;
47361 if (!first) sb.append(", ");
47362 sb.append("startRow:");
47363 if (this.startRow == null) {
47364 sb.append("null");
47365 } else {
47366 sb.append(this.startRow);
47367 }
47368 first = false;
47369 if (!first) sb.append(", ");
47370 sb.append("columns:");
47371 if (this.columns == null) {
47372 sb.append("null");
47373 } else {
47374 sb.append(this.columns);
47375 }
47376 first = false;
47377 if (!first) sb.append(", ");
47378 sb.append("timestamp:");
47379 sb.append(this.timestamp);
47380 first = false;
47381 if (!first) sb.append(", ");
47382 sb.append("attributes:");
47383 if (this.attributes == null) {
47384 sb.append("null");
47385 } else {
47386 sb.append(this.attributes);
47387 }
47388 first = false;
47389 sb.append(")");
47390 return sb.toString();
47391 }
47392
47393 public void validate() throws org.apache.thrift.TException {
47394
47395
47396 }
47397
47398 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47399 try {
47400 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47401 } catch (org.apache.thrift.TException te) {
47402 throw new java.io.IOException(te);
47403 }
47404 }
47405
47406 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47407 try {
47408
47409 __isset_bitfield = 0;
47410 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47411 } catch (org.apache.thrift.TException te) {
47412 throw new java.io.IOException(te);
47413 }
47414 }
47415
47416 private static class scannerOpenTs_argsStandardSchemeFactory implements SchemeFactory {
47417 public scannerOpenTs_argsStandardScheme getScheme() {
47418 return new scannerOpenTs_argsStandardScheme();
47419 }
47420 }
47421
47422 private static class scannerOpenTs_argsStandardScheme extends StandardScheme<scannerOpenTs_args> {
47423
47424 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenTs_args struct) throws org.apache.thrift.TException {
47425 org.apache.thrift.protocol.TField schemeField;
47426 iprot.readStructBegin();
47427 while (true)
47428 {
47429 schemeField = iprot.readFieldBegin();
47430 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
47431 break;
47432 }
47433 switch (schemeField.id) {
47434 case 1:
47435 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
47436 struct.tableName = iprot.readBinary();
47437 struct.setTableNameIsSet(true);
47438 } else {
47439 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47440 }
47441 break;
47442 case 2:
47443 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
47444 struct.startRow = iprot.readBinary();
47445 struct.setStartRowIsSet(true);
47446 } else {
47447 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47448 }
47449 break;
47450 case 3:
47451 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
47452 {
47453 org.apache.thrift.protocol.TList _list530 = iprot.readListBegin();
47454 struct.columns = new ArrayList<ByteBuffer>(_list530.size);
47455 for (int _i531 = 0; _i531 < _list530.size; ++_i531)
47456 {
47457 ByteBuffer _elem532;
47458 _elem532 = iprot.readBinary();
47459 struct.columns.add(_elem532);
47460 }
47461 iprot.readListEnd();
47462 }
47463 struct.setColumnsIsSet(true);
47464 } else {
47465 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47466 }
47467 break;
47468 case 4:
47469 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
47470 struct.timestamp = iprot.readI64();
47471 struct.setTimestampIsSet(true);
47472 } else {
47473 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47474 }
47475 break;
47476 case 5:
47477 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
47478 {
47479 org.apache.thrift.protocol.TMap _map533 = iprot.readMapBegin();
47480 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map533.size);
47481 for (int _i534 = 0; _i534 < _map533.size; ++_i534)
47482 {
47483 ByteBuffer _key535;
47484 ByteBuffer _val536;
47485 _key535 = iprot.readBinary();
47486 _val536 = iprot.readBinary();
47487 struct.attributes.put(_key535, _val536);
47488 }
47489 iprot.readMapEnd();
47490 }
47491 struct.setAttributesIsSet(true);
47492 } else {
47493 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47494 }
47495 break;
47496 default:
47497 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
47498 }
47499 iprot.readFieldEnd();
47500 }
47501 iprot.readStructEnd();
47502
47503
47504 struct.validate();
47505 }
47506
47507 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenTs_args struct) throws org.apache.thrift.TException {
47508 struct.validate();
47509
47510 oprot.writeStructBegin(STRUCT_DESC);
47511 if (struct.tableName != null) {
47512 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
47513 oprot.writeBinary(struct.tableName);
47514 oprot.writeFieldEnd();
47515 }
47516 if (struct.startRow != null) {
47517 oprot.writeFieldBegin(START_ROW_FIELD_DESC);
47518 oprot.writeBinary(struct.startRow);
47519 oprot.writeFieldEnd();
47520 }
47521 if (struct.columns != null) {
47522 oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
47523 {
47524 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
47525 for (ByteBuffer _iter537 : struct.columns)
47526 {
47527 oprot.writeBinary(_iter537);
47528 }
47529 oprot.writeListEnd();
47530 }
47531 oprot.writeFieldEnd();
47532 }
47533 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
47534 oprot.writeI64(struct.timestamp);
47535 oprot.writeFieldEnd();
47536 if (struct.attributes != null) {
47537 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
47538 {
47539 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
47540 for (Map.Entry<ByteBuffer, ByteBuffer> _iter538 : struct.attributes.entrySet())
47541 {
47542 oprot.writeBinary(_iter538.getKey());
47543 oprot.writeBinary(_iter538.getValue());
47544 }
47545 oprot.writeMapEnd();
47546 }
47547 oprot.writeFieldEnd();
47548 }
47549 oprot.writeFieldStop();
47550 oprot.writeStructEnd();
47551 }
47552
47553 }
47554
47555 private static class scannerOpenTs_argsTupleSchemeFactory implements SchemeFactory {
47556 public scannerOpenTs_argsTupleScheme getScheme() {
47557 return new scannerOpenTs_argsTupleScheme();
47558 }
47559 }
47560
47561 private static class scannerOpenTs_argsTupleScheme extends TupleScheme<scannerOpenTs_args> {
47562
47563 @Override
47564 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_args struct) throws org.apache.thrift.TException {
47565 TTupleProtocol oprot = (TTupleProtocol) prot;
47566 BitSet optionals = new BitSet();
47567 if (struct.isSetTableName()) {
47568 optionals.set(0);
47569 }
47570 if (struct.isSetStartRow()) {
47571 optionals.set(1);
47572 }
47573 if (struct.isSetColumns()) {
47574 optionals.set(2);
47575 }
47576 if (struct.isSetTimestamp()) {
47577 optionals.set(3);
47578 }
47579 if (struct.isSetAttributes()) {
47580 optionals.set(4);
47581 }
47582 oprot.writeBitSet(optionals, 5);
47583 if (struct.isSetTableName()) {
47584 oprot.writeBinary(struct.tableName);
47585 }
47586 if (struct.isSetStartRow()) {
47587 oprot.writeBinary(struct.startRow);
47588 }
47589 if (struct.isSetColumns()) {
47590 {
47591 oprot.writeI32(struct.columns.size());
47592 for (ByteBuffer _iter539 : struct.columns)
47593 {
47594 oprot.writeBinary(_iter539);
47595 }
47596 }
47597 }
47598 if (struct.isSetTimestamp()) {
47599 oprot.writeI64(struct.timestamp);
47600 }
47601 if (struct.isSetAttributes()) {
47602 {
47603 oprot.writeI32(struct.attributes.size());
47604 for (Map.Entry<ByteBuffer, ByteBuffer> _iter540 : struct.attributes.entrySet())
47605 {
47606 oprot.writeBinary(_iter540.getKey());
47607 oprot.writeBinary(_iter540.getValue());
47608 }
47609 }
47610 }
47611 }
47612
47613 @Override
47614 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_args struct) throws org.apache.thrift.TException {
47615 TTupleProtocol iprot = (TTupleProtocol) prot;
47616 BitSet incoming = iprot.readBitSet(5);
47617 if (incoming.get(0)) {
47618 struct.tableName = iprot.readBinary();
47619 struct.setTableNameIsSet(true);
47620 }
47621 if (incoming.get(1)) {
47622 struct.startRow = iprot.readBinary();
47623 struct.setStartRowIsSet(true);
47624 }
47625 if (incoming.get(2)) {
47626 {
47627 org.apache.thrift.protocol.TList _list541 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
47628 struct.columns = new ArrayList<ByteBuffer>(_list541.size);
47629 for (int _i542 = 0; _i542 < _list541.size; ++_i542)
47630 {
47631 ByteBuffer _elem543;
47632 _elem543 = iprot.readBinary();
47633 struct.columns.add(_elem543);
47634 }
47635 }
47636 struct.setColumnsIsSet(true);
47637 }
47638 if (incoming.get(3)) {
47639 struct.timestamp = iprot.readI64();
47640 struct.setTimestampIsSet(true);
47641 }
47642 if (incoming.get(4)) {
47643 {
47644 org.apache.thrift.protocol.TMap _map544 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
47645 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map544.size);
47646 for (int _i545 = 0; _i545 < _map544.size; ++_i545)
47647 {
47648 ByteBuffer _key546;
47649 ByteBuffer _val547;
47650 _key546 = iprot.readBinary();
47651 _val547 = iprot.readBinary();
47652 struct.attributes.put(_key546, _val547);
47653 }
47654 }
47655 struct.setAttributesIsSet(true);
47656 }
47657 }
47658 }
47659
47660 }
47661
47662 public static class scannerOpenTs_result implements org.apache.thrift.TBase<scannerOpenTs_result, scannerOpenTs_result._Fields>, java.io.Serializable, Cloneable {
47663 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenTs_result");
47664
47665 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
47666 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
47667
47668 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
47669 static {
47670 schemes.put(StandardScheme.class, new scannerOpenTs_resultStandardSchemeFactory());
47671 schemes.put(TupleScheme.class, new scannerOpenTs_resultTupleSchemeFactory());
47672 }
47673
47674 public int success;
47675 public IOError io;
47676
47677
47678 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47679 SUCCESS((short)0, "success"),
47680 IO((short)1, "io");
47681
47682 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47683
47684 static {
47685 for (_Fields field : EnumSet.allOf(_Fields.class)) {
47686 byName.put(field.getFieldName(), field);
47687 }
47688 }
47689
47690
47691
47692
47693 public static _Fields findByThriftId(int fieldId) {
47694 switch(fieldId) {
47695 case 0:
47696 return SUCCESS;
47697 case 1:
47698 return IO;
47699 default:
47700 return null;
47701 }
47702 }
47703
47704
47705
47706
47707
47708 public static _Fields findByThriftIdOrThrow(int fieldId) {
47709 _Fields fields = findByThriftId(fieldId);
47710 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47711 return fields;
47712 }
47713
47714
47715
47716
47717 public static _Fields findByName(String name) {
47718 return byName.get(name);
47719 }
47720
47721 private final short _thriftId;
47722 private final String _fieldName;
47723
47724 _Fields(short thriftId, String fieldName) {
47725 _thriftId = thriftId;
47726 _fieldName = fieldName;
47727 }
47728
47729 public short getThriftFieldId() {
47730 return _thriftId;
47731 }
47732
47733 public String getFieldName() {
47734 return _fieldName;
47735 }
47736 }
47737
47738
47739 private static final int __SUCCESS_ISSET_ID = 0;
47740 private byte __isset_bitfield = 0;
47741 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47742 static {
47743 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47744 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
47745 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID")));
47746 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
47747 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
47748 metaDataMap = Collections.unmodifiableMap(tmpMap);
47749 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenTs_result.class, metaDataMap);
47750 }
47751
47752 public scannerOpenTs_result() {
47753 }
47754
47755 public scannerOpenTs_result(
47756 int success,
47757 IOError io)
47758 {
47759 this();
47760 this.success = success;
47761 setSuccessIsSet(true);
47762 this.io = io;
47763 }
47764
47765
47766
47767
47768 public scannerOpenTs_result(scannerOpenTs_result other) {
47769 __isset_bitfield = other.__isset_bitfield;
47770 this.success = other.success;
47771 if (other.isSetIo()) {
47772 this.io = new IOError(other.io);
47773 }
47774 }
47775
47776 public scannerOpenTs_result deepCopy() {
47777 return new scannerOpenTs_result(this);
47778 }
47779
47780 @Override
47781 public void clear() {
47782 setSuccessIsSet(false);
47783 this.success = 0;
47784 this.io = null;
47785 }
47786
47787 public int getSuccess() {
47788 return this.success;
47789 }
47790
47791 public scannerOpenTs_result setSuccess(int success) {
47792 this.success = success;
47793 setSuccessIsSet(true);
47794 return this;
47795 }
47796
47797 public void unsetSuccess() {
47798 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
47799 }
47800
47801
47802 public boolean isSetSuccess() {
47803 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
47804 }
47805
47806 public void setSuccessIsSet(boolean value) {
47807 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
47808 }
47809
47810 public IOError getIo() {
47811 return this.io;
47812 }
47813
47814 public scannerOpenTs_result setIo(IOError io) {
47815 this.io = io;
47816 return this;
47817 }
47818
47819 public void unsetIo() {
47820 this.io = null;
47821 }
47822
47823
47824 public boolean isSetIo() {
47825 return this.io != null;
47826 }
47827
47828 public void setIoIsSet(boolean value) {
47829 if (!value) {
47830 this.io = null;
47831 }
47832 }
47833
47834 public void setFieldValue(_Fields field, Object value) {
47835 switch (field) {
47836 case SUCCESS:
47837 if (value == null) {
47838 unsetSuccess();
47839 } else {
47840 setSuccess((Integer)value);
47841 }
47842 break;
47843
47844 case IO:
47845 if (value == null) {
47846 unsetIo();
47847 } else {
47848 setIo((IOError)value);
47849 }
47850 break;
47851
47852 }
47853 }
47854
47855 public Object getFieldValue(_Fields field) {
47856 switch (field) {
47857 case SUCCESS:
47858 return Integer.valueOf(getSuccess());
47859
47860 case IO:
47861 return getIo();
47862
47863 }
47864 throw new IllegalStateException();
47865 }
47866
47867
47868 public boolean isSet(_Fields field) {
47869 if (field == null) {
47870 throw new IllegalArgumentException();
47871 }
47872
47873 switch (field) {
47874 case SUCCESS:
47875 return isSetSuccess();
47876 case IO:
47877 return isSetIo();
47878 }
47879 throw new IllegalStateException();
47880 }
47881
47882 @Override
47883 public boolean equals(Object that) {
47884 if (that == null)
47885 return false;
47886 if (that instanceof scannerOpenTs_result)
47887 return this.equals((scannerOpenTs_result)that);
47888 return false;
47889 }
47890
47891 public boolean equals(scannerOpenTs_result that) {
47892 if (that == null)
47893 return false;
47894
47895 boolean this_present_success = true;
47896 boolean that_present_success = true;
47897 if (this_present_success || that_present_success) {
47898 if (!(this_present_success && that_present_success))
47899 return false;
47900 if (this.success != that.success)
47901 return false;
47902 }
47903
47904 boolean this_present_io = true && this.isSetIo();
47905 boolean that_present_io = true && that.isSetIo();
47906 if (this_present_io || that_present_io) {
47907 if (!(this_present_io && that_present_io))
47908 return false;
47909 if (!this.io.equals(that.io))
47910 return false;
47911 }
47912
47913 return true;
47914 }
47915
47916 @Override
47917 public int hashCode() {
47918 HashCodeBuilder builder = new HashCodeBuilder();
47919
47920 boolean present_success = true;
47921 builder.append(present_success);
47922 if (present_success)
47923 builder.append(success);
47924
47925 boolean present_io = true && (isSetIo());
47926 builder.append(present_io);
47927 if (present_io)
47928 builder.append(io);
47929
47930 return builder.toHashCode();
47931 }
47932
47933 public int compareTo(scannerOpenTs_result other) {
47934 if (!getClass().equals(other.getClass())) {
47935 return getClass().getName().compareTo(other.getClass().getName());
47936 }
47937
47938 int lastComparison = 0;
47939 scannerOpenTs_result typedOther = (scannerOpenTs_result)other;
47940
47941 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
47942 if (lastComparison != 0) {
47943 return lastComparison;
47944 }
47945 if (isSetSuccess()) {
47946 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
47947 if (lastComparison != 0) {
47948 return lastComparison;
47949 }
47950 }
47951 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
47952 if (lastComparison != 0) {
47953 return lastComparison;
47954 }
47955 if (isSetIo()) {
47956 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
47957 if (lastComparison != 0) {
47958 return lastComparison;
47959 }
47960 }
47961 return 0;
47962 }
47963
47964 public _Fields fieldForId(int fieldId) {
47965 return _Fields.findByThriftId(fieldId);
47966 }
47967
47968 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47969 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
47970 }
47971
47972 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47973 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
47974 }
47975
47976 @Override
47977 public String toString() {
47978 StringBuilder sb = new StringBuilder("scannerOpenTs_result(");
47979 boolean first = true;
47980
47981 sb.append("success:");
47982 sb.append(this.success);
47983 first = false;
47984 if (!first) sb.append(", ");
47985 sb.append("io:");
47986 if (this.io == null) {
47987 sb.append("null");
47988 } else {
47989 sb.append(this.io);
47990 }
47991 first = false;
47992 sb.append(")");
47993 return sb.toString();
47994 }
47995
47996 public void validate() throws org.apache.thrift.TException {
47997
47998
47999 }
48000
48001 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48002 try {
48003 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48004 } catch (org.apache.thrift.TException te) {
48005 throw new java.io.IOException(te);
48006 }
48007 }
48008
48009 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48010 try {
48011
48012 __isset_bitfield = 0;
48013 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48014 } catch (org.apache.thrift.TException te) {
48015 throw new java.io.IOException(te);
48016 }
48017 }
48018
48019 private static class scannerOpenTs_resultStandardSchemeFactory implements SchemeFactory {
48020 public scannerOpenTs_resultStandardScheme getScheme() {
48021 return new scannerOpenTs_resultStandardScheme();
48022 }
48023 }
48024
48025 private static class scannerOpenTs_resultStandardScheme extends StandardScheme<scannerOpenTs_result> {
48026
48027 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenTs_result struct) throws org.apache.thrift.TException {
48028 org.apache.thrift.protocol.TField schemeField;
48029 iprot.readStructBegin();
48030 while (true)
48031 {
48032 schemeField = iprot.readFieldBegin();
48033 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
48034 break;
48035 }
48036 switch (schemeField.id) {
48037 case 0:
48038 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
48039 struct.success = iprot.readI32();
48040 struct.setSuccessIsSet(true);
48041 } else {
48042 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
48043 }
48044 break;
48045 case 1:
48046 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
48047 struct.io = new IOError();
48048 struct.io.read(iprot);
48049 struct.setIoIsSet(true);
48050 } else {
48051 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
48052 }
48053 break;
48054 default:
48055 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
48056 }
48057 iprot.readFieldEnd();
48058 }
48059 iprot.readStructEnd();
48060
48061
48062 struct.validate();
48063 }
48064
48065 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenTs_result struct) throws org.apache.thrift.TException {
48066 struct.validate();
48067
48068 oprot.writeStructBegin(STRUCT_DESC);
48069 if (struct.isSetSuccess()) {
48070 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48071 oprot.writeI32(struct.success);
48072 oprot.writeFieldEnd();
48073 }
48074 if (struct.io != null) {
48075 oprot.writeFieldBegin(IO_FIELD_DESC);
48076 struct.io.write(oprot);
48077 oprot.writeFieldEnd();
48078 }
48079 oprot.writeFieldStop();
48080 oprot.writeStructEnd();
48081 }
48082
48083 }
48084
48085 private static class scannerOpenTs_resultTupleSchemeFactory implements SchemeFactory {
48086 public scannerOpenTs_resultTupleScheme getScheme() {
48087 return new scannerOpenTs_resultTupleScheme();
48088 }
48089 }
48090
48091 private static class scannerOpenTs_resultTupleScheme extends TupleScheme<scannerOpenTs_result> {
48092
48093 @Override
48094 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_result struct) throws org.apache.thrift.TException {
48095 TTupleProtocol oprot = (TTupleProtocol) prot;
48096 BitSet optionals = new BitSet();
48097 if (struct.isSetSuccess()) {
48098 optionals.set(0);
48099 }
48100 if (struct.isSetIo()) {
48101 optionals.set(1);
48102 }
48103 oprot.writeBitSet(optionals, 2);
48104 if (struct.isSetSuccess()) {
48105 oprot.writeI32(struct.success);
48106 }
48107 if (struct.isSetIo()) {
48108 struct.io.write(oprot);
48109 }
48110 }
48111
48112 @Override
48113 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenTs_result struct) throws org.apache.thrift.TException {
48114 TTupleProtocol iprot = (TTupleProtocol) prot;
48115 BitSet incoming = iprot.readBitSet(2);
48116 if (incoming.get(0)) {
48117 struct.success = iprot.readI32();
48118 struct.setSuccessIsSet(true);
48119 }
48120 if (incoming.get(1)) {
48121 struct.io = new IOError();
48122 struct.io.read(iprot);
48123 struct.setIoIsSet(true);
48124 }
48125 }
48126 }
48127
48128 }
48129
48130 public static class scannerOpenWithStopTs_args implements org.apache.thrift.TBase<scannerOpenWithStopTs_args, scannerOpenWithStopTs_args._Fields>, java.io.Serializable, Cloneable {
48131 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStopTs_args");
48132
48133 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
48134 private static final org.apache.thrift.protocol.TField START_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("startRow", org.apache.thrift.protocol.TType.STRING, (short)2);
48135 private static final org.apache.thrift.protocol.TField STOP_ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("stopRow", org.apache.thrift.protocol.TType.STRING, (short)3);
48136 private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)4);
48137 private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)5);
48138 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)6);
48139
48140 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
48141 static {
48142 schemes.put(StandardScheme.class, new scannerOpenWithStopTs_argsStandardSchemeFactory());
48143 schemes.put(TupleScheme.class, new scannerOpenWithStopTs_argsTupleSchemeFactory());
48144 }
48145
48146
48147
48148
48149 public ByteBuffer tableName;
48150
48151
48152
48153
48154 public ByteBuffer startRow;
48155
48156
48157
48158
48159 public ByteBuffer stopRow;
48160
48161
48162
48163
48164
48165 public List<ByteBuffer> columns;
48166
48167
48168
48169 public long timestamp;
48170
48171
48172
48173 public Map<ByteBuffer,ByteBuffer> attributes;
48174
48175
48176 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48177
48178
48179
48180 TABLE_NAME((short)1, "tableName"),
48181
48182
48183
48184
48185 START_ROW((short)2, "startRow"),
48186
48187
48188
48189
48190 STOP_ROW((short)3, "stopRow"),
48191
48192
48193
48194
48195
48196 COLUMNS((short)4, "columns"),
48197
48198
48199
48200 TIMESTAMP((short)5, "timestamp"),
48201
48202
48203
48204 ATTRIBUTES((short)6, "attributes");
48205
48206 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48207
48208 static {
48209 for (_Fields field : EnumSet.allOf(_Fields.class)) {
48210 byName.put(field.getFieldName(), field);
48211 }
48212 }
48213
48214
48215
48216
48217 public static _Fields findByThriftId(int fieldId) {
48218 switch(fieldId) {
48219 case 1:
48220 return TABLE_NAME;
48221 case 2:
48222 return START_ROW;
48223 case 3:
48224 return STOP_ROW;
48225 case 4:
48226 return COLUMNS;
48227 case 5:
48228 return TIMESTAMP;
48229 case 6:
48230 return ATTRIBUTES;
48231 default:
48232 return null;
48233 }
48234 }
48235
48236
48237
48238
48239
48240 public static _Fields findByThriftIdOrThrow(int fieldId) {
48241 _Fields fields = findByThriftId(fieldId);
48242 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48243 return fields;
48244 }
48245
48246
48247
48248
48249 public static _Fields findByName(String name) {
48250 return byName.get(name);
48251 }
48252
48253 private final short _thriftId;
48254 private final String _fieldName;
48255
48256 _Fields(short thriftId, String fieldName) {
48257 _thriftId = thriftId;
48258 _fieldName = fieldName;
48259 }
48260
48261 public short getThriftFieldId() {
48262 return _thriftId;
48263 }
48264
48265 public String getFieldName() {
48266 return _fieldName;
48267 }
48268 }
48269
48270
48271 private static final int __TIMESTAMP_ISSET_ID = 0;
48272 private byte __isset_bitfield = 0;
48273 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48274 static {
48275 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48276 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
48277 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
48278 tmpMap.put(_Fields.START_ROW, new org.apache.thrift.meta_data.FieldMetaData("startRow", org.apache.thrift.TFieldRequirementType.DEFAULT,
48279 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
48280 tmpMap.put(_Fields.STOP_ROW, new org.apache.thrift.meta_data.FieldMetaData("stopRow", org.apache.thrift.TFieldRequirementType.DEFAULT,
48281 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
48282 tmpMap.put(_Fields.COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("columns", org.apache.thrift.TFieldRequirementType.DEFAULT,
48283 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
48284 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
48285 tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
48286 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48287 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
48288 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
48289 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
48290 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
48291 metaDataMap = Collections.unmodifiableMap(tmpMap);
48292 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStopTs_args.class, metaDataMap);
48293 }
48294
48295 public scannerOpenWithStopTs_args() {
48296 }
48297
48298 public scannerOpenWithStopTs_args(
48299 ByteBuffer tableName,
48300 ByteBuffer startRow,
48301 ByteBuffer stopRow,
48302 List<ByteBuffer> columns,
48303 long timestamp,
48304 Map<ByteBuffer,ByteBuffer> attributes)
48305 {
48306 this();
48307 this.tableName = tableName;
48308 this.startRow = startRow;
48309 this.stopRow = stopRow;
48310 this.columns = columns;
48311 this.timestamp = timestamp;
48312 setTimestampIsSet(true);
48313 this.attributes = attributes;
48314 }
48315
48316
48317
48318
48319 public scannerOpenWithStopTs_args(scannerOpenWithStopTs_args other) {
48320 __isset_bitfield = other.__isset_bitfield;
48321 if (other.isSetTableName()) {
48322 this.tableName = other.tableName;
48323 }
48324 if (other.isSetStartRow()) {
48325 this.startRow = other.startRow;
48326 }
48327 if (other.isSetStopRow()) {
48328 this.stopRow = other.stopRow;
48329 }
48330 if (other.isSetColumns()) {
48331 List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>();
48332 for (ByteBuffer other_element : other.columns) {
48333 __this__columns.add(other_element);
48334 }
48335 this.columns = __this__columns;
48336 }
48337 this.timestamp = other.timestamp;
48338 if (other.isSetAttributes()) {
48339 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
48340 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
48341
48342 ByteBuffer other_element_key = other_element.getKey();
48343 ByteBuffer other_element_value = other_element.getValue();
48344
48345 ByteBuffer __this__attributes_copy_key = other_element_key;
48346
48347 ByteBuffer __this__attributes_copy_value = other_element_value;
48348
48349 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
48350 }
48351 this.attributes = __this__attributes;
48352 }
48353 }
48354
48355 public scannerOpenWithStopTs_args deepCopy() {
48356 return new scannerOpenWithStopTs_args(this);
48357 }
48358
48359 @Override
48360 public void clear() {
48361 this.tableName = null;
48362 this.startRow = null;
48363 this.stopRow = null;
48364 this.columns = null;
48365 setTimestampIsSet(false);
48366 this.timestamp = 0;
48367 this.attributes = null;
48368 }
48369
48370
48371
48372
48373 public byte[] getTableName() {
48374 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
48375 return tableName == null ? null : tableName.array();
48376 }
48377
48378 public ByteBuffer bufferForTableName() {
48379 return tableName;
48380 }
48381
48382
48383
48384
48385 public scannerOpenWithStopTs_args setTableName(byte[] tableName) {
48386 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
48387 return this;
48388 }
48389
48390 public scannerOpenWithStopTs_args setTableName(ByteBuffer tableName) {
48391 this.tableName = tableName;
48392 return this;
48393 }
48394
48395 public void unsetTableName() {
48396 this.tableName = null;
48397 }
48398
48399
48400 public boolean isSetTableName() {
48401 return this.tableName != null;
48402 }
48403
48404 public void setTableNameIsSet(boolean value) {
48405 if (!value) {
48406 this.tableName = null;
48407 }
48408 }
48409
48410
48411
48412
48413
48414 public byte[] getStartRow() {
48415 setStartRow(org.apache.thrift.TBaseHelper.rightSize(startRow));
48416 return startRow == null ? null : startRow.array();
48417 }
48418
48419 public ByteBuffer bufferForStartRow() {
48420 return startRow;
48421 }
48422
48423
48424
48425
48426
48427 public scannerOpenWithStopTs_args setStartRow(byte[] startRow) {
48428 setStartRow(startRow == null ? (ByteBuffer)null : ByteBuffer.wrap(startRow));
48429 return this;
48430 }
48431
48432 public scannerOpenWithStopTs_args setStartRow(ByteBuffer startRow) {
48433 this.startRow = startRow;
48434 return this;
48435 }
48436
48437 public void unsetStartRow() {
48438 this.startRow = null;
48439 }
48440
48441
48442 public boolean isSetStartRow() {
48443 return this.startRow != null;
48444 }
48445
48446 public void setStartRowIsSet(boolean value) {
48447 if (!value) {
48448 this.startRow = null;
48449 }
48450 }
48451
48452
48453
48454
48455
48456 public byte[] getStopRow() {
48457 setStopRow(org.apache.thrift.TBaseHelper.rightSize(stopRow));
48458 return stopRow == null ? null : stopRow.array();
48459 }
48460
48461 public ByteBuffer bufferForStopRow() {
48462 return stopRow;
48463 }
48464
48465
48466
48467
48468
48469 public scannerOpenWithStopTs_args setStopRow(byte[] stopRow) {
48470 setStopRow(stopRow == null ? (ByteBuffer)null : ByteBuffer.wrap(stopRow));
48471 return this;
48472 }
48473
48474 public scannerOpenWithStopTs_args setStopRow(ByteBuffer stopRow) {
48475 this.stopRow = stopRow;
48476 return this;
48477 }
48478
48479 public void unsetStopRow() {
48480 this.stopRow = null;
48481 }
48482
48483
48484 public boolean isSetStopRow() {
48485 return this.stopRow != null;
48486 }
48487
48488 public void setStopRowIsSet(boolean value) {
48489 if (!value) {
48490 this.stopRow = null;
48491 }
48492 }
48493
48494 public int getColumnsSize() {
48495 return (this.columns == null) ? 0 : this.columns.size();
48496 }
48497
48498 public java.util.Iterator<ByteBuffer> getColumnsIterator() {
48499 return (this.columns == null) ? null : this.columns.iterator();
48500 }
48501
48502 public void addToColumns(ByteBuffer elem) {
48503 if (this.columns == null) {
48504 this.columns = new ArrayList<ByteBuffer>();
48505 }
48506 this.columns.add(elem);
48507 }
48508
48509
48510
48511
48512
48513
48514 public List<ByteBuffer> getColumns() {
48515 return this.columns;
48516 }
48517
48518
48519
48520
48521
48522
48523 public scannerOpenWithStopTs_args setColumns(List<ByteBuffer> columns) {
48524 this.columns = columns;
48525 return this;
48526 }
48527
48528 public void unsetColumns() {
48529 this.columns = null;
48530 }
48531
48532
48533 public boolean isSetColumns() {
48534 return this.columns != null;
48535 }
48536
48537 public void setColumnsIsSet(boolean value) {
48538 if (!value) {
48539 this.columns = null;
48540 }
48541 }
48542
48543
48544
48545
48546 public long getTimestamp() {
48547 return this.timestamp;
48548 }
48549
48550
48551
48552
48553 public scannerOpenWithStopTs_args setTimestamp(long timestamp) {
48554 this.timestamp = timestamp;
48555 setTimestampIsSet(true);
48556 return this;
48557 }
48558
48559 public void unsetTimestamp() {
48560 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
48561 }
48562
48563
48564 public boolean isSetTimestamp() {
48565 return EncodingUtils.testBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
48566 }
48567
48568 public void setTimestampIsSet(boolean value) {
48569 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
48570 }
48571
48572 public int getAttributesSize() {
48573 return (this.attributes == null) ? 0 : this.attributes.size();
48574 }
48575
48576 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
48577 if (this.attributes == null) {
48578 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
48579 }
48580 this.attributes.put(key, val);
48581 }
48582
48583
48584
48585
48586 public Map<ByteBuffer,ByteBuffer> getAttributes() {
48587 return this.attributes;
48588 }
48589
48590
48591
48592
48593 public scannerOpenWithStopTs_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
48594 this.attributes = attributes;
48595 return this;
48596 }
48597
48598 public void unsetAttributes() {
48599 this.attributes = null;
48600 }
48601
48602
48603 public boolean isSetAttributes() {
48604 return this.attributes != null;
48605 }
48606
48607 public void setAttributesIsSet(boolean value) {
48608 if (!value) {
48609 this.attributes = null;
48610 }
48611 }
48612
48613 public void setFieldValue(_Fields field, Object value) {
48614 switch (field) {
48615 case TABLE_NAME:
48616 if (value == null) {
48617 unsetTableName();
48618 } else {
48619 setTableName((ByteBuffer)value);
48620 }
48621 break;
48622
48623 case START_ROW:
48624 if (value == null) {
48625 unsetStartRow();
48626 } else {
48627 setStartRow((ByteBuffer)value);
48628 }
48629 break;
48630
48631 case STOP_ROW:
48632 if (value == null) {
48633 unsetStopRow();
48634 } else {
48635 setStopRow((ByteBuffer)value);
48636 }
48637 break;
48638
48639 case COLUMNS:
48640 if (value == null) {
48641 unsetColumns();
48642 } else {
48643 setColumns((List<ByteBuffer>)value);
48644 }
48645 break;
48646
48647 case TIMESTAMP:
48648 if (value == null) {
48649 unsetTimestamp();
48650 } else {
48651 setTimestamp((Long)value);
48652 }
48653 break;
48654
48655 case ATTRIBUTES:
48656 if (value == null) {
48657 unsetAttributes();
48658 } else {
48659 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
48660 }
48661 break;
48662
48663 }
48664 }
48665
48666 public Object getFieldValue(_Fields field) {
48667 switch (field) {
48668 case TABLE_NAME:
48669 return getTableName();
48670
48671 case START_ROW:
48672 return getStartRow();
48673
48674 case STOP_ROW:
48675 return getStopRow();
48676
48677 case COLUMNS:
48678 return getColumns();
48679
48680 case TIMESTAMP:
48681 return Long.valueOf(getTimestamp());
48682
48683 case ATTRIBUTES:
48684 return getAttributes();
48685
48686 }
48687 throw new IllegalStateException();
48688 }
48689
48690
48691 public boolean isSet(_Fields field) {
48692 if (field == null) {
48693 throw new IllegalArgumentException();
48694 }
48695
48696 switch (field) {
48697 case TABLE_NAME:
48698 return isSetTableName();
48699 case START_ROW:
48700 return isSetStartRow();
48701 case STOP_ROW:
48702 return isSetStopRow();
48703 case COLUMNS:
48704 return isSetColumns();
48705 case TIMESTAMP:
48706 return isSetTimestamp();
48707 case ATTRIBUTES:
48708 return isSetAttributes();
48709 }
48710 throw new IllegalStateException();
48711 }
48712
48713 @Override
48714 public boolean equals(Object that) {
48715 if (that == null)
48716 return false;
48717 if (that instanceof scannerOpenWithStopTs_args)
48718 return this.equals((scannerOpenWithStopTs_args)that);
48719 return false;
48720 }
48721
48722 public boolean equals(scannerOpenWithStopTs_args that) {
48723 if (that == null)
48724 return false;
48725
48726 boolean this_present_tableName = true && this.isSetTableName();
48727 boolean that_present_tableName = true && that.isSetTableName();
48728 if (this_present_tableName || that_present_tableName) {
48729 if (!(this_present_tableName && that_present_tableName))
48730 return false;
48731 if (!this.tableName.equals(that.tableName))
48732 return false;
48733 }
48734
48735 boolean this_present_startRow = true && this.isSetStartRow();
48736 boolean that_present_startRow = true && that.isSetStartRow();
48737 if (this_present_startRow || that_present_startRow) {
48738 if (!(this_present_startRow && that_present_startRow))
48739 return false;
48740 if (!this.startRow.equals(that.startRow))
48741 return false;
48742 }
48743
48744 boolean this_present_stopRow = true && this.isSetStopRow();
48745 boolean that_present_stopRow = true && that.isSetStopRow();
48746 if (this_present_stopRow || that_present_stopRow) {
48747 if (!(this_present_stopRow && that_present_stopRow))
48748 return false;
48749 if (!this.stopRow.equals(that.stopRow))
48750 return false;
48751 }
48752
48753 boolean this_present_columns = true && this.isSetColumns();
48754 boolean that_present_columns = true && that.isSetColumns();
48755 if (this_present_columns || that_present_columns) {
48756 if (!(this_present_columns && that_present_columns))
48757 return false;
48758 if (!this.columns.equals(that.columns))
48759 return false;
48760 }
48761
48762 boolean this_present_timestamp = true;
48763 boolean that_present_timestamp = true;
48764 if (this_present_timestamp || that_present_timestamp) {
48765 if (!(this_present_timestamp && that_present_timestamp))
48766 return false;
48767 if (this.timestamp != that.timestamp)
48768 return false;
48769 }
48770
48771 boolean this_present_attributes = true && this.isSetAttributes();
48772 boolean that_present_attributes = true && that.isSetAttributes();
48773 if (this_present_attributes || that_present_attributes) {
48774 if (!(this_present_attributes && that_present_attributes))
48775 return false;
48776 if (!this.attributes.equals(that.attributes))
48777 return false;
48778 }
48779
48780 return true;
48781 }
48782
48783 @Override
48784 public int hashCode() {
48785 HashCodeBuilder builder = new HashCodeBuilder();
48786
48787 boolean present_tableName = true && (isSetTableName());
48788 builder.append(present_tableName);
48789 if (present_tableName)
48790 builder.append(tableName);
48791
48792 boolean present_startRow = true && (isSetStartRow());
48793 builder.append(present_startRow);
48794 if (present_startRow)
48795 builder.append(startRow);
48796
48797 boolean present_stopRow = true && (isSetStopRow());
48798 builder.append(present_stopRow);
48799 if (present_stopRow)
48800 builder.append(stopRow);
48801
48802 boolean present_columns = true && (isSetColumns());
48803 builder.append(present_columns);
48804 if (present_columns)
48805 builder.append(columns);
48806
48807 boolean present_timestamp = true;
48808 builder.append(present_timestamp);
48809 if (present_timestamp)
48810 builder.append(timestamp);
48811
48812 boolean present_attributes = true && (isSetAttributes());
48813 builder.append(present_attributes);
48814 if (present_attributes)
48815 builder.append(attributes);
48816
48817 return builder.toHashCode();
48818 }
48819
48820 public int compareTo(scannerOpenWithStopTs_args other) {
48821 if (!getClass().equals(other.getClass())) {
48822 return getClass().getName().compareTo(other.getClass().getName());
48823 }
48824
48825 int lastComparison = 0;
48826 scannerOpenWithStopTs_args typedOther = (scannerOpenWithStopTs_args)other;
48827
48828 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
48829 if (lastComparison != 0) {
48830 return lastComparison;
48831 }
48832 if (isSetTableName()) {
48833 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
48834 if (lastComparison != 0) {
48835 return lastComparison;
48836 }
48837 }
48838 lastComparison = Boolean.valueOf(isSetStartRow()).compareTo(typedOther.isSetStartRow());
48839 if (lastComparison != 0) {
48840 return lastComparison;
48841 }
48842 if (isSetStartRow()) {
48843 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRow, typedOther.startRow);
48844 if (lastComparison != 0) {
48845 return lastComparison;
48846 }
48847 }
48848 lastComparison = Boolean.valueOf(isSetStopRow()).compareTo(typedOther.isSetStopRow());
48849 if (lastComparison != 0) {
48850 return lastComparison;
48851 }
48852 if (isSetStopRow()) {
48853 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stopRow, typedOther.stopRow);
48854 if (lastComparison != 0) {
48855 return lastComparison;
48856 }
48857 }
48858 lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns());
48859 if (lastComparison != 0) {
48860 return lastComparison;
48861 }
48862 if (isSetColumns()) {
48863 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns);
48864 if (lastComparison != 0) {
48865 return lastComparison;
48866 }
48867 }
48868 lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
48869 if (lastComparison != 0) {
48870 return lastComparison;
48871 }
48872 if (isSetTimestamp()) {
48873 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
48874 if (lastComparison != 0) {
48875 return lastComparison;
48876 }
48877 }
48878 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
48879 if (lastComparison != 0) {
48880 return lastComparison;
48881 }
48882 if (isSetAttributes()) {
48883 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
48884 if (lastComparison != 0) {
48885 return lastComparison;
48886 }
48887 }
48888 return 0;
48889 }
48890
48891 public _Fields fieldForId(int fieldId) {
48892 return _Fields.findByThriftId(fieldId);
48893 }
48894
48895 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48896 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
48897 }
48898
48899 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48900 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
48901 }
48902
48903 @Override
48904 public String toString() {
48905 StringBuilder sb = new StringBuilder("scannerOpenWithStopTs_args(");
48906 boolean first = true;
48907
48908 sb.append("tableName:");
48909 if (this.tableName == null) {
48910 sb.append("null");
48911 } else {
48912 sb.append(this.tableName);
48913 }
48914 first = false;
48915 if (!first) sb.append(", ");
48916 sb.append("startRow:");
48917 if (this.startRow == null) {
48918 sb.append("null");
48919 } else {
48920 sb.append(this.startRow);
48921 }
48922 first = false;
48923 if (!first) sb.append(", ");
48924 sb.append("stopRow:");
48925 if (this.stopRow == null) {
48926 sb.append("null");
48927 } else {
48928 sb.append(this.stopRow);
48929 }
48930 first = false;
48931 if (!first) sb.append(", ");
48932 sb.append("columns:");
48933 if (this.columns == null) {
48934 sb.append("null");
48935 } else {
48936 sb.append(this.columns);
48937 }
48938 first = false;
48939 if (!first) sb.append(", ");
48940 sb.append("timestamp:");
48941 sb.append(this.timestamp);
48942 first = false;
48943 if (!first) sb.append(", ");
48944 sb.append("attributes:");
48945 if (this.attributes == null) {
48946 sb.append("null");
48947 } else {
48948 sb.append(this.attributes);
48949 }
48950 first = false;
48951 sb.append(")");
48952 return sb.toString();
48953 }
48954
48955 public void validate() throws org.apache.thrift.TException {
48956
48957
48958 }
48959
48960 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48961 try {
48962 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48963 } catch (org.apache.thrift.TException te) {
48964 throw new java.io.IOException(te);
48965 }
48966 }
48967
48968 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48969 try {
48970
48971 __isset_bitfield = 0;
48972 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48973 } catch (org.apache.thrift.TException te) {
48974 throw new java.io.IOException(te);
48975 }
48976 }
48977
48978 private static class scannerOpenWithStopTs_argsStandardSchemeFactory implements SchemeFactory {
48979 public scannerOpenWithStopTs_argsStandardScheme getScheme() {
48980 return new scannerOpenWithStopTs_argsStandardScheme();
48981 }
48982 }
48983
48984 private static class scannerOpenWithStopTs_argsStandardScheme extends StandardScheme<scannerOpenWithStopTs_args> {
48985
48986 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException {
48987 org.apache.thrift.protocol.TField schemeField;
48988 iprot.readStructBegin();
48989 while (true)
48990 {
48991 schemeField = iprot.readFieldBegin();
48992 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
48993 break;
48994 }
48995 switch (schemeField.id) {
48996 case 1:
48997 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
48998 struct.tableName = iprot.readBinary();
48999 struct.setTableNameIsSet(true);
49000 } else {
49001 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49002 }
49003 break;
49004 case 2:
49005 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
49006 struct.startRow = iprot.readBinary();
49007 struct.setStartRowIsSet(true);
49008 } else {
49009 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49010 }
49011 break;
49012 case 3:
49013 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
49014 struct.stopRow = iprot.readBinary();
49015 struct.setStopRowIsSet(true);
49016 } else {
49017 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49018 }
49019 break;
49020 case 4:
49021 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
49022 {
49023 org.apache.thrift.protocol.TList _list548 = iprot.readListBegin();
49024 struct.columns = new ArrayList<ByteBuffer>(_list548.size);
49025 for (int _i549 = 0; _i549 < _list548.size; ++_i549)
49026 {
49027 ByteBuffer _elem550;
49028 _elem550 = iprot.readBinary();
49029 struct.columns.add(_elem550);
49030 }
49031 iprot.readListEnd();
49032 }
49033 struct.setColumnsIsSet(true);
49034 } else {
49035 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49036 }
49037 break;
49038 case 5:
49039 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
49040 struct.timestamp = iprot.readI64();
49041 struct.setTimestampIsSet(true);
49042 } else {
49043 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49044 }
49045 break;
49046 case 6:
49047 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
49048 {
49049 org.apache.thrift.protocol.TMap _map551 = iprot.readMapBegin();
49050 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map551.size);
49051 for (int _i552 = 0; _i552 < _map551.size; ++_i552)
49052 {
49053 ByteBuffer _key553;
49054 ByteBuffer _val554;
49055 _key553 = iprot.readBinary();
49056 _val554 = iprot.readBinary();
49057 struct.attributes.put(_key553, _val554);
49058 }
49059 iprot.readMapEnd();
49060 }
49061 struct.setAttributesIsSet(true);
49062 } else {
49063 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49064 }
49065 break;
49066 default:
49067 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49068 }
49069 iprot.readFieldEnd();
49070 }
49071 iprot.readStructEnd();
49072
49073
49074 struct.validate();
49075 }
49076
49077 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException {
49078 struct.validate();
49079
49080 oprot.writeStructBegin(STRUCT_DESC);
49081 if (struct.tableName != null) {
49082 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
49083 oprot.writeBinary(struct.tableName);
49084 oprot.writeFieldEnd();
49085 }
49086 if (struct.startRow != null) {
49087 oprot.writeFieldBegin(START_ROW_FIELD_DESC);
49088 oprot.writeBinary(struct.startRow);
49089 oprot.writeFieldEnd();
49090 }
49091 if (struct.stopRow != null) {
49092 oprot.writeFieldBegin(STOP_ROW_FIELD_DESC);
49093 oprot.writeBinary(struct.stopRow);
49094 oprot.writeFieldEnd();
49095 }
49096 if (struct.columns != null) {
49097 oprot.writeFieldBegin(COLUMNS_FIELD_DESC);
49098 {
49099 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.columns.size()));
49100 for (ByteBuffer _iter555 : struct.columns)
49101 {
49102 oprot.writeBinary(_iter555);
49103 }
49104 oprot.writeListEnd();
49105 }
49106 oprot.writeFieldEnd();
49107 }
49108 oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
49109 oprot.writeI64(struct.timestamp);
49110 oprot.writeFieldEnd();
49111 if (struct.attributes != null) {
49112 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
49113 {
49114 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
49115 for (Map.Entry<ByteBuffer, ByteBuffer> _iter556 : struct.attributes.entrySet())
49116 {
49117 oprot.writeBinary(_iter556.getKey());
49118 oprot.writeBinary(_iter556.getValue());
49119 }
49120 oprot.writeMapEnd();
49121 }
49122 oprot.writeFieldEnd();
49123 }
49124 oprot.writeFieldStop();
49125 oprot.writeStructEnd();
49126 }
49127
49128 }
49129
49130 private static class scannerOpenWithStopTs_argsTupleSchemeFactory implements SchemeFactory {
49131 public scannerOpenWithStopTs_argsTupleScheme getScheme() {
49132 return new scannerOpenWithStopTs_argsTupleScheme();
49133 }
49134 }
49135
49136 private static class scannerOpenWithStopTs_argsTupleScheme extends TupleScheme<scannerOpenWithStopTs_args> {
49137
49138 @Override
49139 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException {
49140 TTupleProtocol oprot = (TTupleProtocol) prot;
49141 BitSet optionals = new BitSet();
49142 if (struct.isSetTableName()) {
49143 optionals.set(0);
49144 }
49145 if (struct.isSetStartRow()) {
49146 optionals.set(1);
49147 }
49148 if (struct.isSetStopRow()) {
49149 optionals.set(2);
49150 }
49151 if (struct.isSetColumns()) {
49152 optionals.set(3);
49153 }
49154 if (struct.isSetTimestamp()) {
49155 optionals.set(4);
49156 }
49157 if (struct.isSetAttributes()) {
49158 optionals.set(5);
49159 }
49160 oprot.writeBitSet(optionals, 6);
49161 if (struct.isSetTableName()) {
49162 oprot.writeBinary(struct.tableName);
49163 }
49164 if (struct.isSetStartRow()) {
49165 oprot.writeBinary(struct.startRow);
49166 }
49167 if (struct.isSetStopRow()) {
49168 oprot.writeBinary(struct.stopRow);
49169 }
49170 if (struct.isSetColumns()) {
49171 {
49172 oprot.writeI32(struct.columns.size());
49173 for (ByteBuffer _iter557 : struct.columns)
49174 {
49175 oprot.writeBinary(_iter557);
49176 }
49177 }
49178 }
49179 if (struct.isSetTimestamp()) {
49180 oprot.writeI64(struct.timestamp);
49181 }
49182 if (struct.isSetAttributes()) {
49183 {
49184 oprot.writeI32(struct.attributes.size());
49185 for (Map.Entry<ByteBuffer, ByteBuffer> _iter558 : struct.attributes.entrySet())
49186 {
49187 oprot.writeBinary(_iter558.getKey());
49188 oprot.writeBinary(_iter558.getValue());
49189 }
49190 }
49191 }
49192 }
49193
49194 @Override
49195 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_args struct) throws org.apache.thrift.TException {
49196 TTupleProtocol iprot = (TTupleProtocol) prot;
49197 BitSet incoming = iprot.readBitSet(6);
49198 if (incoming.get(0)) {
49199 struct.tableName = iprot.readBinary();
49200 struct.setTableNameIsSet(true);
49201 }
49202 if (incoming.get(1)) {
49203 struct.startRow = iprot.readBinary();
49204 struct.setStartRowIsSet(true);
49205 }
49206 if (incoming.get(2)) {
49207 struct.stopRow = iprot.readBinary();
49208 struct.setStopRowIsSet(true);
49209 }
49210 if (incoming.get(3)) {
49211 {
49212 org.apache.thrift.protocol.TList _list559 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
49213 struct.columns = new ArrayList<ByteBuffer>(_list559.size);
49214 for (int _i560 = 0; _i560 < _list559.size; ++_i560)
49215 {
49216 ByteBuffer _elem561;
49217 _elem561 = iprot.readBinary();
49218 struct.columns.add(_elem561);
49219 }
49220 }
49221 struct.setColumnsIsSet(true);
49222 }
49223 if (incoming.get(4)) {
49224 struct.timestamp = iprot.readI64();
49225 struct.setTimestampIsSet(true);
49226 }
49227 if (incoming.get(5)) {
49228 {
49229 org.apache.thrift.protocol.TMap _map562 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
49230 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map562.size);
49231 for (int _i563 = 0; _i563 < _map562.size; ++_i563)
49232 {
49233 ByteBuffer _key564;
49234 ByteBuffer _val565;
49235 _key564 = iprot.readBinary();
49236 _val565 = iprot.readBinary();
49237 struct.attributes.put(_key564, _val565);
49238 }
49239 }
49240 struct.setAttributesIsSet(true);
49241 }
49242 }
49243 }
49244
49245 }
49246
49247 public static class scannerOpenWithStopTs_result implements org.apache.thrift.TBase<scannerOpenWithStopTs_result, scannerOpenWithStopTs_result._Fields>, java.io.Serializable, Cloneable {
49248 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerOpenWithStopTs_result");
49249
49250 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
49251 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
49252
49253 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
49254 static {
49255 schemes.put(StandardScheme.class, new scannerOpenWithStopTs_resultStandardSchemeFactory());
49256 schemes.put(TupleScheme.class, new scannerOpenWithStopTs_resultTupleSchemeFactory());
49257 }
49258
49259 public int success;
49260 public IOError io;
49261
49262
49263 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49264 SUCCESS((short)0, "success"),
49265 IO((short)1, "io");
49266
49267 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49268
49269 static {
49270 for (_Fields field : EnumSet.allOf(_Fields.class)) {
49271 byName.put(field.getFieldName(), field);
49272 }
49273 }
49274
49275
49276
49277
49278 public static _Fields findByThriftId(int fieldId) {
49279 switch(fieldId) {
49280 case 0:
49281 return SUCCESS;
49282 case 1:
49283 return IO;
49284 default:
49285 return null;
49286 }
49287 }
49288
49289
49290
49291
49292
49293 public static _Fields findByThriftIdOrThrow(int fieldId) {
49294 _Fields fields = findByThriftId(fieldId);
49295 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49296 return fields;
49297 }
49298
49299
49300
49301
49302 public static _Fields findByName(String name) {
49303 return byName.get(name);
49304 }
49305
49306 private final short _thriftId;
49307 private final String _fieldName;
49308
49309 _Fields(short thriftId, String fieldName) {
49310 _thriftId = thriftId;
49311 _fieldName = fieldName;
49312 }
49313
49314 public short getThriftFieldId() {
49315 return _thriftId;
49316 }
49317
49318 public String getFieldName() {
49319 return _fieldName;
49320 }
49321 }
49322
49323
49324 private static final int __SUCCESS_ISSET_ID = 0;
49325 private byte __isset_bitfield = 0;
49326 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49327 static {
49328 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49329 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
49330 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID")));
49331 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
49332 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
49333 metaDataMap = Collections.unmodifiableMap(tmpMap);
49334 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerOpenWithStopTs_result.class, metaDataMap);
49335 }
49336
49337 public scannerOpenWithStopTs_result() {
49338 }
49339
49340 public scannerOpenWithStopTs_result(
49341 int success,
49342 IOError io)
49343 {
49344 this();
49345 this.success = success;
49346 setSuccessIsSet(true);
49347 this.io = io;
49348 }
49349
49350
49351
49352
49353 public scannerOpenWithStopTs_result(scannerOpenWithStopTs_result other) {
49354 __isset_bitfield = other.__isset_bitfield;
49355 this.success = other.success;
49356 if (other.isSetIo()) {
49357 this.io = new IOError(other.io);
49358 }
49359 }
49360
49361 public scannerOpenWithStopTs_result deepCopy() {
49362 return new scannerOpenWithStopTs_result(this);
49363 }
49364
49365 @Override
49366 public void clear() {
49367 setSuccessIsSet(false);
49368 this.success = 0;
49369 this.io = null;
49370 }
49371
49372 public int getSuccess() {
49373 return this.success;
49374 }
49375
49376 public scannerOpenWithStopTs_result setSuccess(int success) {
49377 this.success = success;
49378 setSuccessIsSet(true);
49379 return this;
49380 }
49381
49382 public void unsetSuccess() {
49383 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
49384 }
49385
49386
49387 public boolean isSetSuccess() {
49388 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
49389 }
49390
49391 public void setSuccessIsSet(boolean value) {
49392 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
49393 }
49394
49395 public IOError getIo() {
49396 return this.io;
49397 }
49398
49399 public scannerOpenWithStopTs_result setIo(IOError io) {
49400 this.io = io;
49401 return this;
49402 }
49403
49404 public void unsetIo() {
49405 this.io = null;
49406 }
49407
49408
49409 public boolean isSetIo() {
49410 return this.io != null;
49411 }
49412
49413 public void setIoIsSet(boolean value) {
49414 if (!value) {
49415 this.io = null;
49416 }
49417 }
49418
49419 public void setFieldValue(_Fields field, Object value) {
49420 switch (field) {
49421 case SUCCESS:
49422 if (value == null) {
49423 unsetSuccess();
49424 } else {
49425 setSuccess((Integer)value);
49426 }
49427 break;
49428
49429 case IO:
49430 if (value == null) {
49431 unsetIo();
49432 } else {
49433 setIo((IOError)value);
49434 }
49435 break;
49436
49437 }
49438 }
49439
49440 public Object getFieldValue(_Fields field) {
49441 switch (field) {
49442 case SUCCESS:
49443 return Integer.valueOf(getSuccess());
49444
49445 case IO:
49446 return getIo();
49447
49448 }
49449 throw new IllegalStateException();
49450 }
49451
49452
49453 public boolean isSet(_Fields field) {
49454 if (field == null) {
49455 throw new IllegalArgumentException();
49456 }
49457
49458 switch (field) {
49459 case SUCCESS:
49460 return isSetSuccess();
49461 case IO:
49462 return isSetIo();
49463 }
49464 throw new IllegalStateException();
49465 }
49466
49467 @Override
49468 public boolean equals(Object that) {
49469 if (that == null)
49470 return false;
49471 if (that instanceof scannerOpenWithStopTs_result)
49472 return this.equals((scannerOpenWithStopTs_result)that);
49473 return false;
49474 }
49475
49476 public boolean equals(scannerOpenWithStopTs_result that) {
49477 if (that == null)
49478 return false;
49479
49480 boolean this_present_success = true;
49481 boolean that_present_success = true;
49482 if (this_present_success || that_present_success) {
49483 if (!(this_present_success && that_present_success))
49484 return false;
49485 if (this.success != that.success)
49486 return false;
49487 }
49488
49489 boolean this_present_io = true && this.isSetIo();
49490 boolean that_present_io = true && that.isSetIo();
49491 if (this_present_io || that_present_io) {
49492 if (!(this_present_io && that_present_io))
49493 return false;
49494 if (!this.io.equals(that.io))
49495 return false;
49496 }
49497
49498 return true;
49499 }
49500
49501 @Override
49502 public int hashCode() {
49503 HashCodeBuilder builder = new HashCodeBuilder();
49504
49505 boolean present_success = true;
49506 builder.append(present_success);
49507 if (present_success)
49508 builder.append(success);
49509
49510 boolean present_io = true && (isSetIo());
49511 builder.append(present_io);
49512 if (present_io)
49513 builder.append(io);
49514
49515 return builder.toHashCode();
49516 }
49517
49518 public int compareTo(scannerOpenWithStopTs_result other) {
49519 if (!getClass().equals(other.getClass())) {
49520 return getClass().getName().compareTo(other.getClass().getName());
49521 }
49522
49523 int lastComparison = 0;
49524 scannerOpenWithStopTs_result typedOther = (scannerOpenWithStopTs_result)other;
49525
49526 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
49527 if (lastComparison != 0) {
49528 return lastComparison;
49529 }
49530 if (isSetSuccess()) {
49531 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49532 if (lastComparison != 0) {
49533 return lastComparison;
49534 }
49535 }
49536 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
49537 if (lastComparison != 0) {
49538 return lastComparison;
49539 }
49540 if (isSetIo()) {
49541 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
49542 if (lastComparison != 0) {
49543 return lastComparison;
49544 }
49545 }
49546 return 0;
49547 }
49548
49549 public _Fields fieldForId(int fieldId) {
49550 return _Fields.findByThriftId(fieldId);
49551 }
49552
49553 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49554 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
49555 }
49556
49557 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49558 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
49559 }
49560
49561 @Override
49562 public String toString() {
49563 StringBuilder sb = new StringBuilder("scannerOpenWithStopTs_result(");
49564 boolean first = true;
49565
49566 sb.append("success:");
49567 sb.append(this.success);
49568 first = false;
49569 if (!first) sb.append(", ");
49570 sb.append("io:");
49571 if (this.io == null) {
49572 sb.append("null");
49573 } else {
49574 sb.append(this.io);
49575 }
49576 first = false;
49577 sb.append(")");
49578 return sb.toString();
49579 }
49580
49581 public void validate() throws org.apache.thrift.TException {
49582
49583
49584 }
49585
49586 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49587 try {
49588 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49589 } catch (org.apache.thrift.TException te) {
49590 throw new java.io.IOException(te);
49591 }
49592 }
49593
49594 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49595 try {
49596
49597 __isset_bitfield = 0;
49598 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49599 } catch (org.apache.thrift.TException te) {
49600 throw new java.io.IOException(te);
49601 }
49602 }
49603
49604 private static class scannerOpenWithStopTs_resultStandardSchemeFactory implements SchemeFactory {
49605 public scannerOpenWithStopTs_resultStandardScheme getScheme() {
49606 return new scannerOpenWithStopTs_resultStandardScheme();
49607 }
49608 }
49609
49610 private static class scannerOpenWithStopTs_resultStandardScheme extends StandardScheme<scannerOpenWithStopTs_result> {
49611
49612 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException {
49613 org.apache.thrift.protocol.TField schemeField;
49614 iprot.readStructBegin();
49615 while (true)
49616 {
49617 schemeField = iprot.readFieldBegin();
49618 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
49619 break;
49620 }
49621 switch (schemeField.id) {
49622 case 0:
49623 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
49624 struct.success = iprot.readI32();
49625 struct.setSuccessIsSet(true);
49626 } else {
49627 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49628 }
49629 break;
49630 case 1:
49631 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
49632 struct.io = new IOError();
49633 struct.io.read(iprot);
49634 struct.setIoIsSet(true);
49635 } else {
49636 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49637 }
49638 break;
49639 default:
49640 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
49641 }
49642 iprot.readFieldEnd();
49643 }
49644 iprot.readStructEnd();
49645
49646
49647 struct.validate();
49648 }
49649
49650 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException {
49651 struct.validate();
49652
49653 oprot.writeStructBegin(STRUCT_DESC);
49654 if (struct.isSetSuccess()) {
49655 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49656 oprot.writeI32(struct.success);
49657 oprot.writeFieldEnd();
49658 }
49659 if (struct.io != null) {
49660 oprot.writeFieldBegin(IO_FIELD_DESC);
49661 struct.io.write(oprot);
49662 oprot.writeFieldEnd();
49663 }
49664 oprot.writeFieldStop();
49665 oprot.writeStructEnd();
49666 }
49667
49668 }
49669
49670 private static class scannerOpenWithStopTs_resultTupleSchemeFactory implements SchemeFactory {
49671 public scannerOpenWithStopTs_resultTupleScheme getScheme() {
49672 return new scannerOpenWithStopTs_resultTupleScheme();
49673 }
49674 }
49675
49676 private static class scannerOpenWithStopTs_resultTupleScheme extends TupleScheme<scannerOpenWithStopTs_result> {
49677
49678 @Override
49679 public void write(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException {
49680 TTupleProtocol oprot = (TTupleProtocol) prot;
49681 BitSet optionals = new BitSet();
49682 if (struct.isSetSuccess()) {
49683 optionals.set(0);
49684 }
49685 if (struct.isSetIo()) {
49686 optionals.set(1);
49687 }
49688 oprot.writeBitSet(optionals, 2);
49689 if (struct.isSetSuccess()) {
49690 oprot.writeI32(struct.success);
49691 }
49692 if (struct.isSetIo()) {
49693 struct.io.write(oprot);
49694 }
49695 }
49696
49697 @Override
49698 public void read(org.apache.thrift.protocol.TProtocol prot, scannerOpenWithStopTs_result struct) throws org.apache.thrift.TException {
49699 TTupleProtocol iprot = (TTupleProtocol) prot;
49700 BitSet incoming = iprot.readBitSet(2);
49701 if (incoming.get(0)) {
49702 struct.success = iprot.readI32();
49703 struct.setSuccessIsSet(true);
49704 }
49705 if (incoming.get(1)) {
49706 struct.io = new IOError();
49707 struct.io.read(iprot);
49708 struct.setIoIsSet(true);
49709 }
49710 }
49711 }
49712
49713 }
49714
49715 public static class scannerGet_args implements org.apache.thrift.TBase<scannerGet_args, scannerGet_args._Fields>, java.io.Serializable, Cloneable {
49716 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGet_args");
49717
49718 private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1);
49719
49720 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
49721 static {
49722 schemes.put(StandardScheme.class, new scannerGet_argsStandardSchemeFactory());
49723 schemes.put(TupleScheme.class, new scannerGet_argsTupleSchemeFactory());
49724 }
49725
49726
49727
49728
49729 public int id;
49730
49731
49732 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49733
49734
49735
49736 ID((short)1, "id");
49737
49738 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49739
49740 static {
49741 for (_Fields field : EnumSet.allOf(_Fields.class)) {
49742 byName.put(field.getFieldName(), field);
49743 }
49744 }
49745
49746
49747
49748
49749 public static _Fields findByThriftId(int fieldId) {
49750 switch(fieldId) {
49751 case 1:
49752 return ID;
49753 default:
49754 return null;
49755 }
49756 }
49757
49758
49759
49760
49761
49762 public static _Fields findByThriftIdOrThrow(int fieldId) {
49763 _Fields fields = findByThriftId(fieldId);
49764 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49765 return fields;
49766 }
49767
49768
49769
49770
49771 public static _Fields findByName(String name) {
49772 return byName.get(name);
49773 }
49774
49775 private final short _thriftId;
49776 private final String _fieldName;
49777
49778 _Fields(short thriftId, String fieldName) {
49779 _thriftId = thriftId;
49780 _fieldName = fieldName;
49781 }
49782
49783 public short getThriftFieldId() {
49784 return _thriftId;
49785 }
49786
49787 public String getFieldName() {
49788 return _fieldName;
49789 }
49790 }
49791
49792
49793 private static final int __ID_ISSET_ID = 0;
49794 private byte __isset_bitfield = 0;
49795 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49796 static {
49797 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49798 tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
49799 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID")));
49800 metaDataMap = Collections.unmodifiableMap(tmpMap);
49801 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGet_args.class, metaDataMap);
49802 }
49803
49804 public scannerGet_args() {
49805 }
49806
49807 public scannerGet_args(
49808 int id)
49809 {
49810 this();
49811 this.id = id;
49812 setIdIsSet(true);
49813 }
49814
49815
49816
49817
49818 public scannerGet_args(scannerGet_args other) {
49819 __isset_bitfield = other.__isset_bitfield;
49820 this.id = other.id;
49821 }
49822
49823 public scannerGet_args deepCopy() {
49824 return new scannerGet_args(this);
49825 }
49826
49827 @Override
49828 public void clear() {
49829 setIdIsSet(false);
49830 this.id = 0;
49831 }
49832
49833
49834
49835
49836 public int getId() {
49837 return this.id;
49838 }
49839
49840
49841
49842
49843 public scannerGet_args setId(int id) {
49844 this.id = id;
49845 setIdIsSet(true);
49846 return this;
49847 }
49848
49849 public void unsetId() {
49850 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID);
49851 }
49852
49853
49854 public boolean isSetId() {
49855 return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);
49856 }
49857
49858 public void setIdIsSet(boolean value) {
49859 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value);
49860 }
49861
49862 public void setFieldValue(_Fields field, Object value) {
49863 switch (field) {
49864 case ID:
49865 if (value == null) {
49866 unsetId();
49867 } else {
49868 setId((Integer)value);
49869 }
49870 break;
49871
49872 }
49873 }
49874
49875 public Object getFieldValue(_Fields field) {
49876 switch (field) {
49877 case ID:
49878 return Integer.valueOf(getId());
49879
49880 }
49881 throw new IllegalStateException();
49882 }
49883
49884
49885 public boolean isSet(_Fields field) {
49886 if (field == null) {
49887 throw new IllegalArgumentException();
49888 }
49889
49890 switch (field) {
49891 case ID:
49892 return isSetId();
49893 }
49894 throw new IllegalStateException();
49895 }
49896
49897 @Override
49898 public boolean equals(Object that) {
49899 if (that == null)
49900 return false;
49901 if (that instanceof scannerGet_args)
49902 return this.equals((scannerGet_args)that);
49903 return false;
49904 }
49905
49906 public boolean equals(scannerGet_args that) {
49907 if (that == null)
49908 return false;
49909
49910 boolean this_present_id = true;
49911 boolean that_present_id = true;
49912 if (this_present_id || that_present_id) {
49913 if (!(this_present_id && that_present_id))
49914 return false;
49915 if (this.id != that.id)
49916 return false;
49917 }
49918
49919 return true;
49920 }
49921
49922 @Override
49923 public int hashCode() {
49924 HashCodeBuilder builder = new HashCodeBuilder();
49925
49926 boolean present_id = true;
49927 builder.append(present_id);
49928 if (present_id)
49929 builder.append(id);
49930
49931 return builder.toHashCode();
49932 }
49933
49934 public int compareTo(scannerGet_args other) {
49935 if (!getClass().equals(other.getClass())) {
49936 return getClass().getName().compareTo(other.getClass().getName());
49937 }
49938
49939 int lastComparison = 0;
49940 scannerGet_args typedOther = (scannerGet_args)other;
49941
49942 lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
49943 if (lastComparison != 0) {
49944 return lastComparison;
49945 }
49946 if (isSetId()) {
49947 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
49948 if (lastComparison != 0) {
49949 return lastComparison;
49950 }
49951 }
49952 return 0;
49953 }
49954
49955 public _Fields fieldForId(int fieldId) {
49956 return _Fields.findByThriftId(fieldId);
49957 }
49958
49959 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49960 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
49961 }
49962
49963 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49964 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
49965 }
49966
49967 @Override
49968 public String toString() {
49969 StringBuilder sb = new StringBuilder("scannerGet_args(");
49970 boolean first = true;
49971
49972 sb.append("id:");
49973 sb.append(this.id);
49974 first = false;
49975 sb.append(")");
49976 return sb.toString();
49977 }
49978
49979 public void validate() throws org.apache.thrift.TException {
49980
49981
49982 }
49983
49984 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49985 try {
49986 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49987 } catch (org.apache.thrift.TException te) {
49988 throw new java.io.IOException(te);
49989 }
49990 }
49991
49992 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49993 try {
49994
49995 __isset_bitfield = 0;
49996 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49997 } catch (org.apache.thrift.TException te) {
49998 throw new java.io.IOException(te);
49999 }
50000 }
50001
50002 private static class scannerGet_argsStandardSchemeFactory implements SchemeFactory {
50003 public scannerGet_argsStandardScheme getScheme() {
50004 return new scannerGet_argsStandardScheme();
50005 }
50006 }
50007
50008 private static class scannerGet_argsStandardScheme extends StandardScheme<scannerGet_args> {
50009
50010 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGet_args struct) throws org.apache.thrift.TException {
50011 org.apache.thrift.protocol.TField schemeField;
50012 iprot.readStructBegin();
50013 while (true)
50014 {
50015 schemeField = iprot.readFieldBegin();
50016 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
50017 break;
50018 }
50019 switch (schemeField.id) {
50020 case 1:
50021 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
50022 struct.id = iprot.readI32();
50023 struct.setIdIsSet(true);
50024 } else {
50025 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
50026 }
50027 break;
50028 default:
50029 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
50030 }
50031 iprot.readFieldEnd();
50032 }
50033 iprot.readStructEnd();
50034
50035
50036 struct.validate();
50037 }
50038
50039 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGet_args struct) throws org.apache.thrift.TException {
50040 struct.validate();
50041
50042 oprot.writeStructBegin(STRUCT_DESC);
50043 oprot.writeFieldBegin(ID_FIELD_DESC);
50044 oprot.writeI32(struct.id);
50045 oprot.writeFieldEnd();
50046 oprot.writeFieldStop();
50047 oprot.writeStructEnd();
50048 }
50049
50050 }
50051
50052 private static class scannerGet_argsTupleSchemeFactory implements SchemeFactory {
50053 public scannerGet_argsTupleScheme getScheme() {
50054 return new scannerGet_argsTupleScheme();
50055 }
50056 }
50057
50058 private static class scannerGet_argsTupleScheme extends TupleScheme<scannerGet_args> {
50059
50060 @Override
50061 public void write(org.apache.thrift.protocol.TProtocol prot, scannerGet_args struct) throws org.apache.thrift.TException {
50062 TTupleProtocol oprot = (TTupleProtocol) prot;
50063 BitSet optionals = new BitSet();
50064 if (struct.isSetId()) {
50065 optionals.set(0);
50066 }
50067 oprot.writeBitSet(optionals, 1);
50068 if (struct.isSetId()) {
50069 oprot.writeI32(struct.id);
50070 }
50071 }
50072
50073 @Override
50074 public void read(org.apache.thrift.protocol.TProtocol prot, scannerGet_args struct) throws org.apache.thrift.TException {
50075 TTupleProtocol iprot = (TTupleProtocol) prot;
50076 BitSet incoming = iprot.readBitSet(1);
50077 if (incoming.get(0)) {
50078 struct.id = iprot.readI32();
50079 struct.setIdIsSet(true);
50080 }
50081 }
50082 }
50083
50084 }
50085
50086 public static class scannerGet_result implements org.apache.thrift.TBase<scannerGet_result, scannerGet_result._Fields>, java.io.Serializable, Cloneable {
50087 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGet_result");
50088
50089 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
50090 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
50091 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
50092
50093 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
50094 static {
50095 schemes.put(StandardScheme.class, new scannerGet_resultStandardSchemeFactory());
50096 schemes.put(TupleScheme.class, new scannerGet_resultTupleSchemeFactory());
50097 }
50098
50099 public List<TRowResult> success;
50100 public IOError io;
50101 public IllegalArgument ia;
50102
50103
50104 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50105 SUCCESS((short)0, "success"),
50106 IO((short)1, "io"),
50107 IA((short)2, "ia");
50108
50109 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50110
50111 static {
50112 for (_Fields field : EnumSet.allOf(_Fields.class)) {
50113 byName.put(field.getFieldName(), field);
50114 }
50115 }
50116
50117
50118
50119
50120 public static _Fields findByThriftId(int fieldId) {
50121 switch(fieldId) {
50122 case 0:
50123 return SUCCESS;
50124 case 1:
50125 return IO;
50126 case 2:
50127 return IA;
50128 default:
50129 return null;
50130 }
50131 }
50132
50133
50134
50135
50136
50137 public static _Fields findByThriftIdOrThrow(int fieldId) {
50138 _Fields fields = findByThriftId(fieldId);
50139 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50140 return fields;
50141 }
50142
50143
50144
50145
50146 public static _Fields findByName(String name) {
50147 return byName.get(name);
50148 }
50149
50150 private final short _thriftId;
50151 private final String _fieldName;
50152
50153 _Fields(short thriftId, String fieldName) {
50154 _thriftId = thriftId;
50155 _fieldName = fieldName;
50156 }
50157
50158 public short getThriftFieldId() {
50159 return _thriftId;
50160 }
50161
50162 public String getFieldName() {
50163 return _fieldName;
50164 }
50165 }
50166
50167
50168 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50169 static {
50170 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50171 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
50172 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
50173 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
50174 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
50175 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
50176 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT,
50177 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
50178 metaDataMap = Collections.unmodifiableMap(tmpMap);
50179 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGet_result.class, metaDataMap);
50180 }
50181
50182 public scannerGet_result() {
50183 }
50184
50185 public scannerGet_result(
50186 List<TRowResult> success,
50187 IOError io,
50188 IllegalArgument ia)
50189 {
50190 this();
50191 this.success = success;
50192 this.io = io;
50193 this.ia = ia;
50194 }
50195
50196
50197
50198
50199 public scannerGet_result(scannerGet_result other) {
50200 if (other.isSetSuccess()) {
50201 List<TRowResult> __this__success = new ArrayList<TRowResult>();
50202 for (TRowResult other_element : other.success) {
50203 __this__success.add(new TRowResult(other_element));
50204 }
50205 this.success = __this__success;
50206 }
50207 if (other.isSetIo()) {
50208 this.io = new IOError(other.io);
50209 }
50210 if (other.isSetIa()) {
50211 this.ia = new IllegalArgument(other.ia);
50212 }
50213 }
50214
50215 public scannerGet_result deepCopy() {
50216 return new scannerGet_result(this);
50217 }
50218
50219 @Override
50220 public void clear() {
50221 this.success = null;
50222 this.io = null;
50223 this.ia = null;
50224 }
50225
50226 public int getSuccessSize() {
50227 return (this.success == null) ? 0 : this.success.size();
50228 }
50229
50230 public java.util.Iterator<TRowResult> getSuccessIterator() {
50231 return (this.success == null) ? null : this.success.iterator();
50232 }
50233
50234 public void addToSuccess(TRowResult elem) {
50235 if (this.success == null) {
50236 this.success = new ArrayList<TRowResult>();
50237 }
50238 this.success.add(elem);
50239 }
50240
50241 public List<TRowResult> getSuccess() {
50242 return this.success;
50243 }
50244
50245 public scannerGet_result setSuccess(List<TRowResult> success) {
50246 this.success = success;
50247 return this;
50248 }
50249
50250 public void unsetSuccess() {
50251 this.success = null;
50252 }
50253
50254
50255 public boolean isSetSuccess() {
50256 return this.success != null;
50257 }
50258
50259 public void setSuccessIsSet(boolean value) {
50260 if (!value) {
50261 this.success = null;
50262 }
50263 }
50264
50265 public IOError getIo() {
50266 return this.io;
50267 }
50268
50269 public scannerGet_result setIo(IOError io) {
50270 this.io = io;
50271 return this;
50272 }
50273
50274 public void unsetIo() {
50275 this.io = null;
50276 }
50277
50278
50279 public boolean isSetIo() {
50280 return this.io != null;
50281 }
50282
50283 public void setIoIsSet(boolean value) {
50284 if (!value) {
50285 this.io = null;
50286 }
50287 }
50288
50289 public IllegalArgument getIa() {
50290 return this.ia;
50291 }
50292
50293 public scannerGet_result setIa(IllegalArgument ia) {
50294 this.ia = ia;
50295 return this;
50296 }
50297
50298 public void unsetIa() {
50299 this.ia = null;
50300 }
50301
50302
50303 public boolean isSetIa() {
50304 return this.ia != null;
50305 }
50306
50307 public void setIaIsSet(boolean value) {
50308 if (!value) {
50309 this.ia = null;
50310 }
50311 }
50312
50313 public void setFieldValue(_Fields field, Object value) {
50314 switch (field) {
50315 case SUCCESS:
50316 if (value == null) {
50317 unsetSuccess();
50318 } else {
50319 setSuccess((List<TRowResult>)value);
50320 }
50321 break;
50322
50323 case IO:
50324 if (value == null) {
50325 unsetIo();
50326 } else {
50327 setIo((IOError)value);
50328 }
50329 break;
50330
50331 case IA:
50332 if (value == null) {
50333 unsetIa();
50334 } else {
50335 setIa((IllegalArgument)value);
50336 }
50337 break;
50338
50339 }
50340 }
50341
50342 public Object getFieldValue(_Fields field) {
50343 switch (field) {
50344 case SUCCESS:
50345 return getSuccess();
50346
50347 case IO:
50348 return getIo();
50349
50350 case IA:
50351 return getIa();
50352
50353 }
50354 throw new IllegalStateException();
50355 }
50356
50357
50358 public boolean isSet(_Fields field) {
50359 if (field == null) {
50360 throw new IllegalArgumentException();
50361 }
50362
50363 switch (field) {
50364 case SUCCESS:
50365 return isSetSuccess();
50366 case IO:
50367 return isSetIo();
50368 case IA:
50369 return isSetIa();
50370 }
50371 throw new IllegalStateException();
50372 }
50373
50374 @Override
50375 public boolean equals(Object that) {
50376 if (that == null)
50377 return false;
50378 if (that instanceof scannerGet_result)
50379 return this.equals((scannerGet_result)that);
50380 return false;
50381 }
50382
50383 public boolean equals(scannerGet_result that) {
50384 if (that == null)
50385 return false;
50386
50387 boolean this_present_success = true && this.isSetSuccess();
50388 boolean that_present_success = true && that.isSetSuccess();
50389 if (this_present_success || that_present_success) {
50390 if (!(this_present_success && that_present_success))
50391 return false;
50392 if (!this.success.equals(that.success))
50393 return false;
50394 }
50395
50396 boolean this_present_io = true && this.isSetIo();
50397 boolean that_present_io = true && that.isSetIo();
50398 if (this_present_io || that_present_io) {
50399 if (!(this_present_io && that_present_io))
50400 return false;
50401 if (!this.io.equals(that.io))
50402 return false;
50403 }
50404
50405 boolean this_present_ia = true && this.isSetIa();
50406 boolean that_present_ia = true && that.isSetIa();
50407 if (this_present_ia || that_present_ia) {
50408 if (!(this_present_ia && that_present_ia))
50409 return false;
50410 if (!this.ia.equals(that.ia))
50411 return false;
50412 }
50413
50414 return true;
50415 }
50416
50417 @Override
50418 public int hashCode() {
50419 HashCodeBuilder builder = new HashCodeBuilder();
50420
50421 boolean present_success = true && (isSetSuccess());
50422 builder.append(present_success);
50423 if (present_success)
50424 builder.append(success);
50425
50426 boolean present_io = true && (isSetIo());
50427 builder.append(present_io);
50428 if (present_io)
50429 builder.append(io);
50430
50431 boolean present_ia = true && (isSetIa());
50432 builder.append(present_ia);
50433 if (present_ia)
50434 builder.append(ia);
50435
50436 return builder.toHashCode();
50437 }
50438
50439 public int compareTo(scannerGet_result other) {
50440 if (!getClass().equals(other.getClass())) {
50441 return getClass().getName().compareTo(other.getClass().getName());
50442 }
50443
50444 int lastComparison = 0;
50445 scannerGet_result typedOther = (scannerGet_result)other;
50446
50447 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
50448 if (lastComparison != 0) {
50449 return lastComparison;
50450 }
50451 if (isSetSuccess()) {
50452 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50453 if (lastComparison != 0) {
50454 return lastComparison;
50455 }
50456 }
50457 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
50458 if (lastComparison != 0) {
50459 return lastComparison;
50460 }
50461 if (isSetIo()) {
50462 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
50463 if (lastComparison != 0) {
50464 return lastComparison;
50465 }
50466 }
50467 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
50468 if (lastComparison != 0) {
50469 return lastComparison;
50470 }
50471 if (isSetIa()) {
50472 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
50473 if (lastComparison != 0) {
50474 return lastComparison;
50475 }
50476 }
50477 return 0;
50478 }
50479
50480 public _Fields fieldForId(int fieldId) {
50481 return _Fields.findByThriftId(fieldId);
50482 }
50483
50484 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50485 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
50486 }
50487
50488 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50489 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
50490 }
50491
50492 @Override
50493 public String toString() {
50494 StringBuilder sb = new StringBuilder("scannerGet_result(");
50495 boolean first = true;
50496
50497 sb.append("success:");
50498 if (this.success == null) {
50499 sb.append("null");
50500 } else {
50501 sb.append(this.success);
50502 }
50503 first = false;
50504 if (!first) sb.append(", ");
50505 sb.append("io:");
50506 if (this.io == null) {
50507 sb.append("null");
50508 } else {
50509 sb.append(this.io);
50510 }
50511 first = false;
50512 if (!first) sb.append(", ");
50513 sb.append("ia:");
50514 if (this.ia == null) {
50515 sb.append("null");
50516 } else {
50517 sb.append(this.ia);
50518 }
50519 first = false;
50520 sb.append(")");
50521 return sb.toString();
50522 }
50523
50524 public void validate() throws org.apache.thrift.TException {
50525
50526
50527 }
50528
50529 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50530 try {
50531 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50532 } catch (org.apache.thrift.TException te) {
50533 throw new java.io.IOException(te);
50534 }
50535 }
50536
50537 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50538 try {
50539 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50540 } catch (org.apache.thrift.TException te) {
50541 throw new java.io.IOException(te);
50542 }
50543 }
50544
50545 private static class scannerGet_resultStandardSchemeFactory implements SchemeFactory {
50546 public scannerGet_resultStandardScheme getScheme() {
50547 return new scannerGet_resultStandardScheme();
50548 }
50549 }
50550
50551 private static class scannerGet_resultStandardScheme extends StandardScheme<scannerGet_result> {
50552
50553 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGet_result struct) throws org.apache.thrift.TException {
50554 org.apache.thrift.protocol.TField schemeField;
50555 iprot.readStructBegin();
50556 while (true)
50557 {
50558 schemeField = iprot.readFieldBegin();
50559 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
50560 break;
50561 }
50562 switch (schemeField.id) {
50563 case 0:
50564 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
50565 {
50566 org.apache.thrift.protocol.TList _list566 = iprot.readListBegin();
50567 struct.success = new ArrayList<TRowResult>(_list566.size);
50568 for (int _i567 = 0; _i567 < _list566.size; ++_i567)
50569 {
50570 TRowResult _elem568;
50571 _elem568 = new TRowResult();
50572 _elem568.read(iprot);
50573 struct.success.add(_elem568);
50574 }
50575 iprot.readListEnd();
50576 }
50577 struct.setSuccessIsSet(true);
50578 } else {
50579 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
50580 }
50581 break;
50582 case 1:
50583 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
50584 struct.io = new IOError();
50585 struct.io.read(iprot);
50586 struct.setIoIsSet(true);
50587 } else {
50588 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
50589 }
50590 break;
50591 case 2:
50592 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
50593 struct.ia = new IllegalArgument();
50594 struct.ia.read(iprot);
50595 struct.setIaIsSet(true);
50596 } else {
50597 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
50598 }
50599 break;
50600 default:
50601 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
50602 }
50603 iprot.readFieldEnd();
50604 }
50605 iprot.readStructEnd();
50606
50607
50608 struct.validate();
50609 }
50610
50611 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGet_result struct) throws org.apache.thrift.TException {
50612 struct.validate();
50613
50614 oprot.writeStructBegin(STRUCT_DESC);
50615 if (struct.success != null) {
50616 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50617 {
50618 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
50619 for (TRowResult _iter569 : struct.success)
50620 {
50621 _iter569.write(oprot);
50622 }
50623 oprot.writeListEnd();
50624 }
50625 oprot.writeFieldEnd();
50626 }
50627 if (struct.io != null) {
50628 oprot.writeFieldBegin(IO_FIELD_DESC);
50629 struct.io.write(oprot);
50630 oprot.writeFieldEnd();
50631 }
50632 if (struct.ia != null) {
50633 oprot.writeFieldBegin(IA_FIELD_DESC);
50634 struct.ia.write(oprot);
50635 oprot.writeFieldEnd();
50636 }
50637 oprot.writeFieldStop();
50638 oprot.writeStructEnd();
50639 }
50640
50641 }
50642
50643 private static class scannerGet_resultTupleSchemeFactory implements SchemeFactory {
50644 public scannerGet_resultTupleScheme getScheme() {
50645 return new scannerGet_resultTupleScheme();
50646 }
50647 }
50648
50649 private static class scannerGet_resultTupleScheme extends TupleScheme<scannerGet_result> {
50650
50651 @Override
50652 public void write(org.apache.thrift.protocol.TProtocol prot, scannerGet_result struct) throws org.apache.thrift.TException {
50653 TTupleProtocol oprot = (TTupleProtocol) prot;
50654 BitSet optionals = new BitSet();
50655 if (struct.isSetSuccess()) {
50656 optionals.set(0);
50657 }
50658 if (struct.isSetIo()) {
50659 optionals.set(1);
50660 }
50661 if (struct.isSetIa()) {
50662 optionals.set(2);
50663 }
50664 oprot.writeBitSet(optionals, 3);
50665 if (struct.isSetSuccess()) {
50666 {
50667 oprot.writeI32(struct.success.size());
50668 for (TRowResult _iter570 : struct.success)
50669 {
50670 _iter570.write(oprot);
50671 }
50672 }
50673 }
50674 if (struct.isSetIo()) {
50675 struct.io.write(oprot);
50676 }
50677 if (struct.isSetIa()) {
50678 struct.ia.write(oprot);
50679 }
50680 }
50681
50682 @Override
50683 public void read(org.apache.thrift.protocol.TProtocol prot, scannerGet_result struct) throws org.apache.thrift.TException {
50684 TTupleProtocol iprot = (TTupleProtocol) prot;
50685 BitSet incoming = iprot.readBitSet(3);
50686 if (incoming.get(0)) {
50687 {
50688 org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
50689 struct.success = new ArrayList<TRowResult>(_list571.size);
50690 for (int _i572 = 0; _i572 < _list571.size; ++_i572)
50691 {
50692 TRowResult _elem573;
50693 _elem573 = new TRowResult();
50694 _elem573.read(iprot);
50695 struct.success.add(_elem573);
50696 }
50697 }
50698 struct.setSuccessIsSet(true);
50699 }
50700 if (incoming.get(1)) {
50701 struct.io = new IOError();
50702 struct.io.read(iprot);
50703 struct.setIoIsSet(true);
50704 }
50705 if (incoming.get(2)) {
50706 struct.ia = new IllegalArgument();
50707 struct.ia.read(iprot);
50708 struct.setIaIsSet(true);
50709 }
50710 }
50711 }
50712
50713 }
50714
50715 public static class scannerGetList_args implements org.apache.thrift.TBase<scannerGetList_args, scannerGetList_args._Fields>, java.io.Serializable, Cloneable {
50716 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGetList_args");
50717
50718 private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1);
50719 private static final org.apache.thrift.protocol.TField NB_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("nbRows", org.apache.thrift.protocol.TType.I32, (short)2);
50720
50721 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
50722 static {
50723 schemes.put(StandardScheme.class, new scannerGetList_argsStandardSchemeFactory());
50724 schemes.put(TupleScheme.class, new scannerGetList_argsTupleSchemeFactory());
50725 }
50726
50727
50728
50729
50730 public int id;
50731
50732
50733
50734 public int nbRows;
50735
50736
50737 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50738
50739
50740
50741 ID((short)1, "id"),
50742
50743
50744
50745 NB_ROWS((short)2, "nbRows");
50746
50747 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50748
50749 static {
50750 for (_Fields field : EnumSet.allOf(_Fields.class)) {
50751 byName.put(field.getFieldName(), field);
50752 }
50753 }
50754
50755
50756
50757
50758 public static _Fields findByThriftId(int fieldId) {
50759 switch(fieldId) {
50760 case 1:
50761 return ID;
50762 case 2:
50763 return NB_ROWS;
50764 default:
50765 return null;
50766 }
50767 }
50768
50769
50770
50771
50772
50773 public static _Fields findByThriftIdOrThrow(int fieldId) {
50774 _Fields fields = findByThriftId(fieldId);
50775 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50776 return fields;
50777 }
50778
50779
50780
50781
50782 public static _Fields findByName(String name) {
50783 return byName.get(name);
50784 }
50785
50786 private final short _thriftId;
50787 private final String _fieldName;
50788
50789 _Fields(short thriftId, String fieldName) {
50790 _thriftId = thriftId;
50791 _fieldName = fieldName;
50792 }
50793
50794 public short getThriftFieldId() {
50795 return _thriftId;
50796 }
50797
50798 public String getFieldName() {
50799 return _fieldName;
50800 }
50801 }
50802
50803
50804 private static final int __ID_ISSET_ID = 0;
50805 private static final int __NBROWS_ISSET_ID = 1;
50806 private byte __isset_bitfield = 0;
50807 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50808 static {
50809 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50810 tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
50811 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID")));
50812 tmpMap.put(_Fields.NB_ROWS, new org.apache.thrift.meta_data.FieldMetaData("nbRows", org.apache.thrift.TFieldRequirementType.DEFAULT,
50813 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
50814 metaDataMap = Collections.unmodifiableMap(tmpMap);
50815 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGetList_args.class, metaDataMap);
50816 }
50817
50818 public scannerGetList_args() {
50819 }
50820
50821 public scannerGetList_args(
50822 int id,
50823 int nbRows)
50824 {
50825 this();
50826 this.id = id;
50827 setIdIsSet(true);
50828 this.nbRows = nbRows;
50829 setNbRowsIsSet(true);
50830 }
50831
50832
50833
50834
50835 public scannerGetList_args(scannerGetList_args other) {
50836 __isset_bitfield = other.__isset_bitfield;
50837 this.id = other.id;
50838 this.nbRows = other.nbRows;
50839 }
50840
50841 public scannerGetList_args deepCopy() {
50842 return new scannerGetList_args(this);
50843 }
50844
50845 @Override
50846 public void clear() {
50847 setIdIsSet(false);
50848 this.id = 0;
50849 setNbRowsIsSet(false);
50850 this.nbRows = 0;
50851 }
50852
50853
50854
50855
50856 public int getId() {
50857 return this.id;
50858 }
50859
50860
50861
50862
50863 public scannerGetList_args setId(int id) {
50864 this.id = id;
50865 setIdIsSet(true);
50866 return this;
50867 }
50868
50869 public void unsetId() {
50870 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID);
50871 }
50872
50873
50874 public boolean isSetId() {
50875 return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);
50876 }
50877
50878 public void setIdIsSet(boolean value) {
50879 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value);
50880 }
50881
50882
50883
50884
50885 public int getNbRows() {
50886 return this.nbRows;
50887 }
50888
50889
50890
50891
50892 public scannerGetList_args setNbRows(int nbRows) {
50893 this.nbRows = nbRows;
50894 setNbRowsIsSet(true);
50895 return this;
50896 }
50897
50898 public void unsetNbRows() {
50899 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NBROWS_ISSET_ID);
50900 }
50901
50902
50903 public boolean isSetNbRows() {
50904 return EncodingUtils.testBit(__isset_bitfield, __NBROWS_ISSET_ID);
50905 }
50906
50907 public void setNbRowsIsSet(boolean value) {
50908 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NBROWS_ISSET_ID, value);
50909 }
50910
50911 public void setFieldValue(_Fields field, Object value) {
50912 switch (field) {
50913 case ID:
50914 if (value == null) {
50915 unsetId();
50916 } else {
50917 setId((Integer)value);
50918 }
50919 break;
50920
50921 case NB_ROWS:
50922 if (value == null) {
50923 unsetNbRows();
50924 } else {
50925 setNbRows((Integer)value);
50926 }
50927 break;
50928
50929 }
50930 }
50931
50932 public Object getFieldValue(_Fields field) {
50933 switch (field) {
50934 case ID:
50935 return Integer.valueOf(getId());
50936
50937 case NB_ROWS:
50938 return Integer.valueOf(getNbRows());
50939
50940 }
50941 throw new IllegalStateException();
50942 }
50943
50944
50945 public boolean isSet(_Fields field) {
50946 if (field == null) {
50947 throw new IllegalArgumentException();
50948 }
50949
50950 switch (field) {
50951 case ID:
50952 return isSetId();
50953 case NB_ROWS:
50954 return isSetNbRows();
50955 }
50956 throw new IllegalStateException();
50957 }
50958
50959 @Override
50960 public boolean equals(Object that) {
50961 if (that == null)
50962 return false;
50963 if (that instanceof scannerGetList_args)
50964 return this.equals((scannerGetList_args)that);
50965 return false;
50966 }
50967
50968 public boolean equals(scannerGetList_args that) {
50969 if (that == null)
50970 return false;
50971
50972 boolean this_present_id = true;
50973 boolean that_present_id = true;
50974 if (this_present_id || that_present_id) {
50975 if (!(this_present_id && that_present_id))
50976 return false;
50977 if (this.id != that.id)
50978 return false;
50979 }
50980
50981 boolean this_present_nbRows = true;
50982 boolean that_present_nbRows = true;
50983 if (this_present_nbRows || that_present_nbRows) {
50984 if (!(this_present_nbRows && that_present_nbRows))
50985 return false;
50986 if (this.nbRows != that.nbRows)
50987 return false;
50988 }
50989
50990 return true;
50991 }
50992
50993 @Override
50994 public int hashCode() {
50995 HashCodeBuilder builder = new HashCodeBuilder();
50996
50997 boolean present_id = true;
50998 builder.append(present_id);
50999 if (present_id)
51000 builder.append(id);
51001
51002 boolean present_nbRows = true;
51003 builder.append(present_nbRows);
51004 if (present_nbRows)
51005 builder.append(nbRows);
51006
51007 return builder.toHashCode();
51008 }
51009
51010 public int compareTo(scannerGetList_args other) {
51011 if (!getClass().equals(other.getClass())) {
51012 return getClass().getName().compareTo(other.getClass().getName());
51013 }
51014
51015 int lastComparison = 0;
51016 scannerGetList_args typedOther = (scannerGetList_args)other;
51017
51018 lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
51019 if (lastComparison != 0) {
51020 return lastComparison;
51021 }
51022 if (isSetId()) {
51023 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
51024 if (lastComparison != 0) {
51025 return lastComparison;
51026 }
51027 }
51028 lastComparison = Boolean.valueOf(isSetNbRows()).compareTo(typedOther.isSetNbRows());
51029 if (lastComparison != 0) {
51030 return lastComparison;
51031 }
51032 if (isSetNbRows()) {
51033 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nbRows, typedOther.nbRows);
51034 if (lastComparison != 0) {
51035 return lastComparison;
51036 }
51037 }
51038 return 0;
51039 }
51040
51041 public _Fields fieldForId(int fieldId) {
51042 return _Fields.findByThriftId(fieldId);
51043 }
51044
51045 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51046 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
51047 }
51048
51049 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51050 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
51051 }
51052
51053 @Override
51054 public String toString() {
51055 StringBuilder sb = new StringBuilder("scannerGetList_args(");
51056 boolean first = true;
51057
51058 sb.append("id:");
51059 sb.append(this.id);
51060 first = false;
51061 if (!first) sb.append(", ");
51062 sb.append("nbRows:");
51063 sb.append(this.nbRows);
51064 first = false;
51065 sb.append(")");
51066 return sb.toString();
51067 }
51068
51069 public void validate() throws org.apache.thrift.TException {
51070
51071
51072 }
51073
51074 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51075 try {
51076 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51077 } catch (org.apache.thrift.TException te) {
51078 throw new java.io.IOException(te);
51079 }
51080 }
51081
51082 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51083 try {
51084
51085 __isset_bitfield = 0;
51086 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51087 } catch (org.apache.thrift.TException te) {
51088 throw new java.io.IOException(te);
51089 }
51090 }
51091
51092 private static class scannerGetList_argsStandardSchemeFactory implements SchemeFactory {
51093 public scannerGetList_argsStandardScheme getScheme() {
51094 return new scannerGetList_argsStandardScheme();
51095 }
51096 }
51097
51098 private static class scannerGetList_argsStandardScheme extends StandardScheme<scannerGetList_args> {
51099
51100 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGetList_args struct) throws org.apache.thrift.TException {
51101 org.apache.thrift.protocol.TField schemeField;
51102 iprot.readStructBegin();
51103 while (true)
51104 {
51105 schemeField = iprot.readFieldBegin();
51106 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
51107 break;
51108 }
51109 switch (schemeField.id) {
51110 case 1:
51111 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
51112 struct.id = iprot.readI32();
51113 struct.setIdIsSet(true);
51114 } else {
51115 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51116 }
51117 break;
51118 case 2:
51119 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
51120 struct.nbRows = iprot.readI32();
51121 struct.setNbRowsIsSet(true);
51122 } else {
51123 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51124 }
51125 break;
51126 default:
51127 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51128 }
51129 iprot.readFieldEnd();
51130 }
51131 iprot.readStructEnd();
51132
51133
51134 struct.validate();
51135 }
51136
51137 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGetList_args struct) throws org.apache.thrift.TException {
51138 struct.validate();
51139
51140 oprot.writeStructBegin(STRUCT_DESC);
51141 oprot.writeFieldBegin(ID_FIELD_DESC);
51142 oprot.writeI32(struct.id);
51143 oprot.writeFieldEnd();
51144 oprot.writeFieldBegin(NB_ROWS_FIELD_DESC);
51145 oprot.writeI32(struct.nbRows);
51146 oprot.writeFieldEnd();
51147 oprot.writeFieldStop();
51148 oprot.writeStructEnd();
51149 }
51150
51151 }
51152
51153 private static class scannerGetList_argsTupleSchemeFactory implements SchemeFactory {
51154 public scannerGetList_argsTupleScheme getScheme() {
51155 return new scannerGetList_argsTupleScheme();
51156 }
51157 }
51158
51159 private static class scannerGetList_argsTupleScheme extends TupleScheme<scannerGetList_args> {
51160
51161 @Override
51162 public void write(org.apache.thrift.protocol.TProtocol prot, scannerGetList_args struct) throws org.apache.thrift.TException {
51163 TTupleProtocol oprot = (TTupleProtocol) prot;
51164 BitSet optionals = new BitSet();
51165 if (struct.isSetId()) {
51166 optionals.set(0);
51167 }
51168 if (struct.isSetNbRows()) {
51169 optionals.set(1);
51170 }
51171 oprot.writeBitSet(optionals, 2);
51172 if (struct.isSetId()) {
51173 oprot.writeI32(struct.id);
51174 }
51175 if (struct.isSetNbRows()) {
51176 oprot.writeI32(struct.nbRows);
51177 }
51178 }
51179
51180 @Override
51181 public void read(org.apache.thrift.protocol.TProtocol prot, scannerGetList_args struct) throws org.apache.thrift.TException {
51182 TTupleProtocol iprot = (TTupleProtocol) prot;
51183 BitSet incoming = iprot.readBitSet(2);
51184 if (incoming.get(0)) {
51185 struct.id = iprot.readI32();
51186 struct.setIdIsSet(true);
51187 }
51188 if (incoming.get(1)) {
51189 struct.nbRows = iprot.readI32();
51190 struct.setNbRowsIsSet(true);
51191 }
51192 }
51193 }
51194
51195 }
51196
51197 public static class scannerGetList_result implements org.apache.thrift.TBase<scannerGetList_result, scannerGetList_result._Fields>, java.io.Serializable, Cloneable {
51198 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerGetList_result");
51199
51200 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
51201 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
51202 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
51203
51204 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
51205 static {
51206 schemes.put(StandardScheme.class, new scannerGetList_resultStandardSchemeFactory());
51207 schemes.put(TupleScheme.class, new scannerGetList_resultTupleSchemeFactory());
51208 }
51209
51210 public List<TRowResult> success;
51211 public IOError io;
51212 public IllegalArgument ia;
51213
51214
51215 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51216 SUCCESS((short)0, "success"),
51217 IO((short)1, "io"),
51218 IA((short)2, "ia");
51219
51220 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51221
51222 static {
51223 for (_Fields field : EnumSet.allOf(_Fields.class)) {
51224 byName.put(field.getFieldName(), field);
51225 }
51226 }
51227
51228
51229
51230
51231 public static _Fields findByThriftId(int fieldId) {
51232 switch(fieldId) {
51233 case 0:
51234 return SUCCESS;
51235 case 1:
51236 return IO;
51237 case 2:
51238 return IA;
51239 default:
51240 return null;
51241 }
51242 }
51243
51244
51245
51246
51247
51248 public static _Fields findByThriftIdOrThrow(int fieldId) {
51249 _Fields fields = findByThriftId(fieldId);
51250 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51251 return fields;
51252 }
51253
51254
51255
51256
51257 public static _Fields findByName(String name) {
51258 return byName.get(name);
51259 }
51260
51261 private final short _thriftId;
51262 private final String _fieldName;
51263
51264 _Fields(short thriftId, String fieldName) {
51265 _thriftId = thriftId;
51266 _fieldName = fieldName;
51267 }
51268
51269 public short getThriftFieldId() {
51270 return _thriftId;
51271 }
51272
51273 public String getFieldName() {
51274 return _fieldName;
51275 }
51276 }
51277
51278
51279 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51280 static {
51281 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51282 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
51283 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
51284 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRowResult.class))));
51285 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
51286 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
51287 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT,
51288 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
51289 metaDataMap = Collections.unmodifiableMap(tmpMap);
51290 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerGetList_result.class, metaDataMap);
51291 }
51292
51293 public scannerGetList_result() {
51294 }
51295
51296 public scannerGetList_result(
51297 List<TRowResult> success,
51298 IOError io,
51299 IllegalArgument ia)
51300 {
51301 this();
51302 this.success = success;
51303 this.io = io;
51304 this.ia = ia;
51305 }
51306
51307
51308
51309
51310 public scannerGetList_result(scannerGetList_result other) {
51311 if (other.isSetSuccess()) {
51312 List<TRowResult> __this__success = new ArrayList<TRowResult>();
51313 for (TRowResult other_element : other.success) {
51314 __this__success.add(new TRowResult(other_element));
51315 }
51316 this.success = __this__success;
51317 }
51318 if (other.isSetIo()) {
51319 this.io = new IOError(other.io);
51320 }
51321 if (other.isSetIa()) {
51322 this.ia = new IllegalArgument(other.ia);
51323 }
51324 }
51325
51326 public scannerGetList_result deepCopy() {
51327 return new scannerGetList_result(this);
51328 }
51329
51330 @Override
51331 public void clear() {
51332 this.success = null;
51333 this.io = null;
51334 this.ia = null;
51335 }
51336
51337 public int getSuccessSize() {
51338 return (this.success == null) ? 0 : this.success.size();
51339 }
51340
51341 public java.util.Iterator<TRowResult> getSuccessIterator() {
51342 return (this.success == null) ? null : this.success.iterator();
51343 }
51344
51345 public void addToSuccess(TRowResult elem) {
51346 if (this.success == null) {
51347 this.success = new ArrayList<TRowResult>();
51348 }
51349 this.success.add(elem);
51350 }
51351
51352 public List<TRowResult> getSuccess() {
51353 return this.success;
51354 }
51355
51356 public scannerGetList_result setSuccess(List<TRowResult> success) {
51357 this.success = success;
51358 return this;
51359 }
51360
51361 public void unsetSuccess() {
51362 this.success = null;
51363 }
51364
51365
51366 public boolean isSetSuccess() {
51367 return this.success != null;
51368 }
51369
51370 public void setSuccessIsSet(boolean value) {
51371 if (!value) {
51372 this.success = null;
51373 }
51374 }
51375
51376 public IOError getIo() {
51377 return this.io;
51378 }
51379
51380 public scannerGetList_result setIo(IOError io) {
51381 this.io = io;
51382 return this;
51383 }
51384
51385 public void unsetIo() {
51386 this.io = null;
51387 }
51388
51389
51390 public boolean isSetIo() {
51391 return this.io != null;
51392 }
51393
51394 public void setIoIsSet(boolean value) {
51395 if (!value) {
51396 this.io = null;
51397 }
51398 }
51399
51400 public IllegalArgument getIa() {
51401 return this.ia;
51402 }
51403
51404 public scannerGetList_result setIa(IllegalArgument ia) {
51405 this.ia = ia;
51406 return this;
51407 }
51408
51409 public void unsetIa() {
51410 this.ia = null;
51411 }
51412
51413
51414 public boolean isSetIa() {
51415 return this.ia != null;
51416 }
51417
51418 public void setIaIsSet(boolean value) {
51419 if (!value) {
51420 this.ia = null;
51421 }
51422 }
51423
51424 public void setFieldValue(_Fields field, Object value) {
51425 switch (field) {
51426 case SUCCESS:
51427 if (value == null) {
51428 unsetSuccess();
51429 } else {
51430 setSuccess((List<TRowResult>)value);
51431 }
51432 break;
51433
51434 case IO:
51435 if (value == null) {
51436 unsetIo();
51437 } else {
51438 setIo((IOError)value);
51439 }
51440 break;
51441
51442 case IA:
51443 if (value == null) {
51444 unsetIa();
51445 } else {
51446 setIa((IllegalArgument)value);
51447 }
51448 break;
51449
51450 }
51451 }
51452
51453 public Object getFieldValue(_Fields field) {
51454 switch (field) {
51455 case SUCCESS:
51456 return getSuccess();
51457
51458 case IO:
51459 return getIo();
51460
51461 case IA:
51462 return getIa();
51463
51464 }
51465 throw new IllegalStateException();
51466 }
51467
51468
51469 public boolean isSet(_Fields field) {
51470 if (field == null) {
51471 throw new IllegalArgumentException();
51472 }
51473
51474 switch (field) {
51475 case SUCCESS:
51476 return isSetSuccess();
51477 case IO:
51478 return isSetIo();
51479 case IA:
51480 return isSetIa();
51481 }
51482 throw new IllegalStateException();
51483 }
51484
51485 @Override
51486 public boolean equals(Object that) {
51487 if (that == null)
51488 return false;
51489 if (that instanceof scannerGetList_result)
51490 return this.equals((scannerGetList_result)that);
51491 return false;
51492 }
51493
51494 public boolean equals(scannerGetList_result that) {
51495 if (that == null)
51496 return false;
51497
51498 boolean this_present_success = true && this.isSetSuccess();
51499 boolean that_present_success = true && that.isSetSuccess();
51500 if (this_present_success || that_present_success) {
51501 if (!(this_present_success && that_present_success))
51502 return false;
51503 if (!this.success.equals(that.success))
51504 return false;
51505 }
51506
51507 boolean this_present_io = true && this.isSetIo();
51508 boolean that_present_io = true && that.isSetIo();
51509 if (this_present_io || that_present_io) {
51510 if (!(this_present_io && that_present_io))
51511 return false;
51512 if (!this.io.equals(that.io))
51513 return false;
51514 }
51515
51516 boolean this_present_ia = true && this.isSetIa();
51517 boolean that_present_ia = true && that.isSetIa();
51518 if (this_present_ia || that_present_ia) {
51519 if (!(this_present_ia && that_present_ia))
51520 return false;
51521 if (!this.ia.equals(that.ia))
51522 return false;
51523 }
51524
51525 return true;
51526 }
51527
51528 @Override
51529 public int hashCode() {
51530 HashCodeBuilder builder = new HashCodeBuilder();
51531
51532 boolean present_success = true && (isSetSuccess());
51533 builder.append(present_success);
51534 if (present_success)
51535 builder.append(success);
51536
51537 boolean present_io = true && (isSetIo());
51538 builder.append(present_io);
51539 if (present_io)
51540 builder.append(io);
51541
51542 boolean present_ia = true && (isSetIa());
51543 builder.append(present_ia);
51544 if (present_ia)
51545 builder.append(ia);
51546
51547 return builder.toHashCode();
51548 }
51549
51550 public int compareTo(scannerGetList_result other) {
51551 if (!getClass().equals(other.getClass())) {
51552 return getClass().getName().compareTo(other.getClass().getName());
51553 }
51554
51555 int lastComparison = 0;
51556 scannerGetList_result typedOther = (scannerGetList_result)other;
51557
51558 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
51559 if (lastComparison != 0) {
51560 return lastComparison;
51561 }
51562 if (isSetSuccess()) {
51563 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
51564 if (lastComparison != 0) {
51565 return lastComparison;
51566 }
51567 }
51568 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
51569 if (lastComparison != 0) {
51570 return lastComparison;
51571 }
51572 if (isSetIo()) {
51573 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
51574 if (lastComparison != 0) {
51575 return lastComparison;
51576 }
51577 }
51578 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
51579 if (lastComparison != 0) {
51580 return lastComparison;
51581 }
51582 if (isSetIa()) {
51583 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
51584 if (lastComparison != 0) {
51585 return lastComparison;
51586 }
51587 }
51588 return 0;
51589 }
51590
51591 public _Fields fieldForId(int fieldId) {
51592 return _Fields.findByThriftId(fieldId);
51593 }
51594
51595 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51596 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
51597 }
51598
51599 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51600 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
51601 }
51602
51603 @Override
51604 public String toString() {
51605 StringBuilder sb = new StringBuilder("scannerGetList_result(");
51606 boolean first = true;
51607
51608 sb.append("success:");
51609 if (this.success == null) {
51610 sb.append("null");
51611 } else {
51612 sb.append(this.success);
51613 }
51614 first = false;
51615 if (!first) sb.append(", ");
51616 sb.append("io:");
51617 if (this.io == null) {
51618 sb.append("null");
51619 } else {
51620 sb.append(this.io);
51621 }
51622 first = false;
51623 if (!first) sb.append(", ");
51624 sb.append("ia:");
51625 if (this.ia == null) {
51626 sb.append("null");
51627 } else {
51628 sb.append(this.ia);
51629 }
51630 first = false;
51631 sb.append(")");
51632 return sb.toString();
51633 }
51634
51635 public void validate() throws org.apache.thrift.TException {
51636
51637
51638 }
51639
51640 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51641 try {
51642 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51643 } catch (org.apache.thrift.TException te) {
51644 throw new java.io.IOException(te);
51645 }
51646 }
51647
51648 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51649 try {
51650 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51651 } catch (org.apache.thrift.TException te) {
51652 throw new java.io.IOException(te);
51653 }
51654 }
51655
51656 private static class scannerGetList_resultStandardSchemeFactory implements SchemeFactory {
51657 public scannerGetList_resultStandardScheme getScheme() {
51658 return new scannerGetList_resultStandardScheme();
51659 }
51660 }
51661
51662 private static class scannerGetList_resultStandardScheme extends StandardScheme<scannerGetList_result> {
51663
51664 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerGetList_result struct) throws org.apache.thrift.TException {
51665 org.apache.thrift.protocol.TField schemeField;
51666 iprot.readStructBegin();
51667 while (true)
51668 {
51669 schemeField = iprot.readFieldBegin();
51670 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
51671 break;
51672 }
51673 switch (schemeField.id) {
51674 case 0:
51675 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
51676 {
51677 org.apache.thrift.protocol.TList _list574 = iprot.readListBegin();
51678 struct.success = new ArrayList<TRowResult>(_list574.size);
51679 for (int _i575 = 0; _i575 < _list574.size; ++_i575)
51680 {
51681 TRowResult _elem576;
51682 _elem576 = new TRowResult();
51683 _elem576.read(iprot);
51684 struct.success.add(_elem576);
51685 }
51686 iprot.readListEnd();
51687 }
51688 struct.setSuccessIsSet(true);
51689 } else {
51690 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51691 }
51692 break;
51693 case 1:
51694 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
51695 struct.io = new IOError();
51696 struct.io.read(iprot);
51697 struct.setIoIsSet(true);
51698 } else {
51699 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51700 }
51701 break;
51702 case 2:
51703 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
51704 struct.ia = new IllegalArgument();
51705 struct.ia.read(iprot);
51706 struct.setIaIsSet(true);
51707 } else {
51708 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51709 }
51710 break;
51711 default:
51712 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
51713 }
51714 iprot.readFieldEnd();
51715 }
51716 iprot.readStructEnd();
51717
51718
51719 struct.validate();
51720 }
51721
51722 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerGetList_result struct) throws org.apache.thrift.TException {
51723 struct.validate();
51724
51725 oprot.writeStructBegin(STRUCT_DESC);
51726 if (struct.success != null) {
51727 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51728 {
51729 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
51730 for (TRowResult _iter577 : struct.success)
51731 {
51732 _iter577.write(oprot);
51733 }
51734 oprot.writeListEnd();
51735 }
51736 oprot.writeFieldEnd();
51737 }
51738 if (struct.io != null) {
51739 oprot.writeFieldBegin(IO_FIELD_DESC);
51740 struct.io.write(oprot);
51741 oprot.writeFieldEnd();
51742 }
51743 if (struct.ia != null) {
51744 oprot.writeFieldBegin(IA_FIELD_DESC);
51745 struct.ia.write(oprot);
51746 oprot.writeFieldEnd();
51747 }
51748 oprot.writeFieldStop();
51749 oprot.writeStructEnd();
51750 }
51751
51752 }
51753
51754 private static class scannerGetList_resultTupleSchemeFactory implements SchemeFactory {
51755 public scannerGetList_resultTupleScheme getScheme() {
51756 return new scannerGetList_resultTupleScheme();
51757 }
51758 }
51759
51760 private static class scannerGetList_resultTupleScheme extends TupleScheme<scannerGetList_result> {
51761
51762 @Override
51763 public void write(org.apache.thrift.protocol.TProtocol prot, scannerGetList_result struct) throws org.apache.thrift.TException {
51764 TTupleProtocol oprot = (TTupleProtocol) prot;
51765 BitSet optionals = new BitSet();
51766 if (struct.isSetSuccess()) {
51767 optionals.set(0);
51768 }
51769 if (struct.isSetIo()) {
51770 optionals.set(1);
51771 }
51772 if (struct.isSetIa()) {
51773 optionals.set(2);
51774 }
51775 oprot.writeBitSet(optionals, 3);
51776 if (struct.isSetSuccess()) {
51777 {
51778 oprot.writeI32(struct.success.size());
51779 for (TRowResult _iter578 : struct.success)
51780 {
51781 _iter578.write(oprot);
51782 }
51783 }
51784 }
51785 if (struct.isSetIo()) {
51786 struct.io.write(oprot);
51787 }
51788 if (struct.isSetIa()) {
51789 struct.ia.write(oprot);
51790 }
51791 }
51792
51793 @Override
51794 public void read(org.apache.thrift.protocol.TProtocol prot, scannerGetList_result struct) throws org.apache.thrift.TException {
51795 TTupleProtocol iprot = (TTupleProtocol) prot;
51796 BitSet incoming = iprot.readBitSet(3);
51797 if (incoming.get(0)) {
51798 {
51799 org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
51800 struct.success = new ArrayList<TRowResult>(_list579.size);
51801 for (int _i580 = 0; _i580 < _list579.size; ++_i580)
51802 {
51803 TRowResult _elem581;
51804 _elem581 = new TRowResult();
51805 _elem581.read(iprot);
51806 struct.success.add(_elem581);
51807 }
51808 }
51809 struct.setSuccessIsSet(true);
51810 }
51811 if (incoming.get(1)) {
51812 struct.io = new IOError();
51813 struct.io.read(iprot);
51814 struct.setIoIsSet(true);
51815 }
51816 if (incoming.get(2)) {
51817 struct.ia = new IllegalArgument();
51818 struct.ia.read(iprot);
51819 struct.setIaIsSet(true);
51820 }
51821 }
51822 }
51823
51824 }
51825
51826 public static class scannerClose_args implements org.apache.thrift.TBase<scannerClose_args, scannerClose_args._Fields>, java.io.Serializable, Cloneable {
51827 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerClose_args");
51828
51829 private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I32, (short)1);
51830
51831 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
51832 static {
51833 schemes.put(StandardScheme.class, new scannerClose_argsStandardSchemeFactory());
51834 schemes.put(TupleScheme.class, new scannerClose_argsTupleSchemeFactory());
51835 }
51836
51837
51838
51839
51840 public int id;
51841
51842
51843 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51844
51845
51846
51847 ID((short)1, "id");
51848
51849 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51850
51851 static {
51852 for (_Fields field : EnumSet.allOf(_Fields.class)) {
51853 byName.put(field.getFieldName(), field);
51854 }
51855 }
51856
51857
51858
51859
51860 public static _Fields findByThriftId(int fieldId) {
51861 switch(fieldId) {
51862 case 1:
51863 return ID;
51864 default:
51865 return null;
51866 }
51867 }
51868
51869
51870
51871
51872
51873 public static _Fields findByThriftIdOrThrow(int fieldId) {
51874 _Fields fields = findByThriftId(fieldId);
51875 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51876 return fields;
51877 }
51878
51879
51880
51881
51882 public static _Fields findByName(String name) {
51883 return byName.get(name);
51884 }
51885
51886 private final short _thriftId;
51887 private final String _fieldName;
51888
51889 _Fields(short thriftId, String fieldName) {
51890 _thriftId = thriftId;
51891 _fieldName = fieldName;
51892 }
51893
51894 public short getThriftFieldId() {
51895 return _thriftId;
51896 }
51897
51898 public String getFieldName() {
51899 return _fieldName;
51900 }
51901 }
51902
51903
51904 private static final int __ID_ISSET_ID = 0;
51905 private byte __isset_bitfield = 0;
51906 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51907 static {
51908 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51909 tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
51910 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "ScannerID")));
51911 metaDataMap = Collections.unmodifiableMap(tmpMap);
51912 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerClose_args.class, metaDataMap);
51913 }
51914
51915 public scannerClose_args() {
51916 }
51917
51918 public scannerClose_args(
51919 int id)
51920 {
51921 this();
51922 this.id = id;
51923 setIdIsSet(true);
51924 }
51925
51926
51927
51928
51929 public scannerClose_args(scannerClose_args other) {
51930 __isset_bitfield = other.__isset_bitfield;
51931 this.id = other.id;
51932 }
51933
51934 public scannerClose_args deepCopy() {
51935 return new scannerClose_args(this);
51936 }
51937
51938 @Override
51939 public void clear() {
51940 setIdIsSet(false);
51941 this.id = 0;
51942 }
51943
51944
51945
51946
51947 public int getId() {
51948 return this.id;
51949 }
51950
51951
51952
51953
51954 public scannerClose_args setId(int id) {
51955 this.id = id;
51956 setIdIsSet(true);
51957 return this;
51958 }
51959
51960 public void unsetId() {
51961 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ID_ISSET_ID);
51962 }
51963
51964
51965 public boolean isSetId() {
51966 return EncodingUtils.testBit(__isset_bitfield, __ID_ISSET_ID);
51967 }
51968
51969 public void setIdIsSet(boolean value) {
51970 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ID_ISSET_ID, value);
51971 }
51972
51973 public void setFieldValue(_Fields field, Object value) {
51974 switch (field) {
51975 case ID:
51976 if (value == null) {
51977 unsetId();
51978 } else {
51979 setId((Integer)value);
51980 }
51981 break;
51982
51983 }
51984 }
51985
51986 public Object getFieldValue(_Fields field) {
51987 switch (field) {
51988 case ID:
51989 return Integer.valueOf(getId());
51990
51991 }
51992 throw new IllegalStateException();
51993 }
51994
51995
51996 public boolean isSet(_Fields field) {
51997 if (field == null) {
51998 throw new IllegalArgumentException();
51999 }
52000
52001 switch (field) {
52002 case ID:
52003 return isSetId();
52004 }
52005 throw new IllegalStateException();
52006 }
52007
52008 @Override
52009 public boolean equals(Object that) {
52010 if (that == null)
52011 return false;
52012 if (that instanceof scannerClose_args)
52013 return this.equals((scannerClose_args)that);
52014 return false;
52015 }
52016
52017 public boolean equals(scannerClose_args that) {
52018 if (that == null)
52019 return false;
52020
52021 boolean this_present_id = true;
52022 boolean that_present_id = true;
52023 if (this_present_id || that_present_id) {
52024 if (!(this_present_id && that_present_id))
52025 return false;
52026 if (this.id != that.id)
52027 return false;
52028 }
52029
52030 return true;
52031 }
52032
52033 @Override
52034 public int hashCode() {
52035 HashCodeBuilder builder = new HashCodeBuilder();
52036
52037 boolean present_id = true;
52038 builder.append(present_id);
52039 if (present_id)
52040 builder.append(id);
52041
52042 return builder.toHashCode();
52043 }
52044
52045 public int compareTo(scannerClose_args other) {
52046 if (!getClass().equals(other.getClass())) {
52047 return getClass().getName().compareTo(other.getClass().getName());
52048 }
52049
52050 int lastComparison = 0;
52051 scannerClose_args typedOther = (scannerClose_args)other;
52052
52053 lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
52054 if (lastComparison != 0) {
52055 return lastComparison;
52056 }
52057 if (isSetId()) {
52058 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
52059 if (lastComparison != 0) {
52060 return lastComparison;
52061 }
52062 }
52063 return 0;
52064 }
52065
52066 public _Fields fieldForId(int fieldId) {
52067 return _Fields.findByThriftId(fieldId);
52068 }
52069
52070 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52071 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
52072 }
52073
52074 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52075 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
52076 }
52077
52078 @Override
52079 public String toString() {
52080 StringBuilder sb = new StringBuilder("scannerClose_args(");
52081 boolean first = true;
52082
52083 sb.append("id:");
52084 sb.append(this.id);
52085 first = false;
52086 sb.append(")");
52087 return sb.toString();
52088 }
52089
52090 public void validate() throws org.apache.thrift.TException {
52091
52092
52093 }
52094
52095 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52096 try {
52097 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52098 } catch (org.apache.thrift.TException te) {
52099 throw new java.io.IOException(te);
52100 }
52101 }
52102
52103 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52104 try {
52105
52106 __isset_bitfield = 0;
52107 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52108 } catch (org.apache.thrift.TException te) {
52109 throw new java.io.IOException(te);
52110 }
52111 }
52112
52113 private static class scannerClose_argsStandardSchemeFactory implements SchemeFactory {
52114 public scannerClose_argsStandardScheme getScheme() {
52115 return new scannerClose_argsStandardScheme();
52116 }
52117 }
52118
52119 private static class scannerClose_argsStandardScheme extends StandardScheme<scannerClose_args> {
52120
52121 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerClose_args struct) throws org.apache.thrift.TException {
52122 org.apache.thrift.protocol.TField schemeField;
52123 iprot.readStructBegin();
52124 while (true)
52125 {
52126 schemeField = iprot.readFieldBegin();
52127 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
52128 break;
52129 }
52130 switch (schemeField.id) {
52131 case 1:
52132 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
52133 struct.id = iprot.readI32();
52134 struct.setIdIsSet(true);
52135 } else {
52136 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52137 }
52138 break;
52139 default:
52140 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52141 }
52142 iprot.readFieldEnd();
52143 }
52144 iprot.readStructEnd();
52145
52146
52147 struct.validate();
52148 }
52149
52150 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerClose_args struct) throws org.apache.thrift.TException {
52151 struct.validate();
52152
52153 oprot.writeStructBegin(STRUCT_DESC);
52154 oprot.writeFieldBegin(ID_FIELD_DESC);
52155 oprot.writeI32(struct.id);
52156 oprot.writeFieldEnd();
52157 oprot.writeFieldStop();
52158 oprot.writeStructEnd();
52159 }
52160
52161 }
52162
52163 private static class scannerClose_argsTupleSchemeFactory implements SchemeFactory {
52164 public scannerClose_argsTupleScheme getScheme() {
52165 return new scannerClose_argsTupleScheme();
52166 }
52167 }
52168
52169 private static class scannerClose_argsTupleScheme extends TupleScheme<scannerClose_args> {
52170
52171 @Override
52172 public void write(org.apache.thrift.protocol.TProtocol prot, scannerClose_args struct) throws org.apache.thrift.TException {
52173 TTupleProtocol oprot = (TTupleProtocol) prot;
52174 BitSet optionals = new BitSet();
52175 if (struct.isSetId()) {
52176 optionals.set(0);
52177 }
52178 oprot.writeBitSet(optionals, 1);
52179 if (struct.isSetId()) {
52180 oprot.writeI32(struct.id);
52181 }
52182 }
52183
52184 @Override
52185 public void read(org.apache.thrift.protocol.TProtocol prot, scannerClose_args struct) throws org.apache.thrift.TException {
52186 TTupleProtocol iprot = (TTupleProtocol) prot;
52187 BitSet incoming = iprot.readBitSet(1);
52188 if (incoming.get(0)) {
52189 struct.id = iprot.readI32();
52190 struct.setIdIsSet(true);
52191 }
52192 }
52193 }
52194
52195 }
52196
52197 public static class scannerClose_result implements org.apache.thrift.TBase<scannerClose_result, scannerClose_result._Fields>, java.io.Serializable, Cloneable {
52198 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scannerClose_result");
52199
52200 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
52201 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
52202
52203 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
52204 static {
52205 schemes.put(StandardScheme.class, new scannerClose_resultStandardSchemeFactory());
52206 schemes.put(TupleScheme.class, new scannerClose_resultTupleSchemeFactory());
52207 }
52208
52209 public IOError io;
52210 public IllegalArgument ia;
52211
52212
52213 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52214 IO((short)1, "io"),
52215 IA((short)2, "ia");
52216
52217 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52218
52219 static {
52220 for (_Fields field : EnumSet.allOf(_Fields.class)) {
52221 byName.put(field.getFieldName(), field);
52222 }
52223 }
52224
52225
52226
52227
52228 public static _Fields findByThriftId(int fieldId) {
52229 switch(fieldId) {
52230 case 1:
52231 return IO;
52232 case 2:
52233 return IA;
52234 default:
52235 return null;
52236 }
52237 }
52238
52239
52240
52241
52242
52243 public static _Fields findByThriftIdOrThrow(int fieldId) {
52244 _Fields fields = findByThriftId(fieldId);
52245 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52246 return fields;
52247 }
52248
52249
52250
52251
52252 public static _Fields findByName(String name) {
52253 return byName.get(name);
52254 }
52255
52256 private final short _thriftId;
52257 private final String _fieldName;
52258
52259 _Fields(short thriftId, String fieldName) {
52260 _thriftId = thriftId;
52261 _fieldName = fieldName;
52262 }
52263
52264 public short getThriftFieldId() {
52265 return _thriftId;
52266 }
52267
52268 public String getFieldName() {
52269 return _fieldName;
52270 }
52271 }
52272
52273
52274 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52275 static {
52276 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52277 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
52278 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
52279 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT,
52280 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
52281 metaDataMap = Collections.unmodifiableMap(tmpMap);
52282 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scannerClose_result.class, metaDataMap);
52283 }
52284
52285 public scannerClose_result() {
52286 }
52287
52288 public scannerClose_result(
52289 IOError io,
52290 IllegalArgument ia)
52291 {
52292 this();
52293 this.io = io;
52294 this.ia = ia;
52295 }
52296
52297
52298
52299
52300 public scannerClose_result(scannerClose_result other) {
52301 if (other.isSetIo()) {
52302 this.io = new IOError(other.io);
52303 }
52304 if (other.isSetIa()) {
52305 this.ia = new IllegalArgument(other.ia);
52306 }
52307 }
52308
52309 public scannerClose_result deepCopy() {
52310 return new scannerClose_result(this);
52311 }
52312
52313 @Override
52314 public void clear() {
52315 this.io = null;
52316 this.ia = null;
52317 }
52318
52319 public IOError getIo() {
52320 return this.io;
52321 }
52322
52323 public scannerClose_result setIo(IOError io) {
52324 this.io = io;
52325 return this;
52326 }
52327
52328 public void unsetIo() {
52329 this.io = null;
52330 }
52331
52332
52333 public boolean isSetIo() {
52334 return this.io != null;
52335 }
52336
52337 public void setIoIsSet(boolean value) {
52338 if (!value) {
52339 this.io = null;
52340 }
52341 }
52342
52343 public IllegalArgument getIa() {
52344 return this.ia;
52345 }
52346
52347 public scannerClose_result setIa(IllegalArgument ia) {
52348 this.ia = ia;
52349 return this;
52350 }
52351
52352 public void unsetIa() {
52353 this.ia = null;
52354 }
52355
52356
52357 public boolean isSetIa() {
52358 return this.ia != null;
52359 }
52360
52361 public void setIaIsSet(boolean value) {
52362 if (!value) {
52363 this.ia = null;
52364 }
52365 }
52366
52367 public void setFieldValue(_Fields field, Object value) {
52368 switch (field) {
52369 case IO:
52370 if (value == null) {
52371 unsetIo();
52372 } else {
52373 setIo((IOError)value);
52374 }
52375 break;
52376
52377 case IA:
52378 if (value == null) {
52379 unsetIa();
52380 } else {
52381 setIa((IllegalArgument)value);
52382 }
52383 break;
52384
52385 }
52386 }
52387
52388 public Object getFieldValue(_Fields field) {
52389 switch (field) {
52390 case IO:
52391 return getIo();
52392
52393 case IA:
52394 return getIa();
52395
52396 }
52397 throw new IllegalStateException();
52398 }
52399
52400
52401 public boolean isSet(_Fields field) {
52402 if (field == null) {
52403 throw new IllegalArgumentException();
52404 }
52405
52406 switch (field) {
52407 case IO:
52408 return isSetIo();
52409 case IA:
52410 return isSetIa();
52411 }
52412 throw new IllegalStateException();
52413 }
52414
52415 @Override
52416 public boolean equals(Object that) {
52417 if (that == null)
52418 return false;
52419 if (that instanceof scannerClose_result)
52420 return this.equals((scannerClose_result)that);
52421 return false;
52422 }
52423
52424 public boolean equals(scannerClose_result that) {
52425 if (that == null)
52426 return false;
52427
52428 boolean this_present_io = true && this.isSetIo();
52429 boolean that_present_io = true && that.isSetIo();
52430 if (this_present_io || that_present_io) {
52431 if (!(this_present_io && that_present_io))
52432 return false;
52433 if (!this.io.equals(that.io))
52434 return false;
52435 }
52436
52437 boolean this_present_ia = true && this.isSetIa();
52438 boolean that_present_ia = true && that.isSetIa();
52439 if (this_present_ia || that_present_ia) {
52440 if (!(this_present_ia && that_present_ia))
52441 return false;
52442 if (!this.ia.equals(that.ia))
52443 return false;
52444 }
52445
52446 return true;
52447 }
52448
52449 @Override
52450 public int hashCode() {
52451 HashCodeBuilder builder = new HashCodeBuilder();
52452
52453 boolean present_io = true && (isSetIo());
52454 builder.append(present_io);
52455 if (present_io)
52456 builder.append(io);
52457
52458 boolean present_ia = true && (isSetIa());
52459 builder.append(present_ia);
52460 if (present_ia)
52461 builder.append(ia);
52462
52463 return builder.toHashCode();
52464 }
52465
52466 public int compareTo(scannerClose_result other) {
52467 if (!getClass().equals(other.getClass())) {
52468 return getClass().getName().compareTo(other.getClass().getName());
52469 }
52470
52471 int lastComparison = 0;
52472 scannerClose_result typedOther = (scannerClose_result)other;
52473
52474 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
52475 if (lastComparison != 0) {
52476 return lastComparison;
52477 }
52478 if (isSetIo()) {
52479 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
52480 if (lastComparison != 0) {
52481 return lastComparison;
52482 }
52483 }
52484 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
52485 if (lastComparison != 0) {
52486 return lastComparison;
52487 }
52488 if (isSetIa()) {
52489 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
52490 if (lastComparison != 0) {
52491 return lastComparison;
52492 }
52493 }
52494 return 0;
52495 }
52496
52497 public _Fields fieldForId(int fieldId) {
52498 return _Fields.findByThriftId(fieldId);
52499 }
52500
52501 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52502 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
52503 }
52504
52505 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52506 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
52507 }
52508
52509 @Override
52510 public String toString() {
52511 StringBuilder sb = new StringBuilder("scannerClose_result(");
52512 boolean first = true;
52513
52514 sb.append("io:");
52515 if (this.io == null) {
52516 sb.append("null");
52517 } else {
52518 sb.append(this.io);
52519 }
52520 first = false;
52521 if (!first) sb.append(", ");
52522 sb.append("ia:");
52523 if (this.ia == null) {
52524 sb.append("null");
52525 } else {
52526 sb.append(this.ia);
52527 }
52528 first = false;
52529 sb.append(")");
52530 return sb.toString();
52531 }
52532
52533 public void validate() throws org.apache.thrift.TException {
52534
52535
52536 }
52537
52538 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52539 try {
52540 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52541 } catch (org.apache.thrift.TException te) {
52542 throw new java.io.IOException(te);
52543 }
52544 }
52545
52546 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52547 try {
52548 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52549 } catch (org.apache.thrift.TException te) {
52550 throw new java.io.IOException(te);
52551 }
52552 }
52553
52554 private static class scannerClose_resultStandardSchemeFactory implements SchemeFactory {
52555 public scannerClose_resultStandardScheme getScheme() {
52556 return new scannerClose_resultStandardScheme();
52557 }
52558 }
52559
52560 private static class scannerClose_resultStandardScheme extends StandardScheme<scannerClose_result> {
52561
52562 public void read(org.apache.thrift.protocol.TProtocol iprot, scannerClose_result struct) throws org.apache.thrift.TException {
52563 org.apache.thrift.protocol.TField schemeField;
52564 iprot.readStructBegin();
52565 while (true)
52566 {
52567 schemeField = iprot.readFieldBegin();
52568 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
52569 break;
52570 }
52571 switch (schemeField.id) {
52572 case 1:
52573 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
52574 struct.io = new IOError();
52575 struct.io.read(iprot);
52576 struct.setIoIsSet(true);
52577 } else {
52578 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52579 }
52580 break;
52581 case 2:
52582 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
52583 struct.ia = new IllegalArgument();
52584 struct.ia.read(iprot);
52585 struct.setIaIsSet(true);
52586 } else {
52587 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52588 }
52589 break;
52590 default:
52591 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
52592 }
52593 iprot.readFieldEnd();
52594 }
52595 iprot.readStructEnd();
52596
52597
52598 struct.validate();
52599 }
52600
52601 public void write(org.apache.thrift.protocol.TProtocol oprot, scannerClose_result struct) throws org.apache.thrift.TException {
52602 struct.validate();
52603
52604 oprot.writeStructBegin(STRUCT_DESC);
52605 if (struct.io != null) {
52606 oprot.writeFieldBegin(IO_FIELD_DESC);
52607 struct.io.write(oprot);
52608 oprot.writeFieldEnd();
52609 }
52610 if (struct.ia != null) {
52611 oprot.writeFieldBegin(IA_FIELD_DESC);
52612 struct.ia.write(oprot);
52613 oprot.writeFieldEnd();
52614 }
52615 oprot.writeFieldStop();
52616 oprot.writeStructEnd();
52617 }
52618
52619 }
52620
52621 private static class scannerClose_resultTupleSchemeFactory implements SchemeFactory {
52622 public scannerClose_resultTupleScheme getScheme() {
52623 return new scannerClose_resultTupleScheme();
52624 }
52625 }
52626
52627 private static class scannerClose_resultTupleScheme extends TupleScheme<scannerClose_result> {
52628
52629 @Override
52630 public void write(org.apache.thrift.protocol.TProtocol prot, scannerClose_result struct) throws org.apache.thrift.TException {
52631 TTupleProtocol oprot = (TTupleProtocol) prot;
52632 BitSet optionals = new BitSet();
52633 if (struct.isSetIo()) {
52634 optionals.set(0);
52635 }
52636 if (struct.isSetIa()) {
52637 optionals.set(1);
52638 }
52639 oprot.writeBitSet(optionals, 2);
52640 if (struct.isSetIo()) {
52641 struct.io.write(oprot);
52642 }
52643 if (struct.isSetIa()) {
52644 struct.ia.write(oprot);
52645 }
52646 }
52647
52648 @Override
52649 public void read(org.apache.thrift.protocol.TProtocol prot, scannerClose_result struct) throws org.apache.thrift.TException {
52650 TTupleProtocol iprot = (TTupleProtocol) prot;
52651 BitSet incoming = iprot.readBitSet(2);
52652 if (incoming.get(0)) {
52653 struct.io = new IOError();
52654 struct.io.read(iprot);
52655 struct.setIoIsSet(true);
52656 }
52657 if (incoming.get(1)) {
52658 struct.ia = new IllegalArgument();
52659 struct.ia.read(iprot);
52660 struct.setIaIsSet(true);
52661 }
52662 }
52663 }
52664
52665 }
52666
52667 public static class getRowOrBefore_args implements org.apache.thrift.TBase<getRowOrBefore_args, getRowOrBefore_args._Fields>, java.io.Serializable, Cloneable {
52668 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowOrBefore_args");
52669
52670 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
52671 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
52672 private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)3);
52673
52674 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
52675 static {
52676 schemes.put(StandardScheme.class, new getRowOrBefore_argsStandardSchemeFactory());
52677 schemes.put(TupleScheme.class, new getRowOrBefore_argsTupleSchemeFactory());
52678 }
52679
52680
52681
52682
52683 public ByteBuffer tableName;
52684
52685
52686
52687 public ByteBuffer row;
52688
52689
52690
52691 public ByteBuffer family;
52692
52693
52694 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52695
52696
52697
52698 TABLE_NAME((short)1, "tableName"),
52699
52700
52701
52702 ROW((short)2, "row"),
52703
52704
52705
52706 FAMILY((short)3, "family");
52707
52708 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52709
52710 static {
52711 for (_Fields field : EnumSet.allOf(_Fields.class)) {
52712 byName.put(field.getFieldName(), field);
52713 }
52714 }
52715
52716
52717
52718
52719 public static _Fields findByThriftId(int fieldId) {
52720 switch(fieldId) {
52721 case 1:
52722 return TABLE_NAME;
52723 case 2:
52724 return ROW;
52725 case 3:
52726 return FAMILY;
52727 default:
52728 return null;
52729 }
52730 }
52731
52732
52733
52734
52735
52736 public static _Fields findByThriftIdOrThrow(int fieldId) {
52737 _Fields fields = findByThriftId(fieldId);
52738 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52739 return fields;
52740 }
52741
52742
52743
52744
52745 public static _Fields findByName(String name) {
52746 return byName.get(name);
52747 }
52748
52749 private final short _thriftId;
52750 private final String _fieldName;
52751
52752 _Fields(short thriftId, String fieldName) {
52753 _thriftId = thriftId;
52754 _fieldName = fieldName;
52755 }
52756
52757 public short getThriftFieldId() {
52758 return _thriftId;
52759 }
52760
52761 public String getFieldName() {
52762 return _fieldName;
52763 }
52764 }
52765
52766
52767 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52768 static {
52769 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52770 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
52771 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
52772 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
52773 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
52774 tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.DEFAULT,
52775 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
52776 metaDataMap = Collections.unmodifiableMap(tmpMap);
52777 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowOrBefore_args.class, metaDataMap);
52778 }
52779
52780 public getRowOrBefore_args() {
52781 }
52782
52783 public getRowOrBefore_args(
52784 ByteBuffer tableName,
52785 ByteBuffer row,
52786 ByteBuffer family)
52787 {
52788 this();
52789 this.tableName = tableName;
52790 this.row = row;
52791 this.family = family;
52792 }
52793
52794
52795
52796
52797 public getRowOrBefore_args(getRowOrBefore_args other) {
52798 if (other.isSetTableName()) {
52799 this.tableName = other.tableName;
52800 }
52801 if (other.isSetRow()) {
52802 this.row = other.row;
52803 }
52804 if (other.isSetFamily()) {
52805 this.family = other.family;
52806 }
52807 }
52808
52809 public getRowOrBefore_args deepCopy() {
52810 return new getRowOrBefore_args(this);
52811 }
52812
52813 @Override
52814 public void clear() {
52815 this.tableName = null;
52816 this.row = null;
52817 this.family = null;
52818 }
52819
52820
52821
52822
52823 public byte[] getTableName() {
52824 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
52825 return tableName == null ? null : tableName.array();
52826 }
52827
52828 public ByteBuffer bufferForTableName() {
52829 return tableName;
52830 }
52831
52832
52833
52834
52835 public getRowOrBefore_args setTableName(byte[] tableName) {
52836 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
52837 return this;
52838 }
52839
52840 public getRowOrBefore_args setTableName(ByteBuffer tableName) {
52841 this.tableName = tableName;
52842 return this;
52843 }
52844
52845 public void unsetTableName() {
52846 this.tableName = null;
52847 }
52848
52849
52850 public boolean isSetTableName() {
52851 return this.tableName != null;
52852 }
52853
52854 public void setTableNameIsSet(boolean value) {
52855 if (!value) {
52856 this.tableName = null;
52857 }
52858 }
52859
52860
52861
52862
52863 public byte[] getRow() {
52864 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
52865 return row == null ? null : row.array();
52866 }
52867
52868 public ByteBuffer bufferForRow() {
52869 return row;
52870 }
52871
52872
52873
52874
52875 public getRowOrBefore_args setRow(byte[] row) {
52876 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
52877 return this;
52878 }
52879
52880 public getRowOrBefore_args setRow(ByteBuffer row) {
52881 this.row = row;
52882 return this;
52883 }
52884
52885 public void unsetRow() {
52886 this.row = null;
52887 }
52888
52889
52890 public boolean isSetRow() {
52891 return this.row != null;
52892 }
52893
52894 public void setRowIsSet(boolean value) {
52895 if (!value) {
52896 this.row = null;
52897 }
52898 }
52899
52900
52901
52902
52903 public byte[] getFamily() {
52904 setFamily(org.apache.thrift.TBaseHelper.rightSize(family));
52905 return family == null ? null : family.array();
52906 }
52907
52908 public ByteBuffer bufferForFamily() {
52909 return family;
52910 }
52911
52912
52913
52914
52915 public getRowOrBefore_args setFamily(byte[] family) {
52916 setFamily(family == null ? (ByteBuffer)null : ByteBuffer.wrap(family));
52917 return this;
52918 }
52919
52920 public getRowOrBefore_args setFamily(ByteBuffer family) {
52921 this.family = family;
52922 return this;
52923 }
52924
52925 public void unsetFamily() {
52926 this.family = null;
52927 }
52928
52929
52930 public boolean isSetFamily() {
52931 return this.family != null;
52932 }
52933
52934 public void setFamilyIsSet(boolean value) {
52935 if (!value) {
52936 this.family = null;
52937 }
52938 }
52939
52940 public void setFieldValue(_Fields field, Object value) {
52941 switch (field) {
52942 case TABLE_NAME:
52943 if (value == null) {
52944 unsetTableName();
52945 } else {
52946 setTableName((ByteBuffer)value);
52947 }
52948 break;
52949
52950 case ROW:
52951 if (value == null) {
52952 unsetRow();
52953 } else {
52954 setRow((ByteBuffer)value);
52955 }
52956 break;
52957
52958 case FAMILY:
52959 if (value == null) {
52960 unsetFamily();
52961 } else {
52962 setFamily((ByteBuffer)value);
52963 }
52964 break;
52965
52966 }
52967 }
52968
52969 public Object getFieldValue(_Fields field) {
52970 switch (field) {
52971 case TABLE_NAME:
52972 return getTableName();
52973
52974 case ROW:
52975 return getRow();
52976
52977 case FAMILY:
52978 return getFamily();
52979
52980 }
52981 throw new IllegalStateException();
52982 }
52983
52984
52985 public boolean isSet(_Fields field) {
52986 if (field == null) {
52987 throw new IllegalArgumentException();
52988 }
52989
52990 switch (field) {
52991 case TABLE_NAME:
52992 return isSetTableName();
52993 case ROW:
52994 return isSetRow();
52995 case FAMILY:
52996 return isSetFamily();
52997 }
52998 throw new IllegalStateException();
52999 }
53000
53001 @Override
53002 public boolean equals(Object that) {
53003 if (that == null)
53004 return false;
53005 if (that instanceof getRowOrBefore_args)
53006 return this.equals((getRowOrBefore_args)that);
53007 return false;
53008 }
53009
53010 public boolean equals(getRowOrBefore_args that) {
53011 if (that == null)
53012 return false;
53013
53014 boolean this_present_tableName = true && this.isSetTableName();
53015 boolean that_present_tableName = true && that.isSetTableName();
53016 if (this_present_tableName || that_present_tableName) {
53017 if (!(this_present_tableName && that_present_tableName))
53018 return false;
53019 if (!this.tableName.equals(that.tableName))
53020 return false;
53021 }
53022
53023 boolean this_present_row = true && this.isSetRow();
53024 boolean that_present_row = true && that.isSetRow();
53025 if (this_present_row || that_present_row) {
53026 if (!(this_present_row && that_present_row))
53027 return false;
53028 if (!this.row.equals(that.row))
53029 return false;
53030 }
53031
53032 boolean this_present_family = true && this.isSetFamily();
53033 boolean that_present_family = true && that.isSetFamily();
53034 if (this_present_family || that_present_family) {
53035 if (!(this_present_family && that_present_family))
53036 return false;
53037 if (!this.family.equals(that.family))
53038 return false;
53039 }
53040
53041 return true;
53042 }
53043
53044 @Override
53045 public int hashCode() {
53046 HashCodeBuilder builder = new HashCodeBuilder();
53047
53048 boolean present_tableName = true && (isSetTableName());
53049 builder.append(present_tableName);
53050 if (present_tableName)
53051 builder.append(tableName);
53052
53053 boolean present_row = true && (isSetRow());
53054 builder.append(present_row);
53055 if (present_row)
53056 builder.append(row);
53057
53058 boolean present_family = true && (isSetFamily());
53059 builder.append(present_family);
53060 if (present_family)
53061 builder.append(family);
53062
53063 return builder.toHashCode();
53064 }
53065
53066 public int compareTo(getRowOrBefore_args other) {
53067 if (!getClass().equals(other.getClass())) {
53068 return getClass().getName().compareTo(other.getClass().getName());
53069 }
53070
53071 int lastComparison = 0;
53072 getRowOrBefore_args typedOther = (getRowOrBefore_args)other;
53073
53074 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
53075 if (lastComparison != 0) {
53076 return lastComparison;
53077 }
53078 if (isSetTableName()) {
53079 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
53080 if (lastComparison != 0) {
53081 return lastComparison;
53082 }
53083 }
53084 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
53085 if (lastComparison != 0) {
53086 return lastComparison;
53087 }
53088 if (isSetRow()) {
53089 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
53090 if (lastComparison != 0) {
53091 return lastComparison;
53092 }
53093 }
53094 lastComparison = Boolean.valueOf(isSetFamily()).compareTo(typedOther.isSetFamily());
53095 if (lastComparison != 0) {
53096 return lastComparison;
53097 }
53098 if (isSetFamily()) {
53099 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, typedOther.family);
53100 if (lastComparison != 0) {
53101 return lastComparison;
53102 }
53103 }
53104 return 0;
53105 }
53106
53107 public _Fields fieldForId(int fieldId) {
53108 return _Fields.findByThriftId(fieldId);
53109 }
53110
53111 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53112 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
53113 }
53114
53115 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53116 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
53117 }
53118
53119 @Override
53120 public String toString() {
53121 StringBuilder sb = new StringBuilder("getRowOrBefore_args(");
53122 boolean first = true;
53123
53124 sb.append("tableName:");
53125 if (this.tableName == null) {
53126 sb.append("null");
53127 } else {
53128 sb.append(this.tableName);
53129 }
53130 first = false;
53131 if (!first) sb.append(", ");
53132 sb.append("row:");
53133 if (this.row == null) {
53134 sb.append("null");
53135 } else {
53136 sb.append(this.row);
53137 }
53138 first = false;
53139 if (!first) sb.append(", ");
53140 sb.append("family:");
53141 if (this.family == null) {
53142 sb.append("null");
53143 } else {
53144 sb.append(this.family);
53145 }
53146 first = false;
53147 sb.append(")");
53148 return sb.toString();
53149 }
53150
53151 public void validate() throws org.apache.thrift.TException {
53152
53153
53154 }
53155
53156 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53157 try {
53158 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53159 } catch (org.apache.thrift.TException te) {
53160 throw new java.io.IOException(te);
53161 }
53162 }
53163
53164 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53165 try {
53166 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53167 } catch (org.apache.thrift.TException te) {
53168 throw new java.io.IOException(te);
53169 }
53170 }
53171
53172 private static class getRowOrBefore_argsStandardSchemeFactory implements SchemeFactory {
53173 public getRowOrBefore_argsStandardScheme getScheme() {
53174 return new getRowOrBefore_argsStandardScheme();
53175 }
53176 }
53177
53178 private static class getRowOrBefore_argsStandardScheme extends StandardScheme<getRowOrBefore_args> {
53179
53180 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowOrBefore_args struct) throws org.apache.thrift.TException {
53181 org.apache.thrift.protocol.TField schemeField;
53182 iprot.readStructBegin();
53183 while (true)
53184 {
53185 schemeField = iprot.readFieldBegin();
53186 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
53187 break;
53188 }
53189 switch (schemeField.id) {
53190 case 1:
53191 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
53192 struct.tableName = iprot.readBinary();
53193 struct.setTableNameIsSet(true);
53194 } else {
53195 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53196 }
53197 break;
53198 case 2:
53199 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
53200 struct.row = iprot.readBinary();
53201 struct.setRowIsSet(true);
53202 } else {
53203 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53204 }
53205 break;
53206 case 3:
53207 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
53208 struct.family = iprot.readBinary();
53209 struct.setFamilyIsSet(true);
53210 } else {
53211 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53212 }
53213 break;
53214 default:
53215 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53216 }
53217 iprot.readFieldEnd();
53218 }
53219 iprot.readStructEnd();
53220
53221
53222 struct.validate();
53223 }
53224
53225 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowOrBefore_args struct) throws org.apache.thrift.TException {
53226 struct.validate();
53227
53228 oprot.writeStructBegin(STRUCT_DESC);
53229 if (struct.tableName != null) {
53230 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
53231 oprot.writeBinary(struct.tableName);
53232 oprot.writeFieldEnd();
53233 }
53234 if (struct.row != null) {
53235 oprot.writeFieldBegin(ROW_FIELD_DESC);
53236 oprot.writeBinary(struct.row);
53237 oprot.writeFieldEnd();
53238 }
53239 if (struct.family != null) {
53240 oprot.writeFieldBegin(FAMILY_FIELD_DESC);
53241 oprot.writeBinary(struct.family);
53242 oprot.writeFieldEnd();
53243 }
53244 oprot.writeFieldStop();
53245 oprot.writeStructEnd();
53246 }
53247
53248 }
53249
53250 private static class getRowOrBefore_argsTupleSchemeFactory implements SchemeFactory {
53251 public getRowOrBefore_argsTupleScheme getScheme() {
53252 return new getRowOrBefore_argsTupleScheme();
53253 }
53254 }
53255
53256 private static class getRowOrBefore_argsTupleScheme extends TupleScheme<getRowOrBefore_args> {
53257
53258 @Override
53259 public void write(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_args struct) throws org.apache.thrift.TException {
53260 TTupleProtocol oprot = (TTupleProtocol) prot;
53261 BitSet optionals = new BitSet();
53262 if (struct.isSetTableName()) {
53263 optionals.set(0);
53264 }
53265 if (struct.isSetRow()) {
53266 optionals.set(1);
53267 }
53268 if (struct.isSetFamily()) {
53269 optionals.set(2);
53270 }
53271 oprot.writeBitSet(optionals, 3);
53272 if (struct.isSetTableName()) {
53273 oprot.writeBinary(struct.tableName);
53274 }
53275 if (struct.isSetRow()) {
53276 oprot.writeBinary(struct.row);
53277 }
53278 if (struct.isSetFamily()) {
53279 oprot.writeBinary(struct.family);
53280 }
53281 }
53282
53283 @Override
53284 public void read(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_args struct) throws org.apache.thrift.TException {
53285 TTupleProtocol iprot = (TTupleProtocol) prot;
53286 BitSet incoming = iprot.readBitSet(3);
53287 if (incoming.get(0)) {
53288 struct.tableName = iprot.readBinary();
53289 struct.setTableNameIsSet(true);
53290 }
53291 if (incoming.get(1)) {
53292 struct.row = iprot.readBinary();
53293 struct.setRowIsSet(true);
53294 }
53295 if (incoming.get(2)) {
53296 struct.family = iprot.readBinary();
53297 struct.setFamilyIsSet(true);
53298 }
53299 }
53300 }
53301
53302 }
53303
53304 public static class getRowOrBefore_result implements org.apache.thrift.TBase<getRowOrBefore_result, getRowOrBefore_result._Fields>, java.io.Serializable, Cloneable {
53305 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRowOrBefore_result");
53306
53307 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
53308 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
53309
53310 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
53311 static {
53312 schemes.put(StandardScheme.class, new getRowOrBefore_resultStandardSchemeFactory());
53313 schemes.put(TupleScheme.class, new getRowOrBefore_resultTupleSchemeFactory());
53314 }
53315
53316 public List<TCell> success;
53317 public IOError io;
53318
53319
53320 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53321 SUCCESS((short)0, "success"),
53322 IO((short)1, "io");
53323
53324 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53325
53326 static {
53327 for (_Fields field : EnumSet.allOf(_Fields.class)) {
53328 byName.put(field.getFieldName(), field);
53329 }
53330 }
53331
53332
53333
53334
53335 public static _Fields findByThriftId(int fieldId) {
53336 switch(fieldId) {
53337 case 0:
53338 return SUCCESS;
53339 case 1:
53340 return IO;
53341 default:
53342 return null;
53343 }
53344 }
53345
53346
53347
53348
53349
53350 public static _Fields findByThriftIdOrThrow(int fieldId) {
53351 _Fields fields = findByThriftId(fieldId);
53352 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53353 return fields;
53354 }
53355
53356
53357
53358
53359 public static _Fields findByName(String name) {
53360 return byName.get(name);
53361 }
53362
53363 private final short _thriftId;
53364 private final String _fieldName;
53365
53366 _Fields(short thriftId, String fieldName) {
53367 _thriftId = thriftId;
53368 _fieldName = fieldName;
53369 }
53370
53371 public short getThriftFieldId() {
53372 return _thriftId;
53373 }
53374
53375 public String getFieldName() {
53376 return _fieldName;
53377 }
53378 }
53379
53380
53381 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53382 static {
53383 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53384 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
53385 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
53386 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class))));
53387 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
53388 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
53389 metaDataMap = Collections.unmodifiableMap(tmpMap);
53390 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRowOrBefore_result.class, metaDataMap);
53391 }
53392
53393 public getRowOrBefore_result() {
53394 }
53395
53396 public getRowOrBefore_result(
53397 List<TCell> success,
53398 IOError io)
53399 {
53400 this();
53401 this.success = success;
53402 this.io = io;
53403 }
53404
53405
53406
53407
53408 public getRowOrBefore_result(getRowOrBefore_result other) {
53409 if (other.isSetSuccess()) {
53410 List<TCell> __this__success = new ArrayList<TCell>();
53411 for (TCell other_element : other.success) {
53412 __this__success.add(new TCell(other_element));
53413 }
53414 this.success = __this__success;
53415 }
53416 if (other.isSetIo()) {
53417 this.io = new IOError(other.io);
53418 }
53419 }
53420
53421 public getRowOrBefore_result deepCopy() {
53422 return new getRowOrBefore_result(this);
53423 }
53424
53425 @Override
53426 public void clear() {
53427 this.success = null;
53428 this.io = null;
53429 }
53430
53431 public int getSuccessSize() {
53432 return (this.success == null) ? 0 : this.success.size();
53433 }
53434
53435 public java.util.Iterator<TCell> getSuccessIterator() {
53436 return (this.success == null) ? null : this.success.iterator();
53437 }
53438
53439 public void addToSuccess(TCell elem) {
53440 if (this.success == null) {
53441 this.success = new ArrayList<TCell>();
53442 }
53443 this.success.add(elem);
53444 }
53445
53446 public List<TCell> getSuccess() {
53447 return this.success;
53448 }
53449
53450 public getRowOrBefore_result setSuccess(List<TCell> success) {
53451 this.success = success;
53452 return this;
53453 }
53454
53455 public void unsetSuccess() {
53456 this.success = null;
53457 }
53458
53459
53460 public boolean isSetSuccess() {
53461 return this.success != null;
53462 }
53463
53464 public void setSuccessIsSet(boolean value) {
53465 if (!value) {
53466 this.success = null;
53467 }
53468 }
53469
53470 public IOError getIo() {
53471 return this.io;
53472 }
53473
53474 public getRowOrBefore_result setIo(IOError io) {
53475 this.io = io;
53476 return this;
53477 }
53478
53479 public void unsetIo() {
53480 this.io = null;
53481 }
53482
53483
53484 public boolean isSetIo() {
53485 return this.io != null;
53486 }
53487
53488 public void setIoIsSet(boolean value) {
53489 if (!value) {
53490 this.io = null;
53491 }
53492 }
53493
53494 public void setFieldValue(_Fields field, Object value) {
53495 switch (field) {
53496 case SUCCESS:
53497 if (value == null) {
53498 unsetSuccess();
53499 } else {
53500 setSuccess((List<TCell>)value);
53501 }
53502 break;
53503
53504 case IO:
53505 if (value == null) {
53506 unsetIo();
53507 } else {
53508 setIo((IOError)value);
53509 }
53510 break;
53511
53512 }
53513 }
53514
53515 public Object getFieldValue(_Fields field) {
53516 switch (field) {
53517 case SUCCESS:
53518 return getSuccess();
53519
53520 case IO:
53521 return getIo();
53522
53523 }
53524 throw new IllegalStateException();
53525 }
53526
53527
53528 public boolean isSet(_Fields field) {
53529 if (field == null) {
53530 throw new IllegalArgumentException();
53531 }
53532
53533 switch (field) {
53534 case SUCCESS:
53535 return isSetSuccess();
53536 case IO:
53537 return isSetIo();
53538 }
53539 throw new IllegalStateException();
53540 }
53541
53542 @Override
53543 public boolean equals(Object that) {
53544 if (that == null)
53545 return false;
53546 if (that instanceof getRowOrBefore_result)
53547 return this.equals((getRowOrBefore_result)that);
53548 return false;
53549 }
53550
53551 public boolean equals(getRowOrBefore_result that) {
53552 if (that == null)
53553 return false;
53554
53555 boolean this_present_success = true && this.isSetSuccess();
53556 boolean that_present_success = true && that.isSetSuccess();
53557 if (this_present_success || that_present_success) {
53558 if (!(this_present_success && that_present_success))
53559 return false;
53560 if (!this.success.equals(that.success))
53561 return false;
53562 }
53563
53564 boolean this_present_io = true && this.isSetIo();
53565 boolean that_present_io = true && that.isSetIo();
53566 if (this_present_io || that_present_io) {
53567 if (!(this_present_io && that_present_io))
53568 return false;
53569 if (!this.io.equals(that.io))
53570 return false;
53571 }
53572
53573 return true;
53574 }
53575
53576 @Override
53577 public int hashCode() {
53578 HashCodeBuilder builder = new HashCodeBuilder();
53579
53580 boolean present_success = true && (isSetSuccess());
53581 builder.append(present_success);
53582 if (present_success)
53583 builder.append(success);
53584
53585 boolean present_io = true && (isSetIo());
53586 builder.append(present_io);
53587 if (present_io)
53588 builder.append(io);
53589
53590 return builder.toHashCode();
53591 }
53592
53593 public int compareTo(getRowOrBefore_result other) {
53594 if (!getClass().equals(other.getClass())) {
53595 return getClass().getName().compareTo(other.getClass().getName());
53596 }
53597
53598 int lastComparison = 0;
53599 getRowOrBefore_result typedOther = (getRowOrBefore_result)other;
53600
53601 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
53602 if (lastComparison != 0) {
53603 return lastComparison;
53604 }
53605 if (isSetSuccess()) {
53606 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
53607 if (lastComparison != 0) {
53608 return lastComparison;
53609 }
53610 }
53611 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
53612 if (lastComparison != 0) {
53613 return lastComparison;
53614 }
53615 if (isSetIo()) {
53616 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
53617 if (lastComparison != 0) {
53618 return lastComparison;
53619 }
53620 }
53621 return 0;
53622 }
53623
53624 public _Fields fieldForId(int fieldId) {
53625 return _Fields.findByThriftId(fieldId);
53626 }
53627
53628 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53629 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
53630 }
53631
53632 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53633 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
53634 }
53635
53636 @Override
53637 public String toString() {
53638 StringBuilder sb = new StringBuilder("getRowOrBefore_result(");
53639 boolean first = true;
53640
53641 sb.append("success:");
53642 if (this.success == null) {
53643 sb.append("null");
53644 } else {
53645 sb.append(this.success);
53646 }
53647 first = false;
53648 if (!first) sb.append(", ");
53649 sb.append("io:");
53650 if (this.io == null) {
53651 sb.append("null");
53652 } else {
53653 sb.append(this.io);
53654 }
53655 first = false;
53656 sb.append(")");
53657 return sb.toString();
53658 }
53659
53660 public void validate() throws org.apache.thrift.TException {
53661
53662
53663 }
53664
53665 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53666 try {
53667 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53668 } catch (org.apache.thrift.TException te) {
53669 throw new java.io.IOException(te);
53670 }
53671 }
53672
53673 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53674 try {
53675 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53676 } catch (org.apache.thrift.TException te) {
53677 throw new java.io.IOException(te);
53678 }
53679 }
53680
53681 private static class getRowOrBefore_resultStandardSchemeFactory implements SchemeFactory {
53682 public getRowOrBefore_resultStandardScheme getScheme() {
53683 return new getRowOrBefore_resultStandardScheme();
53684 }
53685 }
53686
53687 private static class getRowOrBefore_resultStandardScheme extends StandardScheme<getRowOrBefore_result> {
53688
53689 public void read(org.apache.thrift.protocol.TProtocol iprot, getRowOrBefore_result struct) throws org.apache.thrift.TException {
53690 org.apache.thrift.protocol.TField schemeField;
53691 iprot.readStructBegin();
53692 while (true)
53693 {
53694 schemeField = iprot.readFieldBegin();
53695 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
53696 break;
53697 }
53698 switch (schemeField.id) {
53699 case 0:
53700 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
53701 {
53702 org.apache.thrift.protocol.TList _list582 = iprot.readListBegin();
53703 struct.success = new ArrayList<TCell>(_list582.size);
53704 for (int _i583 = 0; _i583 < _list582.size; ++_i583)
53705 {
53706 TCell _elem584;
53707 _elem584 = new TCell();
53708 _elem584.read(iprot);
53709 struct.success.add(_elem584);
53710 }
53711 iprot.readListEnd();
53712 }
53713 struct.setSuccessIsSet(true);
53714 } else {
53715 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53716 }
53717 break;
53718 case 1:
53719 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
53720 struct.io = new IOError();
53721 struct.io.read(iprot);
53722 struct.setIoIsSet(true);
53723 } else {
53724 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53725 }
53726 break;
53727 default:
53728 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
53729 }
53730 iprot.readFieldEnd();
53731 }
53732 iprot.readStructEnd();
53733
53734
53735 struct.validate();
53736 }
53737
53738 public void write(org.apache.thrift.protocol.TProtocol oprot, getRowOrBefore_result struct) throws org.apache.thrift.TException {
53739 struct.validate();
53740
53741 oprot.writeStructBegin(STRUCT_DESC);
53742 if (struct.success != null) {
53743 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53744 {
53745 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
53746 for (TCell _iter585 : struct.success)
53747 {
53748 _iter585.write(oprot);
53749 }
53750 oprot.writeListEnd();
53751 }
53752 oprot.writeFieldEnd();
53753 }
53754 if (struct.io != null) {
53755 oprot.writeFieldBegin(IO_FIELD_DESC);
53756 struct.io.write(oprot);
53757 oprot.writeFieldEnd();
53758 }
53759 oprot.writeFieldStop();
53760 oprot.writeStructEnd();
53761 }
53762
53763 }
53764
53765 private static class getRowOrBefore_resultTupleSchemeFactory implements SchemeFactory {
53766 public getRowOrBefore_resultTupleScheme getScheme() {
53767 return new getRowOrBefore_resultTupleScheme();
53768 }
53769 }
53770
53771 private static class getRowOrBefore_resultTupleScheme extends TupleScheme<getRowOrBefore_result> {
53772
53773 @Override
53774 public void write(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_result struct) throws org.apache.thrift.TException {
53775 TTupleProtocol oprot = (TTupleProtocol) prot;
53776 BitSet optionals = new BitSet();
53777 if (struct.isSetSuccess()) {
53778 optionals.set(0);
53779 }
53780 if (struct.isSetIo()) {
53781 optionals.set(1);
53782 }
53783 oprot.writeBitSet(optionals, 2);
53784 if (struct.isSetSuccess()) {
53785 {
53786 oprot.writeI32(struct.success.size());
53787 for (TCell _iter586 : struct.success)
53788 {
53789 _iter586.write(oprot);
53790 }
53791 }
53792 }
53793 if (struct.isSetIo()) {
53794 struct.io.write(oprot);
53795 }
53796 }
53797
53798 @Override
53799 public void read(org.apache.thrift.protocol.TProtocol prot, getRowOrBefore_result struct) throws org.apache.thrift.TException {
53800 TTupleProtocol iprot = (TTupleProtocol) prot;
53801 BitSet incoming = iprot.readBitSet(2);
53802 if (incoming.get(0)) {
53803 {
53804 org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
53805 struct.success = new ArrayList<TCell>(_list587.size);
53806 for (int _i588 = 0; _i588 < _list587.size; ++_i588)
53807 {
53808 TCell _elem589;
53809 _elem589 = new TCell();
53810 _elem589.read(iprot);
53811 struct.success.add(_elem589);
53812 }
53813 }
53814 struct.setSuccessIsSet(true);
53815 }
53816 if (incoming.get(1)) {
53817 struct.io = new IOError();
53818 struct.io.read(iprot);
53819 struct.setIoIsSet(true);
53820 }
53821 }
53822 }
53823
53824 }
53825
53826 public static class getRegionInfo_args implements org.apache.thrift.TBase<getRegionInfo_args, getRegionInfo_args._Fields>, java.io.Serializable, Cloneable {
53827 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionInfo_args");
53828
53829 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)1);
53830
53831 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
53832 static {
53833 schemes.put(StandardScheme.class, new getRegionInfo_argsStandardSchemeFactory());
53834 schemes.put(TupleScheme.class, new getRegionInfo_argsTupleSchemeFactory());
53835 }
53836
53837
53838
53839
53840 public ByteBuffer row;
53841
53842
53843 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53844
53845
53846
53847 ROW((short)1, "row");
53848
53849 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53850
53851 static {
53852 for (_Fields field : EnumSet.allOf(_Fields.class)) {
53853 byName.put(field.getFieldName(), field);
53854 }
53855 }
53856
53857
53858
53859
53860 public static _Fields findByThriftId(int fieldId) {
53861 switch(fieldId) {
53862 case 1:
53863 return ROW;
53864 default:
53865 return null;
53866 }
53867 }
53868
53869
53870
53871
53872
53873 public static _Fields findByThriftIdOrThrow(int fieldId) {
53874 _Fields fields = findByThriftId(fieldId);
53875 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53876 return fields;
53877 }
53878
53879
53880
53881
53882 public static _Fields findByName(String name) {
53883 return byName.get(name);
53884 }
53885
53886 private final short _thriftId;
53887 private final String _fieldName;
53888
53889 _Fields(short thriftId, String fieldName) {
53890 _thriftId = thriftId;
53891 _fieldName = fieldName;
53892 }
53893
53894 public short getThriftFieldId() {
53895 return _thriftId;
53896 }
53897
53898 public String getFieldName() {
53899 return _fieldName;
53900 }
53901 }
53902
53903
53904 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53905 static {
53906 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53907 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
53908 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
53909 metaDataMap = Collections.unmodifiableMap(tmpMap);
53910 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionInfo_args.class, metaDataMap);
53911 }
53912
53913 public getRegionInfo_args() {
53914 }
53915
53916 public getRegionInfo_args(
53917 ByteBuffer row)
53918 {
53919 this();
53920 this.row = row;
53921 }
53922
53923
53924
53925
53926 public getRegionInfo_args(getRegionInfo_args other) {
53927 if (other.isSetRow()) {
53928 this.row = other.row;
53929 }
53930 }
53931
53932 public getRegionInfo_args deepCopy() {
53933 return new getRegionInfo_args(this);
53934 }
53935
53936 @Override
53937 public void clear() {
53938 this.row = null;
53939 }
53940
53941
53942
53943
53944 public byte[] getRow() {
53945 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
53946 return row == null ? null : row.array();
53947 }
53948
53949 public ByteBuffer bufferForRow() {
53950 return row;
53951 }
53952
53953
53954
53955
53956 public getRegionInfo_args setRow(byte[] row) {
53957 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
53958 return this;
53959 }
53960
53961 public getRegionInfo_args setRow(ByteBuffer row) {
53962 this.row = row;
53963 return this;
53964 }
53965
53966 public void unsetRow() {
53967 this.row = null;
53968 }
53969
53970
53971 public boolean isSetRow() {
53972 return this.row != null;
53973 }
53974
53975 public void setRowIsSet(boolean value) {
53976 if (!value) {
53977 this.row = null;
53978 }
53979 }
53980
53981 public void setFieldValue(_Fields field, Object value) {
53982 switch (field) {
53983 case ROW:
53984 if (value == null) {
53985 unsetRow();
53986 } else {
53987 setRow((ByteBuffer)value);
53988 }
53989 break;
53990
53991 }
53992 }
53993
53994 public Object getFieldValue(_Fields field) {
53995 switch (field) {
53996 case ROW:
53997 return getRow();
53998
53999 }
54000 throw new IllegalStateException();
54001 }
54002
54003
54004 public boolean isSet(_Fields field) {
54005 if (field == null) {
54006 throw new IllegalArgumentException();
54007 }
54008
54009 switch (field) {
54010 case ROW:
54011 return isSetRow();
54012 }
54013 throw new IllegalStateException();
54014 }
54015
54016 @Override
54017 public boolean equals(Object that) {
54018 if (that == null)
54019 return false;
54020 if (that instanceof getRegionInfo_args)
54021 return this.equals((getRegionInfo_args)that);
54022 return false;
54023 }
54024
54025 public boolean equals(getRegionInfo_args that) {
54026 if (that == null)
54027 return false;
54028
54029 boolean this_present_row = true && this.isSetRow();
54030 boolean that_present_row = true && that.isSetRow();
54031 if (this_present_row || that_present_row) {
54032 if (!(this_present_row && that_present_row))
54033 return false;
54034 if (!this.row.equals(that.row))
54035 return false;
54036 }
54037
54038 return true;
54039 }
54040
54041 @Override
54042 public int hashCode() {
54043 HashCodeBuilder builder = new HashCodeBuilder();
54044
54045 boolean present_row = true && (isSetRow());
54046 builder.append(present_row);
54047 if (present_row)
54048 builder.append(row);
54049
54050 return builder.toHashCode();
54051 }
54052
54053 public int compareTo(getRegionInfo_args other) {
54054 if (!getClass().equals(other.getClass())) {
54055 return getClass().getName().compareTo(other.getClass().getName());
54056 }
54057
54058 int lastComparison = 0;
54059 getRegionInfo_args typedOther = (getRegionInfo_args)other;
54060
54061 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
54062 if (lastComparison != 0) {
54063 return lastComparison;
54064 }
54065 if (isSetRow()) {
54066 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
54067 if (lastComparison != 0) {
54068 return lastComparison;
54069 }
54070 }
54071 return 0;
54072 }
54073
54074 public _Fields fieldForId(int fieldId) {
54075 return _Fields.findByThriftId(fieldId);
54076 }
54077
54078 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54079 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
54080 }
54081
54082 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54083 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
54084 }
54085
54086 @Override
54087 public String toString() {
54088 StringBuilder sb = new StringBuilder("getRegionInfo_args(");
54089 boolean first = true;
54090
54091 sb.append("row:");
54092 if (this.row == null) {
54093 sb.append("null");
54094 } else {
54095 sb.append(this.row);
54096 }
54097 first = false;
54098 sb.append(")");
54099 return sb.toString();
54100 }
54101
54102 public void validate() throws org.apache.thrift.TException {
54103
54104
54105 }
54106
54107 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54108 try {
54109 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54110 } catch (org.apache.thrift.TException te) {
54111 throw new java.io.IOException(te);
54112 }
54113 }
54114
54115 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54116 try {
54117 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54118 } catch (org.apache.thrift.TException te) {
54119 throw new java.io.IOException(te);
54120 }
54121 }
54122
54123 private static class getRegionInfo_argsStandardSchemeFactory implements SchemeFactory {
54124 public getRegionInfo_argsStandardScheme getScheme() {
54125 return new getRegionInfo_argsStandardScheme();
54126 }
54127 }
54128
54129 private static class getRegionInfo_argsStandardScheme extends StandardScheme<getRegionInfo_args> {
54130
54131 public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionInfo_args struct) throws org.apache.thrift.TException {
54132 org.apache.thrift.protocol.TField schemeField;
54133 iprot.readStructBegin();
54134 while (true)
54135 {
54136 schemeField = iprot.readFieldBegin();
54137 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
54138 break;
54139 }
54140 switch (schemeField.id) {
54141 case 1:
54142 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
54143 struct.row = iprot.readBinary();
54144 struct.setRowIsSet(true);
54145 } else {
54146 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
54147 }
54148 break;
54149 default:
54150 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
54151 }
54152 iprot.readFieldEnd();
54153 }
54154 iprot.readStructEnd();
54155
54156
54157 struct.validate();
54158 }
54159
54160 public void write(org.apache.thrift.protocol.TProtocol oprot, getRegionInfo_args struct) throws org.apache.thrift.TException {
54161 struct.validate();
54162
54163 oprot.writeStructBegin(STRUCT_DESC);
54164 if (struct.row != null) {
54165 oprot.writeFieldBegin(ROW_FIELD_DESC);
54166 oprot.writeBinary(struct.row);
54167 oprot.writeFieldEnd();
54168 }
54169 oprot.writeFieldStop();
54170 oprot.writeStructEnd();
54171 }
54172
54173 }
54174
54175 private static class getRegionInfo_argsTupleSchemeFactory implements SchemeFactory {
54176 public getRegionInfo_argsTupleScheme getScheme() {
54177 return new getRegionInfo_argsTupleScheme();
54178 }
54179 }
54180
54181 private static class getRegionInfo_argsTupleScheme extends TupleScheme<getRegionInfo_args> {
54182
54183 @Override
54184 public void write(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_args struct) throws org.apache.thrift.TException {
54185 TTupleProtocol oprot = (TTupleProtocol) prot;
54186 BitSet optionals = new BitSet();
54187 if (struct.isSetRow()) {
54188 optionals.set(0);
54189 }
54190 oprot.writeBitSet(optionals, 1);
54191 if (struct.isSetRow()) {
54192 oprot.writeBinary(struct.row);
54193 }
54194 }
54195
54196 @Override
54197 public void read(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_args struct) throws org.apache.thrift.TException {
54198 TTupleProtocol iprot = (TTupleProtocol) prot;
54199 BitSet incoming = iprot.readBitSet(1);
54200 if (incoming.get(0)) {
54201 struct.row = iprot.readBinary();
54202 struct.setRowIsSet(true);
54203 }
54204 }
54205 }
54206
54207 }
54208
54209 public static class getRegionInfo_result implements org.apache.thrift.TBase<getRegionInfo_result, getRegionInfo_result._Fields>, java.io.Serializable, Cloneable {
54210 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRegionInfo_result");
54211
54212 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
54213 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
54214
54215 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
54216 static {
54217 schemes.put(StandardScheme.class, new getRegionInfo_resultStandardSchemeFactory());
54218 schemes.put(TupleScheme.class, new getRegionInfo_resultTupleSchemeFactory());
54219 }
54220
54221 public TRegionInfo success;
54222 public IOError io;
54223
54224
54225 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54226 SUCCESS((short)0, "success"),
54227 IO((short)1, "io");
54228
54229 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54230
54231 static {
54232 for (_Fields field : EnumSet.allOf(_Fields.class)) {
54233 byName.put(field.getFieldName(), field);
54234 }
54235 }
54236
54237
54238
54239
54240 public static _Fields findByThriftId(int fieldId) {
54241 switch(fieldId) {
54242 case 0:
54243 return SUCCESS;
54244 case 1:
54245 return IO;
54246 default:
54247 return null;
54248 }
54249 }
54250
54251
54252
54253
54254
54255 public static _Fields findByThriftIdOrThrow(int fieldId) {
54256 _Fields fields = findByThriftId(fieldId);
54257 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54258 return fields;
54259 }
54260
54261
54262
54263
54264 public static _Fields findByName(String name) {
54265 return byName.get(name);
54266 }
54267
54268 private final short _thriftId;
54269 private final String _fieldName;
54270
54271 _Fields(short thriftId, String fieldName) {
54272 _thriftId = thriftId;
54273 _fieldName = fieldName;
54274 }
54275
54276 public short getThriftFieldId() {
54277 return _thriftId;
54278 }
54279
54280 public String getFieldName() {
54281 return _fieldName;
54282 }
54283 }
54284
54285
54286 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54287 static {
54288 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54289 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
54290 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TRegionInfo.class)));
54291 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
54292 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
54293 metaDataMap = Collections.unmodifiableMap(tmpMap);
54294 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRegionInfo_result.class, metaDataMap);
54295 }
54296
54297 public getRegionInfo_result() {
54298 }
54299
54300 public getRegionInfo_result(
54301 TRegionInfo success,
54302 IOError io)
54303 {
54304 this();
54305 this.success = success;
54306 this.io = io;
54307 }
54308
54309
54310
54311
54312 public getRegionInfo_result(getRegionInfo_result other) {
54313 if (other.isSetSuccess()) {
54314 this.success = new TRegionInfo(other.success);
54315 }
54316 if (other.isSetIo()) {
54317 this.io = new IOError(other.io);
54318 }
54319 }
54320
54321 public getRegionInfo_result deepCopy() {
54322 return new getRegionInfo_result(this);
54323 }
54324
54325 @Override
54326 public void clear() {
54327 this.success = null;
54328 this.io = null;
54329 }
54330
54331 public TRegionInfo getSuccess() {
54332 return this.success;
54333 }
54334
54335 public getRegionInfo_result setSuccess(TRegionInfo success) {
54336 this.success = success;
54337 return this;
54338 }
54339
54340 public void unsetSuccess() {
54341 this.success = null;
54342 }
54343
54344
54345 public boolean isSetSuccess() {
54346 return this.success != null;
54347 }
54348
54349 public void setSuccessIsSet(boolean value) {
54350 if (!value) {
54351 this.success = null;
54352 }
54353 }
54354
54355 public IOError getIo() {
54356 return this.io;
54357 }
54358
54359 public getRegionInfo_result setIo(IOError io) {
54360 this.io = io;
54361 return this;
54362 }
54363
54364 public void unsetIo() {
54365 this.io = null;
54366 }
54367
54368
54369 public boolean isSetIo() {
54370 return this.io != null;
54371 }
54372
54373 public void setIoIsSet(boolean value) {
54374 if (!value) {
54375 this.io = null;
54376 }
54377 }
54378
54379 public void setFieldValue(_Fields field, Object value) {
54380 switch (field) {
54381 case SUCCESS:
54382 if (value == null) {
54383 unsetSuccess();
54384 } else {
54385 setSuccess((TRegionInfo)value);
54386 }
54387 break;
54388
54389 case IO:
54390 if (value == null) {
54391 unsetIo();
54392 } else {
54393 setIo((IOError)value);
54394 }
54395 break;
54396
54397 }
54398 }
54399
54400 public Object getFieldValue(_Fields field) {
54401 switch (field) {
54402 case SUCCESS:
54403 return getSuccess();
54404
54405 case IO:
54406 return getIo();
54407
54408 }
54409 throw new IllegalStateException();
54410 }
54411
54412
54413 public boolean isSet(_Fields field) {
54414 if (field == null) {
54415 throw new IllegalArgumentException();
54416 }
54417
54418 switch (field) {
54419 case SUCCESS:
54420 return isSetSuccess();
54421 case IO:
54422 return isSetIo();
54423 }
54424 throw new IllegalStateException();
54425 }
54426
54427 @Override
54428 public boolean equals(Object that) {
54429 if (that == null)
54430 return false;
54431 if (that instanceof getRegionInfo_result)
54432 return this.equals((getRegionInfo_result)that);
54433 return false;
54434 }
54435
54436 public boolean equals(getRegionInfo_result that) {
54437 if (that == null)
54438 return false;
54439
54440 boolean this_present_success = true && this.isSetSuccess();
54441 boolean that_present_success = true && that.isSetSuccess();
54442 if (this_present_success || that_present_success) {
54443 if (!(this_present_success && that_present_success))
54444 return false;
54445 if (!this.success.equals(that.success))
54446 return false;
54447 }
54448
54449 boolean this_present_io = true && this.isSetIo();
54450 boolean that_present_io = true && that.isSetIo();
54451 if (this_present_io || that_present_io) {
54452 if (!(this_present_io && that_present_io))
54453 return false;
54454 if (!this.io.equals(that.io))
54455 return false;
54456 }
54457
54458 return true;
54459 }
54460
54461 @Override
54462 public int hashCode() {
54463 HashCodeBuilder builder = new HashCodeBuilder();
54464
54465 boolean present_success = true && (isSetSuccess());
54466 builder.append(present_success);
54467 if (present_success)
54468 builder.append(success);
54469
54470 boolean present_io = true && (isSetIo());
54471 builder.append(present_io);
54472 if (present_io)
54473 builder.append(io);
54474
54475 return builder.toHashCode();
54476 }
54477
54478 public int compareTo(getRegionInfo_result other) {
54479 if (!getClass().equals(other.getClass())) {
54480 return getClass().getName().compareTo(other.getClass().getName());
54481 }
54482
54483 int lastComparison = 0;
54484 getRegionInfo_result typedOther = (getRegionInfo_result)other;
54485
54486 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
54487 if (lastComparison != 0) {
54488 return lastComparison;
54489 }
54490 if (isSetSuccess()) {
54491 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
54492 if (lastComparison != 0) {
54493 return lastComparison;
54494 }
54495 }
54496 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
54497 if (lastComparison != 0) {
54498 return lastComparison;
54499 }
54500 if (isSetIo()) {
54501 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
54502 if (lastComparison != 0) {
54503 return lastComparison;
54504 }
54505 }
54506 return 0;
54507 }
54508
54509 public _Fields fieldForId(int fieldId) {
54510 return _Fields.findByThriftId(fieldId);
54511 }
54512
54513 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54514 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
54515 }
54516
54517 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54518 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
54519 }
54520
54521 @Override
54522 public String toString() {
54523 StringBuilder sb = new StringBuilder("getRegionInfo_result(");
54524 boolean first = true;
54525
54526 sb.append("success:");
54527 if (this.success == null) {
54528 sb.append("null");
54529 } else {
54530 sb.append(this.success);
54531 }
54532 first = false;
54533 if (!first) sb.append(", ");
54534 sb.append("io:");
54535 if (this.io == null) {
54536 sb.append("null");
54537 } else {
54538 sb.append(this.io);
54539 }
54540 first = false;
54541 sb.append(")");
54542 return sb.toString();
54543 }
54544
54545 public void validate() throws org.apache.thrift.TException {
54546
54547
54548 if (success != null) {
54549 success.validate();
54550 }
54551 }
54552
54553 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54554 try {
54555 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54556 } catch (org.apache.thrift.TException te) {
54557 throw new java.io.IOException(te);
54558 }
54559 }
54560
54561 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54562 try {
54563 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54564 } catch (org.apache.thrift.TException te) {
54565 throw new java.io.IOException(te);
54566 }
54567 }
54568
54569 private static class getRegionInfo_resultStandardSchemeFactory implements SchemeFactory {
54570 public getRegionInfo_resultStandardScheme getScheme() {
54571 return new getRegionInfo_resultStandardScheme();
54572 }
54573 }
54574
54575 private static class getRegionInfo_resultStandardScheme extends StandardScheme<getRegionInfo_result> {
54576
54577 public void read(org.apache.thrift.protocol.TProtocol iprot, getRegionInfo_result struct) throws org.apache.thrift.TException {
54578 org.apache.thrift.protocol.TField schemeField;
54579 iprot.readStructBegin();
54580 while (true)
54581 {
54582 schemeField = iprot.readFieldBegin();
54583 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
54584 break;
54585 }
54586 switch (schemeField.id) {
54587 case 0:
54588 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
54589 struct.success = new TRegionInfo();
54590 struct.success.read(iprot);
54591 struct.setSuccessIsSet(true);
54592 } else {
54593 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
54594 }
54595 break;
54596 case 1:
54597 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
54598 struct.io = new IOError();
54599 struct.io.read(iprot);
54600 struct.setIoIsSet(true);
54601 } else {
54602 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
54603 }
54604 break;
54605 default:
54606 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
54607 }
54608 iprot.readFieldEnd();
54609 }
54610 iprot.readStructEnd();
54611
54612
54613 struct.validate();
54614 }
54615
54616 public void write(org.apache.thrift.protocol.TProtocol oprot, getRegionInfo_result struct) throws org.apache.thrift.TException {
54617 struct.validate();
54618
54619 oprot.writeStructBegin(STRUCT_DESC);
54620 if (struct.success != null) {
54621 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54622 struct.success.write(oprot);
54623 oprot.writeFieldEnd();
54624 }
54625 if (struct.io != null) {
54626 oprot.writeFieldBegin(IO_FIELD_DESC);
54627 struct.io.write(oprot);
54628 oprot.writeFieldEnd();
54629 }
54630 oprot.writeFieldStop();
54631 oprot.writeStructEnd();
54632 }
54633
54634 }
54635
54636 private static class getRegionInfo_resultTupleSchemeFactory implements SchemeFactory {
54637 public getRegionInfo_resultTupleScheme getScheme() {
54638 return new getRegionInfo_resultTupleScheme();
54639 }
54640 }
54641
54642 private static class getRegionInfo_resultTupleScheme extends TupleScheme<getRegionInfo_result> {
54643
54644 @Override
54645 public void write(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_result struct) throws org.apache.thrift.TException {
54646 TTupleProtocol oprot = (TTupleProtocol) prot;
54647 BitSet optionals = new BitSet();
54648 if (struct.isSetSuccess()) {
54649 optionals.set(0);
54650 }
54651 if (struct.isSetIo()) {
54652 optionals.set(1);
54653 }
54654 oprot.writeBitSet(optionals, 2);
54655 if (struct.isSetSuccess()) {
54656 struct.success.write(oprot);
54657 }
54658 if (struct.isSetIo()) {
54659 struct.io.write(oprot);
54660 }
54661 }
54662
54663 @Override
54664 public void read(org.apache.thrift.protocol.TProtocol prot, getRegionInfo_result struct) throws org.apache.thrift.TException {
54665 TTupleProtocol iprot = (TTupleProtocol) prot;
54666 BitSet incoming = iprot.readBitSet(2);
54667 if (incoming.get(0)) {
54668 struct.success = new TRegionInfo();
54669 struct.success.read(iprot);
54670 struct.setSuccessIsSet(true);
54671 }
54672 if (incoming.get(1)) {
54673 struct.io = new IOError();
54674 struct.io.read(iprot);
54675 struct.setIoIsSet(true);
54676 }
54677 }
54678 }
54679
54680 }
54681
54682 public static class append_args implements org.apache.thrift.TBase<append_args, append_args._Fields>, java.io.Serializable, Cloneable {
54683 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_args");
54684
54685 private static final org.apache.thrift.protocol.TField APPEND_FIELD_DESC = new org.apache.thrift.protocol.TField("append", org.apache.thrift.protocol.TType.STRUCT, (short)1);
54686
54687 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
54688 static {
54689 schemes.put(StandardScheme.class, new append_argsStandardSchemeFactory());
54690 schemes.put(TupleScheme.class, new append_argsTupleSchemeFactory());
54691 }
54692
54693
54694
54695
54696 public TAppend append;
54697
54698
54699 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54700
54701
54702
54703 APPEND((short)1, "append");
54704
54705 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54706
54707 static {
54708 for (_Fields field : EnumSet.allOf(_Fields.class)) {
54709 byName.put(field.getFieldName(), field);
54710 }
54711 }
54712
54713
54714
54715
54716 public static _Fields findByThriftId(int fieldId) {
54717 switch(fieldId) {
54718 case 1:
54719 return APPEND;
54720 default:
54721 return null;
54722 }
54723 }
54724
54725
54726
54727
54728
54729 public static _Fields findByThriftIdOrThrow(int fieldId) {
54730 _Fields fields = findByThriftId(fieldId);
54731 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54732 return fields;
54733 }
54734
54735
54736
54737
54738 public static _Fields findByName(String name) {
54739 return byName.get(name);
54740 }
54741
54742 private final short _thriftId;
54743 private final String _fieldName;
54744
54745 _Fields(short thriftId, String fieldName) {
54746 _thriftId = thriftId;
54747 _fieldName = fieldName;
54748 }
54749
54750 public short getThriftFieldId() {
54751 return _thriftId;
54752 }
54753
54754 public String getFieldName() {
54755 return _fieldName;
54756 }
54757 }
54758
54759
54760 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54761 static {
54762 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54763 tmpMap.put(_Fields.APPEND, new org.apache.thrift.meta_data.FieldMetaData("append", org.apache.thrift.TFieldRequirementType.DEFAULT,
54764 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TAppend.class)));
54765 metaDataMap = Collections.unmodifiableMap(tmpMap);
54766 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_args.class, metaDataMap);
54767 }
54768
54769 public append_args() {
54770 }
54771
54772 public append_args(
54773 TAppend append)
54774 {
54775 this();
54776 this.append = append;
54777 }
54778
54779
54780
54781
54782 public append_args(append_args other) {
54783 if (other.isSetAppend()) {
54784 this.append = new TAppend(other.append);
54785 }
54786 }
54787
54788 public append_args deepCopy() {
54789 return new append_args(this);
54790 }
54791
54792 @Override
54793 public void clear() {
54794 this.append = null;
54795 }
54796
54797
54798
54799
54800 public TAppend getAppend() {
54801 return this.append;
54802 }
54803
54804
54805
54806
54807 public append_args setAppend(TAppend append) {
54808 this.append = append;
54809 return this;
54810 }
54811
54812 public void unsetAppend() {
54813 this.append = null;
54814 }
54815
54816
54817 public boolean isSetAppend() {
54818 return this.append != null;
54819 }
54820
54821 public void setAppendIsSet(boolean value) {
54822 if (!value) {
54823 this.append = null;
54824 }
54825 }
54826
54827 public void setFieldValue(_Fields field, Object value) {
54828 switch (field) {
54829 case APPEND:
54830 if (value == null) {
54831 unsetAppend();
54832 } else {
54833 setAppend((TAppend)value);
54834 }
54835 break;
54836
54837 }
54838 }
54839
54840 public Object getFieldValue(_Fields field) {
54841 switch (field) {
54842 case APPEND:
54843 return getAppend();
54844
54845 }
54846 throw new IllegalStateException();
54847 }
54848
54849
54850 public boolean isSet(_Fields field) {
54851 if (field == null) {
54852 throw new IllegalArgumentException();
54853 }
54854
54855 switch (field) {
54856 case APPEND:
54857 return isSetAppend();
54858 }
54859 throw new IllegalStateException();
54860 }
54861
54862 @Override
54863 public boolean equals(Object that) {
54864 if (that == null)
54865 return false;
54866 if (that instanceof append_args)
54867 return this.equals((append_args)that);
54868 return false;
54869 }
54870
54871 public boolean equals(append_args that) {
54872 if (that == null)
54873 return false;
54874
54875 boolean this_present_append = true && this.isSetAppend();
54876 boolean that_present_append = true && that.isSetAppend();
54877 if (this_present_append || that_present_append) {
54878 if (!(this_present_append && that_present_append))
54879 return false;
54880 if (!this.append.equals(that.append))
54881 return false;
54882 }
54883
54884 return true;
54885 }
54886
54887 @Override
54888 public int hashCode() {
54889 HashCodeBuilder builder = new HashCodeBuilder();
54890
54891 boolean present_append = true && (isSetAppend());
54892 builder.append(present_append);
54893 if (present_append)
54894 builder.append(append);
54895
54896 return builder.toHashCode();
54897 }
54898
54899 public int compareTo(append_args other) {
54900 if (!getClass().equals(other.getClass())) {
54901 return getClass().getName().compareTo(other.getClass().getName());
54902 }
54903
54904 int lastComparison = 0;
54905 append_args typedOther = (append_args)other;
54906
54907 lastComparison = Boolean.valueOf(isSetAppend()).compareTo(typedOther.isSetAppend());
54908 if (lastComparison != 0) {
54909 return lastComparison;
54910 }
54911 if (isSetAppend()) {
54912 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.append, typedOther.append);
54913 if (lastComparison != 0) {
54914 return lastComparison;
54915 }
54916 }
54917 return 0;
54918 }
54919
54920 public _Fields fieldForId(int fieldId) {
54921 return _Fields.findByThriftId(fieldId);
54922 }
54923
54924 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54925 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
54926 }
54927
54928 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54929 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
54930 }
54931
54932 @Override
54933 public String toString() {
54934 StringBuilder sb = new StringBuilder("append_args(");
54935 boolean first = true;
54936
54937 sb.append("append:");
54938 if (this.append == null) {
54939 sb.append("null");
54940 } else {
54941 sb.append(this.append);
54942 }
54943 first = false;
54944 sb.append(")");
54945 return sb.toString();
54946 }
54947
54948 public void validate() throws org.apache.thrift.TException {
54949
54950
54951 if (append != null) {
54952 append.validate();
54953 }
54954 }
54955
54956 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54957 try {
54958 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54959 } catch (org.apache.thrift.TException te) {
54960 throw new java.io.IOException(te);
54961 }
54962 }
54963
54964 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54965 try {
54966 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54967 } catch (org.apache.thrift.TException te) {
54968 throw new java.io.IOException(te);
54969 }
54970 }
54971
54972 private static class append_argsStandardSchemeFactory implements SchemeFactory {
54973 public append_argsStandardScheme getScheme() {
54974 return new append_argsStandardScheme();
54975 }
54976 }
54977
54978 private static class append_argsStandardScheme extends StandardScheme<append_args> {
54979
54980 public void read(org.apache.thrift.protocol.TProtocol iprot, append_args struct) throws org.apache.thrift.TException {
54981 org.apache.thrift.protocol.TField schemeField;
54982 iprot.readStructBegin();
54983 while (true)
54984 {
54985 schemeField = iprot.readFieldBegin();
54986 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
54987 break;
54988 }
54989 switch (schemeField.id) {
54990 case 1:
54991 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
54992 struct.append = new TAppend();
54993 struct.append.read(iprot);
54994 struct.setAppendIsSet(true);
54995 } else {
54996 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
54997 }
54998 break;
54999 default:
55000 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55001 }
55002 iprot.readFieldEnd();
55003 }
55004 iprot.readStructEnd();
55005
55006
55007 struct.validate();
55008 }
55009
55010 public void write(org.apache.thrift.protocol.TProtocol oprot, append_args struct) throws org.apache.thrift.TException {
55011 struct.validate();
55012
55013 oprot.writeStructBegin(STRUCT_DESC);
55014 if (struct.append != null) {
55015 oprot.writeFieldBegin(APPEND_FIELD_DESC);
55016 struct.append.write(oprot);
55017 oprot.writeFieldEnd();
55018 }
55019 oprot.writeFieldStop();
55020 oprot.writeStructEnd();
55021 }
55022
55023 }
55024
55025 private static class append_argsTupleSchemeFactory implements SchemeFactory {
55026 public append_argsTupleScheme getScheme() {
55027 return new append_argsTupleScheme();
55028 }
55029 }
55030
55031 private static class append_argsTupleScheme extends TupleScheme<append_args> {
55032
55033 @Override
55034 public void write(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException {
55035 TTupleProtocol oprot = (TTupleProtocol) prot;
55036 BitSet optionals = new BitSet();
55037 if (struct.isSetAppend()) {
55038 optionals.set(0);
55039 }
55040 oprot.writeBitSet(optionals, 1);
55041 if (struct.isSetAppend()) {
55042 struct.append.write(oprot);
55043 }
55044 }
55045
55046 @Override
55047 public void read(org.apache.thrift.protocol.TProtocol prot, append_args struct) throws org.apache.thrift.TException {
55048 TTupleProtocol iprot = (TTupleProtocol) prot;
55049 BitSet incoming = iprot.readBitSet(1);
55050 if (incoming.get(0)) {
55051 struct.append = new TAppend();
55052 struct.append.read(iprot);
55053 struct.setAppendIsSet(true);
55054 }
55055 }
55056 }
55057
55058 }
55059
55060 public static class append_result implements org.apache.thrift.TBase<append_result, append_result._Fields>, java.io.Serializable, Cloneable {
55061 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_result");
55062
55063 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
55064 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
55065
55066 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
55067 static {
55068 schemes.put(StandardScheme.class, new append_resultStandardSchemeFactory());
55069 schemes.put(TupleScheme.class, new append_resultTupleSchemeFactory());
55070 }
55071
55072 public List<TCell> success;
55073 public IOError io;
55074
55075
55076 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55077 SUCCESS((short)0, "success"),
55078 IO((short)1, "io");
55079
55080 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55081
55082 static {
55083 for (_Fields field : EnumSet.allOf(_Fields.class)) {
55084 byName.put(field.getFieldName(), field);
55085 }
55086 }
55087
55088
55089
55090
55091 public static _Fields findByThriftId(int fieldId) {
55092 switch(fieldId) {
55093 case 0:
55094 return SUCCESS;
55095 case 1:
55096 return IO;
55097 default:
55098 return null;
55099 }
55100 }
55101
55102
55103
55104
55105
55106 public static _Fields findByThriftIdOrThrow(int fieldId) {
55107 _Fields fields = findByThriftId(fieldId);
55108 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55109 return fields;
55110 }
55111
55112
55113
55114
55115 public static _Fields findByName(String name) {
55116 return byName.get(name);
55117 }
55118
55119 private final short _thriftId;
55120 private final String _fieldName;
55121
55122 _Fields(short thriftId, String fieldName) {
55123 _thriftId = thriftId;
55124 _fieldName = fieldName;
55125 }
55126
55127 public short getThriftFieldId() {
55128 return _thriftId;
55129 }
55130
55131 public String getFieldName() {
55132 return _fieldName;
55133 }
55134 }
55135
55136
55137 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55138 static {
55139 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55140 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
55141 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
55142 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCell.class))));
55143 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
55144 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
55145 metaDataMap = Collections.unmodifiableMap(tmpMap);
55146 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_result.class, metaDataMap);
55147 }
55148
55149 public append_result() {
55150 }
55151
55152 public append_result(
55153 List<TCell> success,
55154 IOError io)
55155 {
55156 this();
55157 this.success = success;
55158 this.io = io;
55159 }
55160
55161
55162
55163
55164 public append_result(append_result other) {
55165 if (other.isSetSuccess()) {
55166 List<TCell> __this__success = new ArrayList<TCell>();
55167 for (TCell other_element : other.success) {
55168 __this__success.add(new TCell(other_element));
55169 }
55170 this.success = __this__success;
55171 }
55172 if (other.isSetIo()) {
55173 this.io = new IOError(other.io);
55174 }
55175 }
55176
55177 public append_result deepCopy() {
55178 return new append_result(this);
55179 }
55180
55181 @Override
55182 public void clear() {
55183 this.success = null;
55184 this.io = null;
55185 }
55186
55187 public int getSuccessSize() {
55188 return (this.success == null) ? 0 : this.success.size();
55189 }
55190
55191 public java.util.Iterator<TCell> getSuccessIterator() {
55192 return (this.success == null) ? null : this.success.iterator();
55193 }
55194
55195 public void addToSuccess(TCell elem) {
55196 if (this.success == null) {
55197 this.success = new ArrayList<TCell>();
55198 }
55199 this.success.add(elem);
55200 }
55201
55202 public List<TCell> getSuccess() {
55203 return this.success;
55204 }
55205
55206 public append_result setSuccess(List<TCell> success) {
55207 this.success = success;
55208 return this;
55209 }
55210
55211 public void unsetSuccess() {
55212 this.success = null;
55213 }
55214
55215
55216 public boolean isSetSuccess() {
55217 return this.success != null;
55218 }
55219
55220 public void setSuccessIsSet(boolean value) {
55221 if (!value) {
55222 this.success = null;
55223 }
55224 }
55225
55226 public IOError getIo() {
55227 return this.io;
55228 }
55229
55230 public append_result setIo(IOError io) {
55231 this.io = io;
55232 return this;
55233 }
55234
55235 public void unsetIo() {
55236 this.io = null;
55237 }
55238
55239
55240 public boolean isSetIo() {
55241 return this.io != null;
55242 }
55243
55244 public void setIoIsSet(boolean value) {
55245 if (!value) {
55246 this.io = null;
55247 }
55248 }
55249
55250 public void setFieldValue(_Fields field, Object value) {
55251 switch (field) {
55252 case SUCCESS:
55253 if (value == null) {
55254 unsetSuccess();
55255 } else {
55256 setSuccess((List<TCell>)value);
55257 }
55258 break;
55259
55260 case IO:
55261 if (value == null) {
55262 unsetIo();
55263 } else {
55264 setIo((IOError)value);
55265 }
55266 break;
55267
55268 }
55269 }
55270
55271 public Object getFieldValue(_Fields field) {
55272 switch (field) {
55273 case SUCCESS:
55274 return getSuccess();
55275
55276 case IO:
55277 return getIo();
55278
55279 }
55280 throw new IllegalStateException();
55281 }
55282
55283
55284 public boolean isSet(_Fields field) {
55285 if (field == null) {
55286 throw new IllegalArgumentException();
55287 }
55288
55289 switch (field) {
55290 case SUCCESS:
55291 return isSetSuccess();
55292 case IO:
55293 return isSetIo();
55294 }
55295 throw new IllegalStateException();
55296 }
55297
55298 @Override
55299 public boolean equals(Object that) {
55300 if (that == null)
55301 return false;
55302 if (that instanceof append_result)
55303 return this.equals((append_result)that);
55304 return false;
55305 }
55306
55307 public boolean equals(append_result that) {
55308 if (that == null)
55309 return false;
55310
55311 boolean this_present_success = true && this.isSetSuccess();
55312 boolean that_present_success = true && that.isSetSuccess();
55313 if (this_present_success || that_present_success) {
55314 if (!(this_present_success && that_present_success))
55315 return false;
55316 if (!this.success.equals(that.success))
55317 return false;
55318 }
55319
55320 boolean this_present_io = true && this.isSetIo();
55321 boolean that_present_io = true && that.isSetIo();
55322 if (this_present_io || that_present_io) {
55323 if (!(this_present_io && that_present_io))
55324 return false;
55325 if (!this.io.equals(that.io))
55326 return false;
55327 }
55328
55329 return true;
55330 }
55331
55332 @Override
55333 public int hashCode() {
55334 HashCodeBuilder builder = new HashCodeBuilder();
55335
55336 boolean present_success = true && (isSetSuccess());
55337 builder.append(present_success);
55338 if (present_success)
55339 builder.append(success);
55340
55341 boolean present_io = true && (isSetIo());
55342 builder.append(present_io);
55343 if (present_io)
55344 builder.append(io);
55345
55346 return builder.toHashCode();
55347 }
55348
55349 public int compareTo(append_result other) {
55350 if (!getClass().equals(other.getClass())) {
55351 return getClass().getName().compareTo(other.getClass().getName());
55352 }
55353
55354 int lastComparison = 0;
55355 append_result typedOther = (append_result)other;
55356
55357 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
55358 if (lastComparison != 0) {
55359 return lastComparison;
55360 }
55361 if (isSetSuccess()) {
55362 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
55363 if (lastComparison != 0) {
55364 return lastComparison;
55365 }
55366 }
55367 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
55368 if (lastComparison != 0) {
55369 return lastComparison;
55370 }
55371 if (isSetIo()) {
55372 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
55373 if (lastComparison != 0) {
55374 return lastComparison;
55375 }
55376 }
55377 return 0;
55378 }
55379
55380 public _Fields fieldForId(int fieldId) {
55381 return _Fields.findByThriftId(fieldId);
55382 }
55383
55384 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55385 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
55386 }
55387
55388 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55389 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
55390 }
55391
55392 @Override
55393 public String toString() {
55394 StringBuilder sb = new StringBuilder("append_result(");
55395 boolean first = true;
55396
55397 sb.append("success:");
55398 if (this.success == null) {
55399 sb.append("null");
55400 } else {
55401 sb.append(this.success);
55402 }
55403 first = false;
55404 if (!first) sb.append(", ");
55405 sb.append("io:");
55406 if (this.io == null) {
55407 sb.append("null");
55408 } else {
55409 sb.append(this.io);
55410 }
55411 first = false;
55412 sb.append(")");
55413 return sb.toString();
55414 }
55415
55416 public void validate() throws org.apache.thrift.TException {
55417
55418
55419 }
55420
55421 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55422 try {
55423 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55424 } catch (org.apache.thrift.TException te) {
55425 throw new java.io.IOException(te);
55426 }
55427 }
55428
55429 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55430 try {
55431 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55432 } catch (org.apache.thrift.TException te) {
55433 throw new java.io.IOException(te);
55434 }
55435 }
55436
55437 private static class append_resultStandardSchemeFactory implements SchemeFactory {
55438 public append_resultStandardScheme getScheme() {
55439 return new append_resultStandardScheme();
55440 }
55441 }
55442
55443 private static class append_resultStandardScheme extends StandardScheme<append_result> {
55444
55445 public void read(org.apache.thrift.protocol.TProtocol iprot, append_result struct) throws org.apache.thrift.TException {
55446 org.apache.thrift.protocol.TField schemeField;
55447 iprot.readStructBegin();
55448 while (true)
55449 {
55450 schemeField = iprot.readFieldBegin();
55451 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
55452 break;
55453 }
55454 switch (schemeField.id) {
55455 case 0:
55456 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
55457 {
55458 org.apache.thrift.protocol.TList _list590 = iprot.readListBegin();
55459 struct.success = new ArrayList<TCell>(_list590.size);
55460 for (int _i591 = 0; _i591 < _list590.size; ++_i591)
55461 {
55462 TCell _elem592;
55463 _elem592 = new TCell();
55464 _elem592.read(iprot);
55465 struct.success.add(_elem592);
55466 }
55467 iprot.readListEnd();
55468 }
55469 struct.setSuccessIsSet(true);
55470 } else {
55471 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55472 }
55473 break;
55474 case 1:
55475 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
55476 struct.io = new IOError();
55477 struct.io.read(iprot);
55478 struct.setIoIsSet(true);
55479 } else {
55480 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55481 }
55482 break;
55483 default:
55484 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
55485 }
55486 iprot.readFieldEnd();
55487 }
55488 iprot.readStructEnd();
55489
55490
55491 struct.validate();
55492 }
55493
55494 public void write(org.apache.thrift.protocol.TProtocol oprot, append_result struct) throws org.apache.thrift.TException {
55495 struct.validate();
55496
55497 oprot.writeStructBegin(STRUCT_DESC);
55498 if (struct.success != null) {
55499 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55500 {
55501 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
55502 for (TCell _iter593 : struct.success)
55503 {
55504 _iter593.write(oprot);
55505 }
55506 oprot.writeListEnd();
55507 }
55508 oprot.writeFieldEnd();
55509 }
55510 if (struct.io != null) {
55511 oprot.writeFieldBegin(IO_FIELD_DESC);
55512 struct.io.write(oprot);
55513 oprot.writeFieldEnd();
55514 }
55515 oprot.writeFieldStop();
55516 oprot.writeStructEnd();
55517 }
55518
55519 }
55520
55521 private static class append_resultTupleSchemeFactory implements SchemeFactory {
55522 public append_resultTupleScheme getScheme() {
55523 return new append_resultTupleScheme();
55524 }
55525 }
55526
55527 private static class append_resultTupleScheme extends TupleScheme<append_result> {
55528
55529 @Override
55530 public void write(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException {
55531 TTupleProtocol oprot = (TTupleProtocol) prot;
55532 BitSet optionals = new BitSet();
55533 if (struct.isSetSuccess()) {
55534 optionals.set(0);
55535 }
55536 if (struct.isSetIo()) {
55537 optionals.set(1);
55538 }
55539 oprot.writeBitSet(optionals, 2);
55540 if (struct.isSetSuccess()) {
55541 {
55542 oprot.writeI32(struct.success.size());
55543 for (TCell _iter594 : struct.success)
55544 {
55545 _iter594.write(oprot);
55546 }
55547 }
55548 }
55549 if (struct.isSetIo()) {
55550 struct.io.write(oprot);
55551 }
55552 }
55553
55554 @Override
55555 public void read(org.apache.thrift.protocol.TProtocol prot, append_result struct) throws org.apache.thrift.TException {
55556 TTupleProtocol iprot = (TTupleProtocol) prot;
55557 BitSet incoming = iprot.readBitSet(2);
55558 if (incoming.get(0)) {
55559 {
55560 org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
55561 struct.success = new ArrayList<TCell>(_list595.size);
55562 for (int _i596 = 0; _i596 < _list595.size; ++_i596)
55563 {
55564 TCell _elem597;
55565 _elem597 = new TCell();
55566 _elem597.read(iprot);
55567 struct.success.add(_elem597);
55568 }
55569 }
55570 struct.setSuccessIsSet(true);
55571 }
55572 if (incoming.get(1)) {
55573 struct.io = new IOError();
55574 struct.io.read(iprot);
55575 struct.setIoIsSet(true);
55576 }
55577 }
55578 }
55579
55580 }
55581
55582 public static class checkAndPut_args implements org.apache.thrift.TBase<checkAndPut_args, checkAndPut_args._Fields>, java.io.Serializable, Cloneable {
55583 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndPut_args");
55584
55585 private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1);
55586 private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.STRING, (short)2);
55587 private static final org.apache.thrift.protocol.TField COLUMN_FIELD_DESC = new org.apache.thrift.protocol.TField("column", org.apache.thrift.protocol.TType.STRING, (short)3);
55588 private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)5);
55589 private static final org.apache.thrift.protocol.TField MPUT_FIELD_DESC = new org.apache.thrift.protocol.TField("mput", org.apache.thrift.protocol.TType.STRUCT, (short)6);
55590 private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.MAP, (short)7);
55591
55592 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
55593 static {
55594 schemes.put(StandardScheme.class, new checkAndPut_argsStandardSchemeFactory());
55595 schemes.put(TupleScheme.class, new checkAndPut_argsTupleSchemeFactory());
55596 }
55597
55598
55599
55600
55601 public ByteBuffer tableName;
55602
55603
55604
55605 public ByteBuffer row;
55606
55607
55608
55609 public ByteBuffer column;
55610
55611
55612
55613
55614
55615 public ByteBuffer value;
55616
55617
55618
55619 public Mutation mput;
55620
55621
55622
55623 public Map<ByteBuffer,ByteBuffer> attributes;
55624
55625
55626 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55627
55628
55629
55630 TABLE_NAME((short)1, "tableName"),
55631
55632
55633
55634 ROW((short)2, "row"),
55635
55636
55637
55638 COLUMN((short)3, "column"),
55639
55640
55641
55642
55643
55644 VALUE((short)5, "value"),
55645
55646
55647
55648 MPUT((short)6, "mput"),
55649
55650
55651
55652 ATTRIBUTES((short)7, "attributes");
55653
55654 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55655
55656 static {
55657 for (_Fields field : EnumSet.allOf(_Fields.class)) {
55658 byName.put(field.getFieldName(), field);
55659 }
55660 }
55661
55662
55663
55664
55665 public static _Fields findByThriftId(int fieldId) {
55666 switch(fieldId) {
55667 case 1:
55668 return TABLE_NAME;
55669 case 2:
55670 return ROW;
55671 case 3:
55672 return COLUMN;
55673 case 5:
55674 return VALUE;
55675 case 6:
55676 return MPUT;
55677 case 7:
55678 return ATTRIBUTES;
55679 default:
55680 return null;
55681 }
55682 }
55683
55684
55685
55686
55687
55688 public static _Fields findByThriftIdOrThrow(int fieldId) {
55689 _Fields fields = findByThriftId(fieldId);
55690 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55691 return fields;
55692 }
55693
55694
55695
55696
55697 public static _Fields findByName(String name) {
55698 return byName.get(name);
55699 }
55700
55701 private final short _thriftId;
55702 private final String _fieldName;
55703
55704 _Fields(short thriftId, String fieldName) {
55705 _thriftId = thriftId;
55706 _fieldName = fieldName;
55707 }
55708
55709 public short getThriftFieldId() {
55710 return _thriftId;
55711 }
55712
55713 public String getFieldName() {
55714 return _fieldName;
55715 }
55716 }
55717
55718
55719 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55720 static {
55721 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55722 tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("tableName", org.apache.thrift.TFieldRequirementType.DEFAULT,
55723 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
55724 tmpMap.put(_Fields.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.DEFAULT,
55725 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
55726 tmpMap.put(_Fields.COLUMN, new org.apache.thrift.meta_data.FieldMetaData("column", org.apache.thrift.TFieldRequirementType.DEFAULT,
55727 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
55728 tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.DEFAULT,
55729 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text")));
55730 tmpMap.put(_Fields.MPUT, new org.apache.thrift.meta_data.FieldMetaData("mput", org.apache.thrift.TFieldRequirementType.DEFAULT,
55731 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mutation.class)));
55732 tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,
55733 new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
55734 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"),
55735 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Text"))));
55736 metaDataMap = Collections.unmodifiableMap(tmpMap);
55737 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_args.class, metaDataMap);
55738 }
55739
55740 public checkAndPut_args() {
55741 }
55742
55743 public checkAndPut_args(
55744 ByteBuffer tableName,
55745 ByteBuffer row,
55746 ByteBuffer column,
55747 ByteBuffer value,
55748 Mutation mput,
55749 Map<ByteBuffer,ByteBuffer> attributes)
55750 {
55751 this();
55752 this.tableName = tableName;
55753 this.row = row;
55754 this.column = column;
55755 this.value = value;
55756 this.mput = mput;
55757 this.attributes = attributes;
55758 }
55759
55760
55761
55762
55763 public checkAndPut_args(checkAndPut_args other) {
55764 if (other.isSetTableName()) {
55765 this.tableName = other.tableName;
55766 }
55767 if (other.isSetRow()) {
55768 this.row = other.row;
55769 }
55770 if (other.isSetColumn()) {
55771 this.column = other.column;
55772 }
55773 if (other.isSetValue()) {
55774 this.value = other.value;
55775 }
55776 if (other.isSetMput()) {
55777 this.mput = new Mutation(other.mput);
55778 }
55779 if (other.isSetAttributes()) {
55780 Map<ByteBuffer,ByteBuffer> __this__attributes = new HashMap<ByteBuffer,ByteBuffer>();
55781 for (Map.Entry<ByteBuffer, ByteBuffer> other_element : other.attributes.entrySet()) {
55782
55783 ByteBuffer other_element_key = other_element.getKey();
55784 ByteBuffer other_element_value = other_element.getValue();
55785
55786 ByteBuffer __this__attributes_copy_key = other_element_key;
55787
55788 ByteBuffer __this__attributes_copy_value = other_element_value;
55789
55790 __this__attributes.put(__this__attributes_copy_key, __this__attributes_copy_value);
55791 }
55792 this.attributes = __this__attributes;
55793 }
55794 }
55795
55796 public checkAndPut_args deepCopy() {
55797 return new checkAndPut_args(this);
55798 }
55799
55800 @Override
55801 public void clear() {
55802 this.tableName = null;
55803 this.row = null;
55804 this.column = null;
55805 this.value = null;
55806 this.mput = null;
55807 this.attributes = null;
55808 }
55809
55810
55811
55812
55813 public byte[] getTableName() {
55814 setTableName(org.apache.thrift.TBaseHelper.rightSize(tableName));
55815 return tableName == null ? null : tableName.array();
55816 }
55817
55818 public ByteBuffer bufferForTableName() {
55819 return tableName;
55820 }
55821
55822
55823
55824
55825 public checkAndPut_args setTableName(byte[] tableName) {
55826 setTableName(tableName == null ? (ByteBuffer)null : ByteBuffer.wrap(tableName));
55827 return this;
55828 }
55829
55830 public checkAndPut_args setTableName(ByteBuffer tableName) {
55831 this.tableName = tableName;
55832 return this;
55833 }
55834
55835 public void unsetTableName() {
55836 this.tableName = null;
55837 }
55838
55839
55840 public boolean isSetTableName() {
55841 return this.tableName != null;
55842 }
55843
55844 public void setTableNameIsSet(boolean value) {
55845 if (!value) {
55846 this.tableName = null;
55847 }
55848 }
55849
55850
55851
55852
55853 public byte[] getRow() {
55854 setRow(org.apache.thrift.TBaseHelper.rightSize(row));
55855 return row == null ? null : row.array();
55856 }
55857
55858 public ByteBuffer bufferForRow() {
55859 return row;
55860 }
55861
55862
55863
55864
55865 public checkAndPut_args setRow(byte[] row) {
55866 setRow(row == null ? (ByteBuffer)null : ByteBuffer.wrap(row));
55867 return this;
55868 }
55869
55870 public checkAndPut_args setRow(ByteBuffer row) {
55871 this.row = row;
55872 return this;
55873 }
55874
55875 public void unsetRow() {
55876 this.row = null;
55877 }
55878
55879
55880 public boolean isSetRow() {
55881 return this.row != null;
55882 }
55883
55884 public void setRowIsSet(boolean value) {
55885 if (!value) {
55886 this.row = null;
55887 }
55888 }
55889
55890
55891
55892
55893 public byte[] getColumn() {
55894 setColumn(org.apache.thrift.TBaseHelper.rightSize(column));
55895 return column == null ? null : column.array();
55896 }
55897
55898 public ByteBuffer bufferForColumn() {
55899 return column;
55900 }
55901
55902
55903
55904
55905 public checkAndPut_args setColumn(byte[] column) {
55906 setColumn(column == null ? (ByteBuffer)null : ByteBuffer.wrap(column));
55907 return this;
55908 }
55909
55910 public checkAndPut_args setColumn(ByteBuffer column) {
55911 this.column = column;
55912 return this;
55913 }
55914
55915 public void unsetColumn() {
55916 this.column = null;
55917 }
55918
55919
55920 public boolean isSetColumn() {
55921 return this.column != null;
55922 }
55923
55924 public void setColumnIsSet(boolean value) {
55925 if (!value) {
55926 this.column = null;
55927 }
55928 }
55929
55930
55931
55932
55933
55934
55935 public byte[] getValue() {
55936 setValue(org.apache.thrift.TBaseHelper.rightSize(value));
55937 return value == null ? null : value.array();
55938 }
55939
55940 public ByteBuffer bufferForValue() {
55941 return value;
55942 }
55943
55944
55945
55946
55947
55948
55949 public checkAndPut_args setValue(byte[] value) {
55950 setValue(value == null ? (ByteBuffer)null : ByteBuffer.wrap(value));
55951 return this;
55952 }
55953
55954 public checkAndPut_args setValue(ByteBuffer value) {
55955 this.value = value;
55956 return this;
55957 }
55958
55959 public void unsetValue() {
55960 this.value = null;
55961 }
55962
55963
55964 public boolean isSetValue() {
55965 return this.value != null;
55966 }
55967
55968 public void setValueIsSet(boolean value) {
55969 if (!value) {
55970 this.value = null;
55971 }
55972 }
55973
55974
55975
55976
55977 public Mutation getMput() {
55978 return this.mput;
55979 }
55980
55981
55982
55983
55984 public checkAndPut_args setMput(Mutation mput) {
55985 this.mput = mput;
55986 return this;
55987 }
55988
55989 public void unsetMput() {
55990 this.mput = null;
55991 }
55992
55993
55994 public boolean isSetMput() {
55995 return this.mput != null;
55996 }
55997
55998 public void setMputIsSet(boolean value) {
55999 if (!value) {
56000 this.mput = null;
56001 }
56002 }
56003
56004 public int getAttributesSize() {
56005 return (this.attributes == null) ? 0 : this.attributes.size();
56006 }
56007
56008 public void putToAttributes(ByteBuffer key, ByteBuffer val) {
56009 if (this.attributes == null) {
56010 this.attributes = new HashMap<ByteBuffer,ByteBuffer>();
56011 }
56012 this.attributes.put(key, val);
56013 }
56014
56015
56016
56017
56018 public Map<ByteBuffer,ByteBuffer> getAttributes() {
56019 return this.attributes;
56020 }
56021
56022
56023
56024
56025 public checkAndPut_args setAttributes(Map<ByteBuffer,ByteBuffer> attributes) {
56026 this.attributes = attributes;
56027 return this;
56028 }
56029
56030 public void unsetAttributes() {
56031 this.attributes = null;
56032 }
56033
56034
56035 public boolean isSetAttributes() {
56036 return this.attributes != null;
56037 }
56038
56039 public void setAttributesIsSet(boolean value) {
56040 if (!value) {
56041 this.attributes = null;
56042 }
56043 }
56044
56045 public void setFieldValue(_Fields field, Object value) {
56046 switch (field) {
56047 case TABLE_NAME:
56048 if (value == null) {
56049 unsetTableName();
56050 } else {
56051 setTableName((ByteBuffer)value);
56052 }
56053 break;
56054
56055 case ROW:
56056 if (value == null) {
56057 unsetRow();
56058 } else {
56059 setRow((ByteBuffer)value);
56060 }
56061 break;
56062
56063 case COLUMN:
56064 if (value == null) {
56065 unsetColumn();
56066 } else {
56067 setColumn((ByteBuffer)value);
56068 }
56069 break;
56070
56071 case VALUE:
56072 if (value == null) {
56073 unsetValue();
56074 } else {
56075 setValue((ByteBuffer)value);
56076 }
56077 break;
56078
56079 case MPUT:
56080 if (value == null) {
56081 unsetMput();
56082 } else {
56083 setMput((Mutation)value);
56084 }
56085 break;
56086
56087 case ATTRIBUTES:
56088 if (value == null) {
56089 unsetAttributes();
56090 } else {
56091 setAttributes((Map<ByteBuffer,ByteBuffer>)value);
56092 }
56093 break;
56094
56095 }
56096 }
56097
56098 public Object getFieldValue(_Fields field) {
56099 switch (field) {
56100 case TABLE_NAME:
56101 return getTableName();
56102
56103 case ROW:
56104 return getRow();
56105
56106 case COLUMN:
56107 return getColumn();
56108
56109 case VALUE:
56110 return getValue();
56111
56112 case MPUT:
56113 return getMput();
56114
56115 case ATTRIBUTES:
56116 return getAttributes();
56117
56118 }
56119 throw new IllegalStateException();
56120 }
56121
56122
56123 public boolean isSet(_Fields field) {
56124 if (field == null) {
56125 throw new IllegalArgumentException();
56126 }
56127
56128 switch (field) {
56129 case TABLE_NAME:
56130 return isSetTableName();
56131 case ROW:
56132 return isSetRow();
56133 case COLUMN:
56134 return isSetColumn();
56135 case VALUE:
56136 return isSetValue();
56137 case MPUT:
56138 return isSetMput();
56139 case ATTRIBUTES:
56140 return isSetAttributes();
56141 }
56142 throw new IllegalStateException();
56143 }
56144
56145 @Override
56146 public boolean equals(Object that) {
56147 if (that == null)
56148 return false;
56149 if (that instanceof checkAndPut_args)
56150 return this.equals((checkAndPut_args)that);
56151 return false;
56152 }
56153
56154 public boolean equals(checkAndPut_args that) {
56155 if (that == null)
56156 return false;
56157
56158 boolean this_present_tableName = true && this.isSetTableName();
56159 boolean that_present_tableName = true && that.isSetTableName();
56160 if (this_present_tableName || that_present_tableName) {
56161 if (!(this_present_tableName && that_present_tableName))
56162 return false;
56163 if (!this.tableName.equals(that.tableName))
56164 return false;
56165 }
56166
56167 boolean this_present_row = true && this.isSetRow();
56168 boolean that_present_row = true && that.isSetRow();
56169 if (this_present_row || that_present_row) {
56170 if (!(this_present_row && that_present_row))
56171 return false;
56172 if (!this.row.equals(that.row))
56173 return false;
56174 }
56175
56176 boolean this_present_column = true && this.isSetColumn();
56177 boolean that_present_column = true && that.isSetColumn();
56178 if (this_present_column || that_present_column) {
56179 if (!(this_present_column && that_present_column))
56180 return false;
56181 if (!this.column.equals(that.column))
56182 return false;
56183 }
56184
56185 boolean this_present_value = true && this.isSetValue();
56186 boolean that_present_value = true && that.isSetValue();
56187 if (this_present_value || that_present_value) {
56188 if (!(this_present_value && that_present_value))
56189 return false;
56190 if (!this.value.equals(that.value))
56191 return false;
56192 }
56193
56194 boolean this_present_mput = true && this.isSetMput();
56195 boolean that_present_mput = true && that.isSetMput();
56196 if (this_present_mput || that_present_mput) {
56197 if (!(this_present_mput && that_present_mput))
56198 return false;
56199 if (!this.mput.equals(that.mput))
56200 return false;
56201 }
56202
56203 boolean this_present_attributes = true && this.isSetAttributes();
56204 boolean that_present_attributes = true && that.isSetAttributes();
56205 if (this_present_attributes || that_present_attributes) {
56206 if (!(this_present_attributes && that_present_attributes))
56207 return false;
56208 if (!this.attributes.equals(that.attributes))
56209 return false;
56210 }
56211
56212 return true;
56213 }
56214
56215 @Override
56216 public int hashCode() {
56217 HashCodeBuilder builder = new HashCodeBuilder();
56218
56219 boolean present_tableName = true && (isSetTableName());
56220 builder.append(present_tableName);
56221 if (present_tableName)
56222 builder.append(tableName);
56223
56224 boolean present_row = true && (isSetRow());
56225 builder.append(present_row);
56226 if (present_row)
56227 builder.append(row);
56228
56229 boolean present_column = true && (isSetColumn());
56230 builder.append(present_column);
56231 if (present_column)
56232 builder.append(column);
56233
56234 boolean present_value = true && (isSetValue());
56235 builder.append(present_value);
56236 if (present_value)
56237 builder.append(value);
56238
56239 boolean present_mput = true && (isSetMput());
56240 builder.append(present_mput);
56241 if (present_mput)
56242 builder.append(mput);
56243
56244 boolean present_attributes = true && (isSetAttributes());
56245 builder.append(present_attributes);
56246 if (present_attributes)
56247 builder.append(attributes);
56248
56249 return builder.toHashCode();
56250 }
56251
56252 public int compareTo(checkAndPut_args other) {
56253 if (!getClass().equals(other.getClass())) {
56254 return getClass().getName().compareTo(other.getClass().getName());
56255 }
56256
56257 int lastComparison = 0;
56258 checkAndPut_args typedOther = (checkAndPut_args)other;
56259
56260 lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName());
56261 if (lastComparison != 0) {
56262 return lastComparison;
56263 }
56264 if (isSetTableName()) {
56265 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName);
56266 if (lastComparison != 0) {
56267 return lastComparison;
56268 }
56269 }
56270 lastComparison = Boolean.valueOf(isSetRow()).compareTo(typedOther.isSetRow());
56271 if (lastComparison != 0) {
56272 return lastComparison;
56273 }
56274 if (isSetRow()) {
56275 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, typedOther.row);
56276 if (lastComparison != 0) {
56277 return lastComparison;
56278 }
56279 }
56280 lastComparison = Boolean.valueOf(isSetColumn()).compareTo(typedOther.isSetColumn());
56281 if (lastComparison != 0) {
56282 return lastComparison;
56283 }
56284 if (isSetColumn()) {
56285 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column, typedOther.column);
56286 if (lastComparison != 0) {
56287 return lastComparison;
56288 }
56289 }
56290 lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue());
56291 if (lastComparison != 0) {
56292 return lastComparison;
56293 }
56294 if (isSetValue()) {
56295 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value);
56296 if (lastComparison != 0) {
56297 return lastComparison;
56298 }
56299 }
56300 lastComparison = Boolean.valueOf(isSetMput()).compareTo(typedOther.isSetMput());
56301 if (lastComparison != 0) {
56302 return lastComparison;
56303 }
56304 if (isSetMput()) {
56305 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mput, typedOther.mput);
56306 if (lastComparison != 0) {
56307 return lastComparison;
56308 }
56309 }
56310 lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
56311 if (lastComparison != 0) {
56312 return lastComparison;
56313 }
56314 if (isSetAttributes()) {
56315 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
56316 if (lastComparison != 0) {
56317 return lastComparison;
56318 }
56319 }
56320 return 0;
56321 }
56322
56323 public _Fields fieldForId(int fieldId) {
56324 return _Fields.findByThriftId(fieldId);
56325 }
56326
56327 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56328 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
56329 }
56330
56331 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56332 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
56333 }
56334
56335 @Override
56336 public String toString() {
56337 StringBuilder sb = new StringBuilder("checkAndPut_args(");
56338 boolean first = true;
56339
56340 sb.append("tableName:");
56341 if (this.tableName == null) {
56342 sb.append("null");
56343 } else {
56344 sb.append(this.tableName);
56345 }
56346 first = false;
56347 if (!first) sb.append(", ");
56348 sb.append("row:");
56349 if (this.row == null) {
56350 sb.append("null");
56351 } else {
56352 sb.append(this.row);
56353 }
56354 first = false;
56355 if (!first) sb.append(", ");
56356 sb.append("column:");
56357 if (this.column == null) {
56358 sb.append("null");
56359 } else {
56360 sb.append(this.column);
56361 }
56362 first = false;
56363 if (!first) sb.append(", ");
56364 sb.append("value:");
56365 if (this.value == null) {
56366 sb.append("null");
56367 } else {
56368 sb.append(this.value);
56369 }
56370 first = false;
56371 if (!first) sb.append(", ");
56372 sb.append("mput:");
56373 if (this.mput == null) {
56374 sb.append("null");
56375 } else {
56376 sb.append(this.mput);
56377 }
56378 first = false;
56379 if (!first) sb.append(", ");
56380 sb.append("attributes:");
56381 if (this.attributes == null) {
56382 sb.append("null");
56383 } else {
56384 sb.append(this.attributes);
56385 }
56386 first = false;
56387 sb.append(")");
56388 return sb.toString();
56389 }
56390
56391 public void validate() throws org.apache.thrift.TException {
56392
56393
56394 if (mput != null) {
56395 mput.validate();
56396 }
56397 }
56398
56399 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56400 try {
56401 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56402 } catch (org.apache.thrift.TException te) {
56403 throw new java.io.IOException(te);
56404 }
56405 }
56406
56407 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56408 try {
56409 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56410 } catch (org.apache.thrift.TException te) {
56411 throw new java.io.IOException(te);
56412 }
56413 }
56414
56415 private static class checkAndPut_argsStandardSchemeFactory implements SchemeFactory {
56416 public checkAndPut_argsStandardScheme getScheme() {
56417 return new checkAndPut_argsStandardScheme();
56418 }
56419 }
56420
56421 private static class checkAndPut_argsStandardScheme extends StandardScheme<checkAndPut_args> {
56422
56423 public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_args struct) throws org.apache.thrift.TException {
56424 org.apache.thrift.protocol.TField schemeField;
56425 iprot.readStructBegin();
56426 while (true)
56427 {
56428 schemeField = iprot.readFieldBegin();
56429 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
56430 break;
56431 }
56432 switch (schemeField.id) {
56433 case 1:
56434 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
56435 struct.tableName = iprot.readBinary();
56436 struct.setTableNameIsSet(true);
56437 } else {
56438 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
56439 }
56440 break;
56441 case 2:
56442 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
56443 struct.row = iprot.readBinary();
56444 struct.setRowIsSet(true);
56445 } else {
56446 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
56447 }
56448 break;
56449 case 3:
56450 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
56451 struct.column = iprot.readBinary();
56452 struct.setColumnIsSet(true);
56453 } else {
56454 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
56455 }
56456 break;
56457 case 5:
56458 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
56459 struct.value = iprot.readBinary();
56460 struct.setValueIsSet(true);
56461 } else {
56462 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
56463 }
56464 break;
56465 case 6:
56466 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
56467 struct.mput = new Mutation();
56468 struct.mput.read(iprot);
56469 struct.setMputIsSet(true);
56470 } else {
56471 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
56472 }
56473 break;
56474 case 7:
56475 if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
56476 {
56477 org.apache.thrift.protocol.TMap _map598 = iprot.readMapBegin();
56478 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map598.size);
56479 for (int _i599 = 0; _i599 < _map598.size; ++_i599)
56480 {
56481 ByteBuffer _key600;
56482 ByteBuffer _val601;
56483 _key600 = iprot.readBinary();
56484 _val601 = iprot.readBinary();
56485 struct.attributes.put(_key600, _val601);
56486 }
56487 iprot.readMapEnd();
56488 }
56489 struct.setAttributesIsSet(true);
56490 } else {
56491 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
56492 }
56493 break;
56494 default:
56495 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
56496 }
56497 iprot.readFieldEnd();
56498 }
56499 iprot.readStructEnd();
56500
56501
56502 struct.validate();
56503 }
56504
56505 public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndPut_args struct) throws org.apache.thrift.TException {
56506 struct.validate();
56507
56508 oprot.writeStructBegin(STRUCT_DESC);
56509 if (struct.tableName != null) {
56510 oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
56511 oprot.writeBinary(struct.tableName);
56512 oprot.writeFieldEnd();
56513 }
56514 if (struct.row != null) {
56515 oprot.writeFieldBegin(ROW_FIELD_DESC);
56516 oprot.writeBinary(struct.row);
56517 oprot.writeFieldEnd();
56518 }
56519 if (struct.column != null) {
56520 oprot.writeFieldBegin(COLUMN_FIELD_DESC);
56521 oprot.writeBinary(struct.column);
56522 oprot.writeFieldEnd();
56523 }
56524 if (struct.value != null) {
56525 oprot.writeFieldBegin(VALUE_FIELD_DESC);
56526 oprot.writeBinary(struct.value);
56527 oprot.writeFieldEnd();
56528 }
56529 if (struct.mput != null) {
56530 oprot.writeFieldBegin(MPUT_FIELD_DESC);
56531 struct.mput.write(oprot);
56532 oprot.writeFieldEnd();
56533 }
56534 if (struct.attributes != null) {
56535 oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
56536 {
56537 oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.attributes.size()));
56538 for (Map.Entry<ByteBuffer, ByteBuffer> _iter602 : struct.attributes.entrySet())
56539 {
56540 oprot.writeBinary(_iter602.getKey());
56541 oprot.writeBinary(_iter602.getValue());
56542 }
56543 oprot.writeMapEnd();
56544 }
56545 oprot.writeFieldEnd();
56546 }
56547 oprot.writeFieldStop();
56548 oprot.writeStructEnd();
56549 }
56550
56551 }
56552
56553 private static class checkAndPut_argsTupleSchemeFactory implements SchemeFactory {
56554 public checkAndPut_argsTupleScheme getScheme() {
56555 return new checkAndPut_argsTupleScheme();
56556 }
56557 }
56558
56559 private static class checkAndPut_argsTupleScheme extends TupleScheme<checkAndPut_args> {
56560
56561 @Override
56562 public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException {
56563 TTupleProtocol oprot = (TTupleProtocol) prot;
56564 BitSet optionals = new BitSet();
56565 if (struct.isSetTableName()) {
56566 optionals.set(0);
56567 }
56568 if (struct.isSetRow()) {
56569 optionals.set(1);
56570 }
56571 if (struct.isSetColumn()) {
56572 optionals.set(2);
56573 }
56574 if (struct.isSetValue()) {
56575 optionals.set(3);
56576 }
56577 if (struct.isSetMput()) {
56578 optionals.set(4);
56579 }
56580 if (struct.isSetAttributes()) {
56581 optionals.set(5);
56582 }
56583 oprot.writeBitSet(optionals, 6);
56584 if (struct.isSetTableName()) {
56585 oprot.writeBinary(struct.tableName);
56586 }
56587 if (struct.isSetRow()) {
56588 oprot.writeBinary(struct.row);
56589 }
56590 if (struct.isSetColumn()) {
56591 oprot.writeBinary(struct.column);
56592 }
56593 if (struct.isSetValue()) {
56594 oprot.writeBinary(struct.value);
56595 }
56596 if (struct.isSetMput()) {
56597 struct.mput.write(oprot);
56598 }
56599 if (struct.isSetAttributes()) {
56600 {
56601 oprot.writeI32(struct.attributes.size());
56602 for (Map.Entry<ByteBuffer, ByteBuffer> _iter603 : struct.attributes.entrySet())
56603 {
56604 oprot.writeBinary(_iter603.getKey());
56605 oprot.writeBinary(_iter603.getValue());
56606 }
56607 }
56608 }
56609 }
56610
56611 @Override
56612 public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_args struct) throws org.apache.thrift.TException {
56613 TTupleProtocol iprot = (TTupleProtocol) prot;
56614 BitSet incoming = iprot.readBitSet(6);
56615 if (incoming.get(0)) {
56616 struct.tableName = iprot.readBinary();
56617 struct.setTableNameIsSet(true);
56618 }
56619 if (incoming.get(1)) {
56620 struct.row = iprot.readBinary();
56621 struct.setRowIsSet(true);
56622 }
56623 if (incoming.get(2)) {
56624 struct.column = iprot.readBinary();
56625 struct.setColumnIsSet(true);
56626 }
56627 if (incoming.get(3)) {
56628 struct.value = iprot.readBinary();
56629 struct.setValueIsSet(true);
56630 }
56631 if (incoming.get(4)) {
56632 struct.mput = new Mutation();
56633 struct.mput.read(iprot);
56634 struct.setMputIsSet(true);
56635 }
56636 if (incoming.get(5)) {
56637 {
56638 org.apache.thrift.protocol.TMap _map604 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32());
56639 struct.attributes = new HashMap<ByteBuffer,ByteBuffer>(2*_map604.size);
56640 for (int _i605 = 0; _i605 < _map604.size; ++_i605)
56641 {
56642 ByteBuffer _key606;
56643 ByteBuffer _val607;
56644 _key606 = iprot.readBinary();
56645 _val607 = iprot.readBinary();
56646 struct.attributes.put(_key606, _val607);
56647 }
56648 }
56649 struct.setAttributesIsSet(true);
56650 }
56651 }
56652 }
56653
56654 }
56655
56656 public static class checkAndPut_result implements org.apache.thrift.TBase<checkAndPut_result, checkAndPut_result._Fields>, java.io.Serializable, Cloneable {
56657 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("checkAndPut_result");
56658
56659 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
56660 private static final org.apache.thrift.protocol.TField IO_FIELD_DESC = new org.apache.thrift.protocol.TField("io", org.apache.thrift.protocol.TType.STRUCT, (short)1);
56661 private static final org.apache.thrift.protocol.TField IA_FIELD_DESC = new org.apache.thrift.protocol.TField("ia", org.apache.thrift.protocol.TType.STRUCT, (short)2);
56662
56663 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
56664 static {
56665 schemes.put(StandardScheme.class, new checkAndPut_resultStandardSchemeFactory());
56666 schemes.put(TupleScheme.class, new checkAndPut_resultTupleSchemeFactory());
56667 }
56668
56669 public boolean success;
56670 public IOError io;
56671 public IllegalArgument ia;
56672
56673
56674 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56675 SUCCESS((short)0, "success"),
56676 IO((short)1, "io"),
56677 IA((short)2, "ia");
56678
56679 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56680
56681 static {
56682 for (_Fields field : EnumSet.allOf(_Fields.class)) {
56683 byName.put(field.getFieldName(), field);
56684 }
56685 }
56686
56687
56688
56689
56690 public static _Fields findByThriftId(int fieldId) {
56691 switch(fieldId) {
56692 case 0:
56693 return SUCCESS;
56694 case 1:
56695 return IO;
56696 case 2:
56697 return IA;
56698 default:
56699 return null;
56700 }
56701 }
56702
56703
56704
56705
56706
56707 public static _Fields findByThriftIdOrThrow(int fieldId) {
56708 _Fields fields = findByThriftId(fieldId);
56709 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56710 return fields;
56711 }
56712
56713
56714
56715
56716 public static _Fields findByName(String name) {
56717 return byName.get(name);
56718 }
56719
56720 private final short _thriftId;
56721 private final String _fieldName;
56722
56723 _Fields(short thriftId, String fieldName) {
56724 _thriftId = thriftId;
56725 _fieldName = fieldName;
56726 }
56727
56728 public short getThriftFieldId() {
56729 return _thriftId;
56730 }
56731
56732 public String getFieldName() {
56733 return _fieldName;
56734 }
56735 }
56736
56737
56738 private static final int __SUCCESS_ISSET_ID = 0;
56739 private byte __isset_bitfield = 0;
56740 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56741 static {
56742 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56743 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
56744 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
56745 tmpMap.put(_Fields.IO, new org.apache.thrift.meta_data.FieldMetaData("io", org.apache.thrift.TFieldRequirementType.DEFAULT,
56746 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
56747 tmpMap.put(_Fields.IA, new org.apache.thrift.meta_data.FieldMetaData("ia", org.apache.thrift.TFieldRequirementType.DEFAULT,
56748 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
56749 metaDataMap = Collections.unmodifiableMap(tmpMap);
56750 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(checkAndPut_result.class, metaDataMap);
56751 }
56752
56753 public checkAndPut_result() {
56754 }
56755
56756 public checkAndPut_result(
56757 boolean success,
56758 IOError io,
56759 IllegalArgument ia)
56760 {
56761 this();
56762 this.success = success;
56763 setSuccessIsSet(true);
56764 this.io = io;
56765 this.ia = ia;
56766 }
56767
56768
56769
56770
56771 public checkAndPut_result(checkAndPut_result other) {
56772 __isset_bitfield = other.__isset_bitfield;
56773 this.success = other.success;
56774 if (other.isSetIo()) {
56775 this.io = new IOError(other.io);
56776 }
56777 if (other.isSetIa()) {
56778 this.ia = new IllegalArgument(other.ia);
56779 }
56780 }
56781
56782 public checkAndPut_result deepCopy() {
56783 return new checkAndPut_result(this);
56784 }
56785
56786 @Override
56787 public void clear() {
56788 setSuccessIsSet(false);
56789 this.success = false;
56790 this.io = null;
56791 this.ia = null;
56792 }
56793
56794 public boolean isSuccess() {
56795 return this.success;
56796 }
56797
56798 public checkAndPut_result setSuccess(boolean success) {
56799 this.success = success;
56800 setSuccessIsSet(true);
56801 return this;
56802 }
56803
56804 public void unsetSuccess() {
56805 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
56806 }
56807
56808
56809 public boolean isSetSuccess() {
56810 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
56811 }
56812
56813 public void setSuccessIsSet(boolean value) {
56814 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
56815 }
56816
56817 public IOError getIo() {
56818 return this.io;
56819 }
56820
56821 public checkAndPut_result setIo(IOError io) {
56822 this.io = io;
56823 return this;
56824 }
56825
56826 public void unsetIo() {
56827 this.io = null;
56828 }
56829
56830
56831 public boolean isSetIo() {
56832 return this.io != null;
56833 }
56834
56835 public void setIoIsSet(boolean value) {
56836 if (!value) {
56837 this.io = null;
56838 }
56839 }
56840
56841 public IllegalArgument getIa() {
56842 return this.ia;
56843 }
56844
56845 public checkAndPut_result setIa(IllegalArgument ia) {
56846 this.ia = ia;
56847 return this;
56848 }
56849
56850 public void unsetIa() {
56851 this.ia = null;
56852 }
56853
56854
56855 public boolean isSetIa() {
56856 return this.ia != null;
56857 }
56858
56859 public void setIaIsSet(boolean value) {
56860 if (!value) {
56861 this.ia = null;
56862 }
56863 }
56864
56865 public void setFieldValue(_Fields field, Object value) {
56866 switch (field) {
56867 case SUCCESS:
56868 if (value == null) {
56869 unsetSuccess();
56870 } else {
56871 setSuccess((Boolean)value);
56872 }
56873 break;
56874
56875 case IO:
56876 if (value == null) {
56877 unsetIo();
56878 } else {
56879 setIo((IOError)value);
56880 }
56881 break;
56882
56883 case IA:
56884 if (value == null) {
56885 unsetIa();
56886 } else {
56887 setIa((IllegalArgument)value);
56888 }
56889 break;
56890
56891 }
56892 }
56893
56894 public Object getFieldValue(_Fields field) {
56895 switch (field) {
56896 case SUCCESS:
56897 return Boolean.valueOf(isSuccess());
56898
56899 case IO:
56900 return getIo();
56901
56902 case IA:
56903 return getIa();
56904
56905 }
56906 throw new IllegalStateException();
56907 }
56908
56909
56910 public boolean isSet(_Fields field) {
56911 if (field == null) {
56912 throw new IllegalArgumentException();
56913 }
56914
56915 switch (field) {
56916 case SUCCESS:
56917 return isSetSuccess();
56918 case IO:
56919 return isSetIo();
56920 case IA:
56921 return isSetIa();
56922 }
56923 throw new IllegalStateException();
56924 }
56925
56926 @Override
56927 public boolean equals(Object that) {
56928 if (that == null)
56929 return false;
56930 if (that instanceof checkAndPut_result)
56931 return this.equals((checkAndPut_result)that);
56932 return false;
56933 }
56934
56935 public boolean equals(checkAndPut_result that) {
56936 if (that == null)
56937 return false;
56938
56939 boolean this_present_success = true;
56940 boolean that_present_success = true;
56941 if (this_present_success || that_present_success) {
56942 if (!(this_present_success && that_present_success))
56943 return false;
56944 if (this.success != that.success)
56945 return false;
56946 }
56947
56948 boolean this_present_io = true && this.isSetIo();
56949 boolean that_present_io = true && that.isSetIo();
56950 if (this_present_io || that_present_io) {
56951 if (!(this_present_io && that_present_io))
56952 return false;
56953 if (!this.io.equals(that.io))
56954 return false;
56955 }
56956
56957 boolean this_present_ia = true && this.isSetIa();
56958 boolean that_present_ia = true && that.isSetIa();
56959 if (this_present_ia || that_present_ia) {
56960 if (!(this_present_ia && that_present_ia))
56961 return false;
56962 if (!this.ia.equals(that.ia))
56963 return false;
56964 }
56965
56966 return true;
56967 }
56968
56969 @Override
56970 public int hashCode() {
56971 HashCodeBuilder builder = new HashCodeBuilder();
56972
56973 boolean present_success = true;
56974 builder.append(present_success);
56975 if (present_success)
56976 builder.append(success);
56977
56978 boolean present_io = true && (isSetIo());
56979 builder.append(present_io);
56980 if (present_io)
56981 builder.append(io);
56982
56983 boolean present_ia = true && (isSetIa());
56984 builder.append(present_ia);
56985 if (present_ia)
56986 builder.append(ia);
56987
56988 return builder.toHashCode();
56989 }
56990
56991 public int compareTo(checkAndPut_result other) {
56992 if (!getClass().equals(other.getClass())) {
56993 return getClass().getName().compareTo(other.getClass().getName());
56994 }
56995
56996 int lastComparison = 0;
56997 checkAndPut_result typedOther = (checkAndPut_result)other;
56998
56999 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
57000 if (lastComparison != 0) {
57001 return lastComparison;
57002 }
57003 if (isSetSuccess()) {
57004 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
57005 if (lastComparison != 0) {
57006 return lastComparison;
57007 }
57008 }
57009 lastComparison = Boolean.valueOf(isSetIo()).compareTo(typedOther.isSetIo());
57010 if (lastComparison != 0) {
57011 return lastComparison;
57012 }
57013 if (isSetIo()) {
57014 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.io, typedOther.io);
57015 if (lastComparison != 0) {
57016 return lastComparison;
57017 }
57018 }
57019 lastComparison = Boolean.valueOf(isSetIa()).compareTo(typedOther.isSetIa());
57020 if (lastComparison != 0) {
57021 return lastComparison;
57022 }
57023 if (isSetIa()) {
57024 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ia, typedOther.ia);
57025 if (lastComparison != 0) {
57026 return lastComparison;
57027 }
57028 }
57029 return 0;
57030 }
57031
57032 public _Fields fieldForId(int fieldId) {
57033 return _Fields.findByThriftId(fieldId);
57034 }
57035
57036 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57037 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
57038 }
57039
57040 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57041 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
57042 }
57043
57044 @Override
57045 public String toString() {
57046 StringBuilder sb = new StringBuilder("checkAndPut_result(");
57047 boolean first = true;
57048
57049 sb.append("success:");
57050 sb.append(this.success);
57051 first = false;
57052 if (!first) sb.append(", ");
57053 sb.append("io:");
57054 if (this.io == null) {
57055 sb.append("null");
57056 } else {
57057 sb.append(this.io);
57058 }
57059 first = false;
57060 if (!first) sb.append(", ");
57061 sb.append("ia:");
57062 if (this.ia == null) {
57063 sb.append("null");
57064 } else {
57065 sb.append(this.ia);
57066 }
57067 first = false;
57068 sb.append(")");
57069 return sb.toString();
57070 }
57071
57072 public void validate() throws org.apache.thrift.TException {
57073
57074
57075 }
57076
57077 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57078 try {
57079 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57080 } catch (org.apache.thrift.TException te) {
57081 throw new java.io.IOException(te);
57082 }
57083 }
57084
57085 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57086 try {
57087
57088 __isset_bitfield = 0;
57089 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57090 } catch (org.apache.thrift.TException te) {
57091 throw new java.io.IOException(te);
57092 }
57093 }
57094
57095 private static class checkAndPut_resultStandardSchemeFactory implements SchemeFactory {
57096 public checkAndPut_resultStandardScheme getScheme() {
57097 return new checkAndPut_resultStandardScheme();
57098 }
57099 }
57100
57101 private static class checkAndPut_resultStandardScheme extends StandardScheme<checkAndPut_result> {
57102
57103 public void read(org.apache.thrift.protocol.TProtocol iprot, checkAndPut_result struct) throws org.apache.thrift.TException {
57104 org.apache.thrift.protocol.TField schemeField;
57105 iprot.readStructBegin();
57106 while (true)
57107 {
57108 schemeField = iprot.readFieldBegin();
57109 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
57110 break;
57111 }
57112 switch (schemeField.id) {
57113 case 0:
57114 if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
57115 struct.success = iprot.readBool();
57116 struct.setSuccessIsSet(true);
57117 } else {
57118 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
57119 }
57120 break;
57121 case 1:
57122 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
57123 struct.io = new IOError();
57124 struct.io.read(iprot);
57125 struct.setIoIsSet(true);
57126 } else {
57127 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
57128 }
57129 break;
57130 case 2:
57131 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
57132 struct.ia = new IllegalArgument();
57133 struct.ia.read(iprot);
57134 struct.setIaIsSet(true);
57135 } else {
57136 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
57137 }
57138 break;
57139 default:
57140 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
57141 }
57142 iprot.readFieldEnd();
57143 }
57144 iprot.readStructEnd();
57145
57146
57147 struct.validate();
57148 }
57149
57150 public void write(org.apache.thrift.protocol.TProtocol oprot, checkAndPut_result struct) throws org.apache.thrift.TException {
57151 struct.validate();
57152
57153 oprot.writeStructBegin(STRUCT_DESC);
57154 if (struct.isSetSuccess()) {
57155 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57156 oprot.writeBool(struct.success);
57157 oprot.writeFieldEnd();
57158 }
57159 if (struct.io != null) {
57160 oprot.writeFieldBegin(IO_FIELD_DESC);
57161 struct.io.write(oprot);
57162 oprot.writeFieldEnd();
57163 }
57164 if (struct.ia != null) {
57165 oprot.writeFieldBegin(IA_FIELD_DESC);
57166 struct.ia.write(oprot);
57167 oprot.writeFieldEnd();
57168 }
57169 oprot.writeFieldStop();
57170 oprot.writeStructEnd();
57171 }
57172
57173 }
57174
57175 private static class checkAndPut_resultTupleSchemeFactory implements SchemeFactory {
57176 public checkAndPut_resultTupleScheme getScheme() {
57177 return new checkAndPut_resultTupleScheme();
57178 }
57179 }
57180
57181 private static class checkAndPut_resultTupleScheme extends TupleScheme<checkAndPut_result> {
57182
57183 @Override
57184 public void write(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException {
57185 TTupleProtocol oprot = (TTupleProtocol) prot;
57186 BitSet optionals = new BitSet();
57187 if (struct.isSetSuccess()) {
57188 optionals.set(0);
57189 }
57190 if (struct.isSetIo()) {
57191 optionals.set(1);
57192 }
57193 if (struct.isSetIa()) {
57194 optionals.set(2);
57195 }
57196 oprot.writeBitSet(optionals, 3);
57197 if (struct.isSetSuccess()) {
57198 oprot.writeBool(struct.success);
57199 }
57200 if (struct.isSetIo()) {
57201 struct.io.write(oprot);
57202 }
57203 if (struct.isSetIa()) {
57204 struct.ia.write(oprot);
57205 }
57206 }
57207
57208 @Override
57209 public void read(org.apache.thrift.protocol.TProtocol prot, checkAndPut_result struct) throws org.apache.thrift.TException {
57210 TTupleProtocol iprot = (TTupleProtocol) prot;
57211 BitSet incoming = iprot.readBitSet(3);
57212 if (incoming.get(0)) {
57213 struct.success = iprot.readBool();
57214 struct.setSuccessIsSet(true);
57215 }
57216 if (incoming.get(1)) {
57217 struct.io = new IOError();
57218 struct.io.read(iprot);
57219 struct.setIoIsSet(true);
57220 }
57221 if (incoming.get(2)) {
57222 struct.ia = new IllegalArgument();
57223 struct.ia.read(iprot);
57224 struct.setIaIsSet(true);
57225 }
57226 }
57227 }
57228
57229 }
57230
57231 }